Jump to content
  • Advertisement
Sign in to follow this  
razonic1977

OpenGL Heightmap Lighting

This topic is 4272 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 have been working on a quadtree based heightmap editor for a couple months now. with my implementation the heightmap sizes are required to be 2^n+1 The real time light map functions updates a image buffer while the brush is being used (the mouse button is pressed applying the brush to some set position on the heightmap) Once the mouse button is released the image buffer is loaded into opengl. I have been using a image buffer with a resolution of <= the heightmap resolution because this function is really only to give you depth on the terrain while your are editing it. I have a custom ray tracer written for a more realistic non real time light map. This worked just fine on my desktop but my laptops gl driver does not like it. I know gl likes the textures to be 2^n but it was really hard for me to justify the cost in my code to resize a texture by such a small amount so often when i thought all was well on my desktop. I was just hoping gl could do it more efficiently then me until i realized that will not work with every gl implementation. Does anyone know of anything else i might be able to do or try? Is it possible to update a set region of a loaded gl texture? Thanks

Share this post


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

  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!