On 11-Aug-05, at 5:47 PM, Lo Saeteurn wrote:
Animations play perfectly and share much of the data. The problem
now is with the lighting. If the animated object is rotated, the
lighting does not change on the object. I suspect the normals have
something to do with it. If so, how do I extract the normal list
from a trimesh object and interpolate between the two frames?
Normals are stored in the vertex attributes of the trimesh data (same
place you find the texture uvs). I can't recall the exact details
involved with getting at them but it might help to check out the
Trimesh3D.GetVertexNormals method in the Quesa Wrappers.
Interpolating normals should be the same as interpolating vertex
positions - just average them with the appropriate weight factors,
and the result will still be normalized (or at least close enough).
Frank.
–––––––––––––––––––––––––––––––––
Open Source RB Goodies and Shareware
<http://developer.chaoticbox.com/>
<http://www.chaoticbox.com/>
–––––––––––––––––––––––––––––––––
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
|