Archived

This topic is now archived and is closed to further replies.

Basiror

Hidden surface removal

Recommended Posts

i have read an article about it where it say the following take the crossproduct of the surface normal and you view angle if the z value of the cross vector is negative then the polygon faces to you otherwise it faces into the opposite direction is that true?

Share this post


Link to post
Share on other sites
quote:
Original post by Basiror
take the crossproduct of the surface normal and you view angle
if the z value of the cross vector is negative then the polygon faces to you



i suggest you read it again. you cannot take the crossproduct of a vector and an angle.

usually you use the dot product of the look at vector and the surface normal because its less expensive to compute and gives you a nice scalar value that you can do a sign test on.



[edited by - invective on March 23, 2002 3:04:07 AM]

Share this post


Link to post
Share on other sites
haha
i know that you have to calculate a vector out of the angle
i m not that new to 3d programming
and thats not the point in this post i actually asked if the statement in the article is correct because i have no chance to test it yet

Share this post


Link to post
Share on other sites
>>crossproduct of the surface normal and you view angle<<

hmm as invective saiz a couple of mistkes in that sentence

http://uk.geocities.com/sloppyturds/gotterdammerung.html

Share this post


Link to post
Share on other sites