Post

 Resources 

Console


RE: ?huh? PyroBoy (3 replies, 0 views) (2000-Apr-24)
-
I don't claim to understand it... But I think that a face normal can be computed using a mathematical process called the cross product. The cross product of 2 vectors returns a vector that is perpendicular to both of them. So you create a couple of D3DVECTOR types that represent 2 sides of any given poly, and pass them to the DirectX7 object's VectorCrossProduct method, which should then return a face normal for the poly, which you can apply to each of the vertex normals in the poly. Of course, the afformentioned problem with polys that share vertices comes up. I'm having trouble getting the whole process running right now. If I get something that works right I'll post it.


-
Up One Level | Back to Forum

hmmm... PhoenixX_2 (2 replies) (2000-Apr-24)
RE: hmmm... PyroBoy (1 reply) (2000-Apr-24)
Sorry... PyroBoy (0 replies) (2000-Apr-24)

Copyright © 2002 - 2004 Eric Coleman, Peter Kuchnio , et. al.
There have been 5 visitors within the last 20 minutes
RSS News Feed