[Plib-users] How to add color to .3ds file object?
Brought to you by:
sjbaker
|
From: Allen Y. <ay...@wr...> - 2002-07-24 21:51:33
|
Hi,
I used ssgLoad3ds to load my 3ds object into the scene. The object only
shows white color. Now I try to add the different color to it. I don't have
any luck so far. Can anyone show me how to do it?
The following code I used to load 3ds file
if(m_OS == NULL)
m_OS = new ssgTransform;
ssgModelPath ( "../data" ) ;
ssgTexturePath ( "../data" ) ;
OS_obj = ssgLoad3ds ("latestSEAWOLF.3DS");
m_OS->addKid ( OS_obj ) ;
ssgFlatten ( OS_obj ) ;
ssgStripify ( m_OS ) ;
return m_OS;
Thank you for help.
|