Plane equation
Ok thanks, Ill check that out in a mo,
Does the job, but I dont know how to add p.d into the matrix, so that I remove that last transformation.
Code:
GLfloat matrix[16] = {
vx.x, vx.y, vx.z, 0,
vy.x, vy.y, vy.z, 0,
p.a, p.b, p.c, 0,
0, 0, 0, 1};
glMultMatrixf(matrix);
glTranslatef(0, 0, p.d);
Sir, e^iÏ€ + 1 = 0, hence God exists; reply!
Possibly Related Threads...
Thread:  Author  Replies:  Views:  Last Post  
Rendering a reflection about an arbitrary plane  TomorrowPlusX  3  5,320 
Jan 14, 2008 07:51 AM Last Post: TomorrowPlusX 

pls help ....am in desperate need of code (illuminating equation)  shru_ani  2  2,780 
Oct 30, 2006 04:32 PM Last Post: Najdorf 

Math: mirroring a view frustum about a plane  TomorrowPlusX  1  3,658 
Aug 19, 2006 03:30 PM Last Post: Jones 

Drawing an Infinite Plane  unknown  3  3,454 
May 5, 2006 12:54 PM Last Post: Zekaric 

Math question: deriving rotation by plane intersection  TomorrowPlusX  6  4,853 
Jan 24, 2006 07:28 AM Last Post: TomorrowPlusX 