Post

 Resources 

Console


RE: 3DIM Question PyroBoy (5 replies, 0 views) (2000-Apr-24)
-
Yeah, I'm having this same difficulty right now. It has to do with vertex normals. If you don't initialize them to proper values, the system uses a dot product of 0 making all vertices mathematically the same to D3D's lighting module. You need to set the normals up or the lighting won't look right. I'm currently trying to figure out the best way to do this myself... All I know is you can get the face normal of a poly by computing the cross product of 2 of the polygon's sides. You could then just assign the face normal to all the vertices to make the light fall across the face nicely. But sometimes multiple polys share the same vertices, so you'd have to build some way of averaging the face normals for vertices that belong to more than one face... I dunno how though, I'm just getting into this myself... :-)


-
Up One Level | Back to Forum

?huh? PhoenixX_2 (4 replies) (2000-Apr-24)
RE: ?huh? PyroBoy (3 replies) (2000-Apr-24)
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 26 visitors within the last 20 minutes
RSS News Feed