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 / weird transparency problems

Author
Message
Hassan
15
Years of Service
User Offline
Joined: 4th May 2009
Location: <script> alert(1); </script>
Posted: 15th Feb 2010 16:25 Edited at: 15th Feb 2010 16:25
Hello guys!

i was messing with transparency a bit, and noticed something weird, take a look at this code:


here, i can see object 11 through object 10, and i can see the plain through object 11, but i cant see the plain through object 10.
also, if i replace second dbLoadObject with dbCloneObject ( 11, 10 ), i cant see object 11 through 10, but i can see the plain through 10 and 11, why is that? ( ye i know, its confusing xD )
these 2 exe's shows what im talking about : http://filebeam.com/1f04a3f5aae4a99e932b2fceb03806d3( press 1 and/or 2 and see what happens )

Morcilla
21
Years of Service
User Offline
Joined: 1st Dec 2002
Location: Spain
Posted: 16th Feb 2010 10:12
I would say that the texture Id's have something to say.
Object 10 is textured, while the others aren't.
DGDK rendering order is set to texture ID order by default (there is a command to change it to object ID order, I don't remember the name now).
Also, I do not recommend to go cloning transparent or ghosted objects, as I have noticed strange interactions with that in the past (stencil shadows become solid). Clone a simple object and then make the cloned object setup.

Login to post a reply

Server time is: 2024-11-20 03:27:02
Your offset time is: 2024-11-20 03:27:02