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.

AppGameKit Classic Chat / 3D model infront of a 2D scene - Suggestions?

Author
Message
Yeshu777
6
Years of Service
User Offline
Joined: 26th Feb 2020
Location: Cardiff ( Caerdydd ), Wales ( Cymru ), UK
Posted: 14th Dec 2024 00: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
hendron
10
Years of Service
User Offline
Joined: 20th Dec 2015
Location:
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().
ando
6
Years of Service
User Offline
Joined: 21st Feb 2020
Location: Australia
Posted: 17th Dec 2024 22:12
Could you replace the 2D object with a plane in the 3D world?
BASIC appeared in May 1964. Lightning flashed, the wind roared and the Earth moved.
And nine months later I was born.
So here I am.
I am Basic.
Code is in my genes.
blink0k
Moderator
13
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 18th Dec 2024 19:21
Have a look at Get3DVectorX/Y/ZFromScreen()
https://www.appgamekit.com/documentation/Reference/3D/Get3DVectorXFromScreen.htm

Login to post a reply

Server time is: 2026-06-05 07:09:34
Your offset time is: 2026-06-05 07:09:34