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.

Newcomers AppGameKit Corner / [SOLVED] Possible to change depth of one object, so it can be seen above sprites?

Author
Message
Golelorn
2
Years of Service
User Offline
Joined: 20th Nov 2016
Location:
Posted: 2nd Jul 2018 23:54
I am attempting to create a paperdoll. However, I have my objects set to always be beneath my sprites with Set3dGlobalDepth.

Is there a quick way to change the depth of just one object, so it can be seen above sprites? None of the SetObjectDepth commands appear to impact the depth test with sprites.

The author of this post has marked a post as an answer.

Go to answer

Phaelax
DBPro Master
16
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 3rd Jul 2018 20:36
Set object depth works exactly as it should, changing the depth among sprites. That's all 2D stuff and has no effect on 3D stuff such as your objects. I'm unaware of any command that can change the depth of a 3D object to display over a sprite that only affects a single object.
Tiled TMX Importer V.2
XML Parser V.2
Base64 Encoder/Decoder
Purple Token - Free online hi-score database
Legend of Zelda

"I like offending people, because I think people who get offended should be offended." - Linus Torvalds
IronManhood
4
Years of Service
User Offline
Joined: 6th Feb 2015
Location: US
Posted: 3rd Jul 2018 21:16 Edited at: 3rd Jul 2018 21:17
This post has been marked by the post author as the answer.
But you couldn't you do this by rendering the object after 2D has rendered?

Something like:


Golelorn
2
Years of Service
User Offline
Joined: 20th Nov 2016
Location:
Posted: 3rd Jul 2018 23:15 Edited at: 3rd Jul 2018 23:25
IronManHood,


I tested your idea out, and it did indeed work. Thanks!!!

Login to post a reply

Server time is: 2019-05-26 18:13:52
Your offset time is: 2019-05-26 18:13:52