On Tue, Sep 09, 2008 at 12:11:55PM +0000, Steve Hackett wrote:
> Hi!
> 
> How can I get this DirectX materials attributes?
> 
> D3DCOLORVALUE Emissive; // R,G,B,A
> float Power; 

if mat is a Lib3dsMaterial pointer:

mat->shininess is the specular power

mat->self_illum is a boolean value indicating whether the object is
self-illuminated or not. So you could set all emissive components to 1.0
if this one is true, or multiply that with the diffuse or something. I
don't think that self-illumination color is carried along the 3ds
format.

-- 
John Tsiombikas (Nuclear / Mindlapse)
http://nuclear.sdf-eu.org/

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
lib3ds-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lib3ds-devel

Reply via email to