Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / .x models get all white

Author
Message
fire ball
14
Years of Service
User Offline
Joined: 15th Jan 2010
Location: indonesia
Posted: 14th Mar 2010 22:36
hi.. I\'m newbie in dark gdk.. i created a model in 3d max with material in it.. then i exported it to .x with panda export tool..
after i loaded the model, it all get white color..i set the light with dbSetObjectLight(1,1) or dbSetObjectLight(1,0).. but it still white..
Grenadiac111
14
Years of Service
User Offline
Joined: 23rd Dec 2009
Location:
Posted: 15th Mar 2010 04:41
is the texture/material you used on the model in the same folder as the .x file in your project white is the default color rendered on an object when it canot find or doesn't have a texture.
fire ball
14
Years of Service
User Offline
Joined: 15th Jan 2010
Location: indonesia
Posted: 15th Mar 2010 09:32
there's no file material.. i just give it pink material.. here is my model..

Attachments

Login to view attachments
fire ball
14
Years of Service
User Offline
Joined: 15th Jan 2010
Location: indonesia
Posted: 15th Mar 2010 11:16
ok.. i got it solved.. i have to call method dbSetNormalizationOn()..
tq.. =p

Login to post a reply

Server time is: 2024-10-02 01:44:19
Your offset time is: 2024-10-02 01:44:19