PDA

View Full Version : A Surface normal question - about values generated



Zeus_666
06-19-2001, 11:45 PM
Hi,
Just ran a copy of my program which takes in a file of vertex data and outputs surface normals. My results were:

-1 0 0
0 0 1
-1 0 0
0 0 1
0 0 1
0 0 1
-1 0 0
0 0 1
-1 0 0
-1 0 0
-1 0 0
0 -0.164399 0.986394
-0.986394 0.164399 0
-0.986394 0.164399 0
0 0.164399 0.986394
-1 0 0
0 0 1
-1 0 0
0 0 1
-1 0 0
0 0 1
-1 0 0
-1 0 0
0 0 1
-1 0 0
-0.432731 0.901523 0
0 -0.640184 0.768221
-0.432731 -0.901523 0
0 0.780869 0.624695

Is that right to have decimal places?

lgrosshennig
06-19-2001, 11:57 PM
Yup!

Your normals look >normal< *LOL*

LG http://www.opengl.org/discussion_boards/ubb/biggrin.gif

Zeus_666
06-20-2001, 12:04 AM
Thanks http://www.opengl.org/discussion_boards/ubb/smile.gif

lgrosshennig
06-20-2001, 12:07 AM
No problem http://www.opengl.org/discussion_boards/ubb/smile.gif

You are welcome http://www.opengl.org/discussion_boards/ubb/smile.gif

LG http://www.opengl.org/discussion_boards/ubb/biggrin.gif

Tim Stirling
06-20-2001, 12:16 AM
Think what happens with a plane at 45 degrees!

Zeus_666
06-20-2001, 12:40 AM
Ah,
it was just i thought it had to be round number and that was why i posted online, was unsure. Thanks again