On 15-Aug-05, at 10:25 PM, Lo Saeteurn wrote:
Does 3DMF Workshop import the vertex colors?
No, but it should be doable. This would require a bit of work though,
since the Generic3D classes don't take vertex colours into account at
this point. So the core, the importer, and the exporter would all
have to be updated for this to work.
Calculating vertex lighting yourself isn't terribly difficult
though. Here's an old but useful reference: <http://
www.flipcode.com/articles/article_doinglighting.shtml>.
Thanks. I'll take a look if it's the last resort. Does it include
directional lights? Not very important as the dynamic lights should
work just fine since not many directional lights should really be
needed.
I can't recall if it does, but directional lights are similar to
attenuated lights (and typically require less math). That article
also details more that you'll probably need, like the specular
component, and spot lights.
Shadows/occlusion are a little more work
These would be really great to have, but I'm not skilled enough to
do these. I'm willing to pay anyone to willing do it for me.
I'm not talking real-time DOOM 3 type shadows, but determining
whether a static vertex is lit by a static light is relatively
straightforward. Since you're pre-processing it doesn't even have to
be fast (which makes things even easier). It just comes down to doing
a bunch of ray-triangle collision tests to see if a particular light
affects a particular vertex.
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>
|