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 / zdepth + zread

Author
Message
AlexI
19
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 5th Feb 2009 20:05
Hi,
Whats the difference between dbDisableObjectZRead and dbDisableObjectZDepth ?

Thanks,
Alex

IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 5th Feb 2009 21:12
dbDisableObjectZDepth disables both reading & writing of the z buffer.

AlexI
19
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 5th Feb 2009 21:22
Ah thanks

Just found dbDisableObjectZWrite();

AlexI
19
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 5th Feb 2009 21:24
So if i have to objects with dbDisableObjectZRead on. How is it decided which object is in front?

Morcilla
21
Years of Service
User Offline
Joined: 1st Dec 2002
Location: Spain
Posted: 6th Feb 2009 16:10
I think that the texture ID decides which object is in front.
Lower IDs will appear behind higher ones, as far as I know.

Since latest DGDK update, dbSetGlobalObjectCreationMode( 2 );, allows to set the order by object number, instead of texture number, but I haven't really tried it.
AlexI
19
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 6th Feb 2009 18:11 Edited at: 6th Feb 2009 18:19
Is that the November update?

Thanks alot by the way, I have been trying to figure this out for ages Changing the texture id's sorted it

Morcilla
21
Years of Service
User Offline
Joined: 1st Dec 2002
Location: Spain
Posted: 6th Feb 2009 18:56
Glad it helps, yep, I was talking about the November 2008 DGDK

Login to post a reply

Server time is: 2024-11-25 13:16:51
Your offset time is: 2024-11-25 13:16:51