Thread: per: normal doesn't point in correct direction

  1. #1
    Banned
    Join Date
    Jan 2003
    Posts
    1,708

    per: normal doesn't point in correct direction

    Here's the code. Not sure why it does this.

  2. #2
    Pursuing knowledge confuted's Avatar
    Join Date
    Jun 2002
    Posts
    1,916
    Perhaps you are drawing one end of the normal at a vertex instead of the middle of the triangle? I looked at the code for computing the normal, and that looks correct to me...and your cross product should work as well, I double checked that as well. So, I'm thinking it's probably an error in displaying it...
    Away.

  3. #3
    Banned
    Join Date
    Jan 2003
    Posts
    1,708
    that's what i thought, too, actually, but when I didn't normalize it I could draw it like that....ur probably right though *shrug*
    Last edited by Silvercord; 05-16-2003 at 08:39 AM.

  4. #4
    Banned
    Join Date
    Jan 2003
    Posts
    1,708
    normal should be drawn
    Point2 + Normal

    that works no matter what point I am drawing from


    simple noob mistake, I can't believe I was doing that ... omg ... oh well at least now I can get the project onto plane functions working

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Point me in the right direction
    By vampje in forum C++ Programming
    Replies: 0
    Last Post: 06-07-2006, 03:52 AM
  2. HUGE fps jump
    By DavidP in forum Game Programming
    Replies: 23
    Last Post: 07-01-2004, 10:36 AM
  3. Point passed rectangle...
    By Hunter2 in forum Game Programming
    Replies: 15
    Last Post: 10-10-2003, 09:57 AM
  4. need a point in the right direction
    By sweetly in forum C++ Programming
    Replies: 3
    Last Post: 10-07-2003, 05:19 PM
  5. Point me in the right direction
    By RealityFusion in forum C++ Programming
    Replies: 17
    Last Post: 08-22-2003, 05:05 AM