I'm currently working on a new engine as a side project. It's very much a proof of concept, however the concept is almost proven
You can see some videos of it in action here:
http://www.youtube.c...d voxelrenderer
However when I have 64x64 quads, the GPU has trouble handling this. I use a very light (post,on framebuffer and one on each item) shaders, which I tried disabling to no avail, so I think it's just the quantity.
I think that 64x64 quads a modern GPU should be able to manage though, are there any tricks maybe to lighten the rendering? Other than just lowering the resolution?
EDIT: (Also I do not know if VBO's would help in this case, I presume not, but even if it would I can't use them because I need to calculate the angle about each frame)
I use GL_ALPHA on each item.
Would it help to disable the depthbuffer and to render everything synchronously (although this will be a pain to make)?
New engine, new problem
64x64 quads is nothing - I can handle 1,000,000 boxes on relatively low-end laptop hardware.
Yes, a VBO will help a lot if you're using immediate mode. If you're calculating your angle changes on the CPU, consider specifying them as per-instance data and moving these calculations to your vertex shader instead. That way your VBO data will be able to remain static and with a smaller dynamic upload per-frame.
Yes, a VBO will help a lot if you're using immediate mode. If you're calculating your angle changes on the CPU, consider specifying them as per-instance data and moving these calculations to your vertex shader instead. That way your VBO data will be able to remain static and with a smaller dynamic upload per-frame.
That's a good idea, to move them to the vertex shaders. I might try that later on! For now, I fixed the problem by disabling my beautiful clouds. I still don't know exactly if the problem lies in my angel calculation (I tried rainbow tables to no avail so this would suggest not) or the transparency (I would think this would be fixed by disabling the depth buffer.. but it was not).
Edit: As one sees, I am a newb with OpenGL - why did i not think about using them vertex shaders "
Edit: As one sees, I am a newb with OpenGL - why did i not think about using them vertex shaders "
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement