Jump to content
  • Advertisement

Archived

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

ogl

intersection

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

say I have two cube which I can move around the scene - how could I go about showing their resultant area when they intersect - either in a different colour or transparent - would I have to set up vectors, normals etc.. also say I have a small sphere which I want to light up only when it enters the area of the cube? how could you show that it is in side the cube? cheers

Share this post


Link to post
Share on other sites
Advertisement
yes u could try blending with eg GL_ONE,GL_ONE but im not to sure how well that''ll work a safer bet would prolly be using the stencil buffer

http://members.xoom.com/myBollux

Share this post


Link to post
Share on other sites
quote:
Original post by RealityMonster

you could make both objects trnslucent so when they intersect, their colorsat the intersection get multiplied. just a thought


how could i do this?

- i''ll try blending see if it works

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.

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!