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 Studio Chat / Play video plays in the background

Author
Message
Game_Code_here
3
Years of Service
User Offline
Joined: 2nd Jun 2020
Location:
Posted: 16th Dec 2021 07:44 Edited at: 16th Dec 2021 07:44
Playing videos play in the background in 3d but in appgamekit classic they play in the front, why?
Virtual Nomad
Moderator
18
Years of Service
Recently Online
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 16th Dec 2021 16:23
probably (undocumented) Vulkan difference in AGK. try: #renderer "Basic" to test.

if you want to keep Vulkan rendering, try PlayVideoToImage()?
Game_Code_here
3
Years of Service
User Offline
Joined: 2nd Jun 2020
Location:
Posted: 16th Dec 2021 21:42
Virtual Nomad

I tried this and it still does not work lol.

I do not know why but I guess I will have to play video to image like you suggest.

Thank you for your answer.
jd_zoo
5
Years of Service
User Offline
Joined: 12th May 2018
Location: Nova Scotia
Posted: 16th Dec 2021 21:44
SetGlobal3DDepth()? Do you have any 2D sprites showing in your 3D world?
Game_Code_here
3
Years of Service
User Offline
Joined: 2nd Jun 2020
Location:
Posted: 16th Dec 2021 22:01
Quote: "Do you have any 2D sprites showing in your 3D world?"


Yes, billboarding with sprites.

So I will try this thank you.
Game_Code_here
3
Years of Service
User Offline
Joined: 2nd Jun 2020
Location:
Posted: 16th Dec 2021 22:18 Edited at: 16th Dec 2021 22:18
That did not work.

Here is my screen set up, Mabey the video is not centered right? I can hear the video but not see it.

jd_zoo
5
Years of Service
User Offline
Joined: 12th May 2018
Location: Nova Scotia
Posted: 19th Dec 2021 15:37
Just made a little test and can confirm the video is in the background when compiled with Studio, but is overtop when using Classic.

Attachments

Login to view attachments
Virtual Nomad
Moderator
18
Years of Service
Recently Online
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 19th Dec 2021 16:08 Edited at: 19th Dec 2021 16:44
ok...

on classic:

when i run jd's example from the IDE, the vid is in the front.

then, launching the exe from the project folder, it's in the back.



on studio, both are in the back.

more wierdness. studio seems to be generating 2 exes. one in lowercase (original project name), one seems to be using the original folder name "3D Video" while the other is using the project name?



deleting both then run and they're both back.

*the above is inconsistent. sometimes there are 2 exes, sometimes not <shrugs>

Attachments

Login to view attachments
jd_zoo
5
Years of Service
User Offline
Joined: 12th May 2018
Location: Nova Scotia
Posted: 19th Dec 2021 21:05
Interesting I did not try running the exe file directly.

I did notice a double exe but it was when I had the project open in both classic and studio at the same time.
jd_zoo
5
Years of Service
User Offline
Joined: 12th May 2018
Location: Nova Scotia
Posted: 20th Dec 2021 01:17
I think PlayVideoToImage should work with a sprite, try out the below code for working example.

Login to post a reply

Server time is: 2024-04-20 17:17:52
Your offset time is: 2024-04-20 17:17:52