Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


lighting/shadowing with octrees and aabb trees

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

Hiya everyone, Designing and building my engine so far has been a hard, but fun task. Lately how ever, I have been wondering if my design plan will support everything I plan to implement later on. The mesh class will handle static and dynamic objects, sending them to either the octree or AABB tree according to if there static or dynamic objects. Anyway though, my problem lies with shadowing and lighting. static objects will use lightmaps, some however will cast shadows on dynamic objects as well as static objects. In turn, the dynamic objects will cast shadows on both static and other dynamic objects. The terrain will be lit primarley from the sun representation, the terrain will cast shadows on itself as well as static and dynanmic objects, etc. The problem is though, once the data is in the trees, how will shadows and light be applied to everything..? My first though was that each light source will get a list of all tris and aabb nodes around it and then calc the light on them, shadows will then be calculated as usual. This doesnt seems to be the best solution, but then, how exaclt and or when exactly should the light be applied to the world... Im not asking for a perfect answer, or any source examples, but some comments and suggestions would be nice. If my question seems vague or is unclear, please let me know in your post. Im open to critism. Thanks a lot and Cheers! ~yodaman

Share this post

Link to post
Share on other sites
ahh, come on...doesnt anyone have any comments to make?
I figured that others may share this problem as well, so thats why I posted it and for some advice and or comments.

thanks for any feedback!!

Share this post

Link to post
Share on other sites

  • 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!