On 15-Aug-05, at 8:09 PM, Lo Saeteurn wrote:
Does anyone know if vertex colors are supported for OBJ or 3DS? I'm
trying to support vertex lighting in my game and it would be much
easier if I didn't have to calculate fixed lights myself. I'm not
exactly sure how to calculate lighting based on vertex position and
normals.
I'm 99% sure OBJ does not support this, but I'm pretty sure 3DS does.
Whether or not you can find a 3D app that can bake lighting into
vertex colours and export that information in the 3DS format is
another question...
Calculating vertex lighting yourself isn't terribly difficult though.
Here's an old but useful reference: <http://www.flipcode.com/articles/
article_doinglighting.shtml>. Shadows/occlusion are a little more
work, but if you're pre-processing the lighting doing brute-force ray/
triangle tests for every vertex from every light will do just fine.
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>
|