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: Frank Condello <developer at chaoticbox dot com>
Date: Mon, 15 Aug 2005 21:47:10 -0400
Delivered-to: realbasic-games at lists dot realsoftware dot com
References: <8DF2BB08-78E5-4A06-B484-895B5868CC47 at miensoftware dot com>
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>

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