Posted: 14th Dec 2024 0:01
Hi All,

Just a quick quesion, I have a nice 3D model which I'd like to incorporate in my 2D game, possibly during an attract sequence.

I've done 2D over 3D ( Video Reels ) and this works fine, so what would be the best way to acheive the opposite?

Any suggestions as to the method to follow?

Thanking you kindly,

Yeshu777
Posted: 17th Dec 2024 20:22
Depends what you're trying to accomplish. If it's simply drawing 3D objects in front of 2D sprites instead of behind, the SetGlobal3DDepth() command will get you there. I don't think you can set the 2D depth on a per 3D object basis though, so anything more complicated will likely require taking manual control over the rendering order using the Update/Render/Draw/Swap etc commands instead of using Sync().
Posted: 17th Dec 2024 22:12
Could you replace the 2D object with a plane in the 3D world?
Posted: 18th Dec 2024 19:21
Have a look at Get3DVectorX/Y/ZFromScreen()
https://www.appgamekit.com/documentation/Reference/3D/Get3DVectorXFromScreen.htm