Skip to main content
gamedev.net
🔒 Locked

intersection

Started by ogl 2 replies 300+ views
Original Post
ogl
ogl
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
RealityMonster
RealityMonster
you could make both objects trnslucent so when they intersect, their colorsat the intersection get multiplied. just a thought
zedzeek
zedzeek
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
ogl
ogl
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

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.