Plane equation

Sage
Posts: 1,403
Joined: 2005.07
Post: #16
Ok thanks, Ill check that out in a mo,
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);
Does the job, but I dont know how to add p.d into the matrix, so that I remove that last transformation.

Sir, e^iπ + 1 = 0, hence God exists; reply!
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Rendering a reflection about an arbitrary plane TomorrowPlusX 3 4,405 Jan 14, 2008 07:51 AM
Last Post: TomorrowPlusX
  pls help ....am in desperate need of code (illuminating equation) shru_ani 2 2,140 Oct 30, 2006 04:32 PM
Last Post: Najdorf
  Math: mirroring a view frustum about a plane TomorrowPlusX 1 3,068 Aug 19, 2006 03:30 PM
Last Post: Jones
  Drawing an Infinite Plane unknown 3 2,858 May 5, 2006 12:54 PM
Last Post: Zekaric
  Math question: deriving rotation by plane intersection TomorrowPlusX 6 3,909 Jan 24, 2006 07:28 AM
Last Post: TomorrowPlusX