Jump to content
  • Advertisement
Sign in to follow this  

Lookup to an area of a texture

This topic is 4112 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

Dear All, I'm hoping for some guidance please. I have a scene which I'm rendering with orthographic projection to different textures. I'm rendering my town scene from above and from all sides. I'm doing this as I want to approximate very very roughly a global illumination solution. I will use my rendered textures to average the intensity across a certain area of that texture and assign that average intensity to each vertex in my scene depending on how much of the sky or sides i estimate to be visible from each vertex. Now the only thing I'm confused about is how I could perform an area lookup into the texture and get the average intensity of the pixels falling within that area as opposed to looking up a single coordinate. Can someone please give me some assistance? Thanks in anticipation of your help guys.

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!