Jump to content
  • Advertisement
Sign in to follow this  
Kajos

New engine, new problem

This topic is 2335 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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 smile.png

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)? Edited by Kajos

Share this post


Link to post
Share on other sites
Advertisement
Nope, I was wrong. I think it's the alphablending.. I wish there some magical GPU profiler :(

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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 sleep.png" Edited by Kajos

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!