Jump to content
  • Advertisement


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

Leyder Dylan

I want to add reflection but I need an advice

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

Here we go ... I''d like to add reflection in my engine. I know hot to do that but I need your advice, dear readers ... Basically, we must write the reflection zone into the stencil buffer, next, add the scene who must be reflected into the stencil buffer and after we display the relfection zone and the object. My question is for the reflected zone : I think that it''s more powerful if I only add the reflected polygons into the stencil buffer instead of adding ALL zone into the stencil buffer. Right ? But, how do you do for sorting the only reflected polygons. I need to determine wich polygons who will be reflected but now f....... idea ... Thanks a lot. ======================== Leyder Dylan (dylan.leyder@slug-production.be.tf http://www.slug-production.be.tf/

Share this post

Link to post
Share on other sites
You can use any sort of data trees (BSP, Quad-Tree or something like that). You can generate a Frustrum from the Object which reflects the scene and test this frustum against your tree.


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.

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

Sign me up!