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 / delete texture gdk problem

Author
Message
krolik
16
Years of Service
User Offline
Joined: 20th Mar 2008
Location: Poland
Posted: 30th Jun 2008 19:11 Edited at: 30th Jun 2008 19:12
I have a problem with deleting texture from model. My friend sometimes want to see clear object without texture because he wants see vertex color. I saw in HELP is not command to do this. I dont know how to delete texture but when game is working ! , of course i may change names of textures then model will not load it and will be white, but i want do do this on engine
jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 30th Jun 2008 20:04
Load the model 2 times, one with, one without. Use the dbSetExcludeObjectOn(Id) and dbSetExcludeObjectOff(Id) or whatever they are called, to alternate as necessary. Exclude "on" completely takes the model out of the rendering "queue" and this "toggle" technique, though not 100% ideal, should do what you are after quite nicely.

Login to post a reply

Server time is: 2024-11-20 15:15:38
Your offset time is: 2024-11-20 15:15:38