PDA

View Full Version : glDrawPixels



jvff
06-12-2003, 01:40 PM
Hello,
This is what I want to do:
I have a triangle. I have a vector comming out of a point. The user controls the vector (changing it's values with movement keys) and controls the triangle (movement and rotation). I want to detect every pixel on the triangle where the vector intersects and get it's color then paint on top of it with alpha (I've already taken care of painting). All I have to do it's get the intersection point (x, y) so I can change the texture. Is there anyway to do this? ThanX in advance,

JVFF

peter.vullings
06-12-2003, 04:33 PM
Check out the tutorials here http://www.gametutorials.com/Tutorials/opengl/OpenGL_Pg3.htm . One of theme is about collision detection between a line segment and a plane! handy, huh?