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 Display Bug when Render to Image

Author
Message
Ched80
14
Years of Service
User Offline
Joined: 18th Sep 2010
Location: Peterborough, UK
Posted: 18th Nov 2016 20:24
Ok so I've been slowly implementing some 3D code using some old FPSC models adjusted to work with AGK.

Primarily I'm trying to make a simple VR game so I prototyped the camera code, but I've hit a bit of a bug.

I've implemented some code to switch between a standard FPS view and the VR view. Here's the standard FPS view:



So everything looks fine - although admittedly quite ugly at the moment. However, when I switch to VR mode, things take a turn for the weird:



It's really odd, it's like the textures are inverted and you can see walls behind walls and the door frames are partly visible. Anyway, I'm stuck so anyone have any ideas?

Here my VRRender code:



Any help is appreciated.
MikeMax
AGK Academic Backer
12
Years of Service
User Offline
Joined: 13th Dec 2011
Location: Paris
Posted: 18th Nov 2016 21:17
Instead of 0, use -1 for the depthbuffer in the SetRenderToImage command (i already made this mistake in my VR test ... it was working in previous versions and Paul helped me on this)
--------------------------------
Join us on dedicated AppGameKit WeeKChat :
https://week.chat/room/AppGameKit
Ched80
14
Years of Service
User Offline
Joined: 18th Sep 2010
Location: Peterborough, UK
Posted: 18th Nov 2016 21:27
Mike! You are a superstar! That fixed it:



MikeMax
AGK Academic Backer
12
Years of Service
User Offline
Joined: 13th Dec 2011
Location: Paris
Posted: 18th Nov 2016 21:31
You're welcome ! (but the superstar is Paul !
--------------------------------
Join us on dedicated AppGameKit WeeKChat :
https://week.chat/room/AppGameKit

Login to post a reply

Server time is: 2024-11-24 23:06:49
Your offset time is: 2024-11-24 23:06:49