realbasic-games
[Top] [All Lists]

Re: OBJ and 3DS support for vertex colors

To: REALbasic Games <realbasic-games at lists dot realsoftware dot com>
Subject: Re: OBJ and 3DS support for vertex colors
From: Lo Saeteurn <realbasic at miensoftware dot com>
Date: Mon, 15 Aug 2005 19:25:47 -0700
Delivered-to: realbasic-games at lists dot realsoftware dot com
References: <8DF2BB08-78E5-4A06-B484-895B5868CC47 at miensoftware dot com> <98D5C6A8-4D28-4AAC-9D45-664AA46DD36E at chaoticbox dot com>

On Aug 15, 2005, at 6:47 PM, Frank Condello wrote:

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...

Thanks for the information. I was told 3DS Max supports vertex colors, but I'll have to test it myself to see if it exports that information. Does 3DMF Workshop import the vertex colors?


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.

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.

but if you're pre-processing the lighting doing brute-force ray/ triangle tests for every vertex from every light will do just fine.

Yep, preprocessed lights.

_______________________________________________
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>

<Prev in Thread] Current Thread [Next in Thread>