per: normal doesn't point in correct direction

This is a discussion on per: normal doesn't point in correct direction within the Game Programming forums, part of the General Programming Boards category; Here's the code. Not sure why it does this....

  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.
    Attached Files Attached Files

  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 09: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, 04:52 AM
  2. HUGE fps jump
    By DavidP in forum Game Programming
    Replies: 23
    Last Post: 07-01-2004, 11:36 AM
  3. Point passed rectangle...
    By Hunter2 in forum Game Programming
    Replies: 15
    Last Post: 10-10-2003, 10:57 AM
  4. need a point in the right direction
    By sweetly in forum C++ Programming
    Replies: 3
    Last Post: 10-07-2003, 06:19 PM
  5. Point me in the right direction
    By RealityFusion in forum C++ Programming
    Replies: 17
    Last Post: 08-22-2003, 06:05 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21