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 / VR :: Suddenly I can't load textures?

Author
Message
basicFanatic
7
Years of Service
User Offline
Joined: 7th Jun 2017
Location:
Posted: 26th Jul 2018 09:13
For whatever reason, poster.jpg doesn't load into my plane.

I found that it did load if commented out this line:
InitError = AGKVR.Init( RightEyeImg, LeftEyeImg )

So somehow, the VR plugin is blocking the texture. Never experienced this before!


smallg
Valued Member
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location: steam
Posted: 26th Jul 2018 10:25
perhaps try a png?
life's one big game
spec= 4ghz, 16gb ram, AMD R9 2700 gpu
Santman
13
Years of Service
User Offline
Joined: 15th Sep 2011
Location: Inverness
Posted: 26th Jul 2018 13:52
Silly question, but can you load it as a sprite? I.e. is the image working and loading?
basicFanatic
7
Years of Service
User Offline
Joined: 7th Jun 2017
Location:
Posted: 26th Jul 2018 17:03
Good suggestions, but neither using .png nor loading into a sprite works. It just gives me a black plane or sprite. But it still works fine if I remove AGKVR.Init( )

I would guess that ... no, I have no idea, actually.
Santman
13
Years of Service
User Offline
Joined: 15th Sep 2011
Location: Inverness
Posted: 26th Jul 2018 18:32
What happens if you load the image before that command?
basicFanatic
7
Years of Service
User Offline
Joined: 7th Jun 2017
Location:
Posted: 27th Jul 2018 07:30 Edited at: 27th Jul 2018 07:31
Santman, that didn't work either, but your post inspired me to experiment further. And I just found the solution!

I just inserted PRINT("something") in the DO loop. Then the textures show up! I would guess that the lack of anything really happening in the loop made the prog super bored, so it didn't bother showing the textures.
Santman
13
Years of Service
User Offline
Joined: 15th Sep 2011
Location: Inverness
Posted: 27th Jul 2018 11:52
Haha. I love that your program got bored.

Does sound more like a bug though, perhaps to do with shifting tender targets internally or something. I dunno but good to know for the future.

Login to post a reply

Server time is: 2024-11-23 17:55:56
Your offset time is: 2024-11-23 17:55:56