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 / [2.0.21] SetRenderToImage 3D Depth Problem ?

Author
Message
MikeMax
AGK Academic Backer
12
Years of Service
User Offline
Joined: 13th Dec 2011
Location: Paris
Posted: 9th Sep 2016 22:25 Edited at: 9th Sep 2016 22:29
Paul,

It seems the SetRenderToImage does not render correctly 3D objects depths versus direct screen rendering which is OK ... (i'm using SetRenderToImage for VR rendering to display each eye)

in 2.0.20, only windows was affected (doesn't matter) ... but now in 2.0.21, Windows AND Android are showing the problem... (maybe iOS ? MacOS ? Linux ?)

Any idea ?
--------------------------------
Join us on dedicated AppGameKit WeeKChat :
https://week.chat/room/AppGameKit
Paul Johnston
TGC Developer
21
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 13th Sep 2016 12:33
Can you post an example project, or email it to me?
MikeMax
AGK Academic Backer
12
Years of Service
User Offline
Joined: 13th Dec 2011
Location: Paris
Posted: 15th Sep 2016 20:07 Edited at: 19th Sep 2016 00:29
Sample Project showing the bug sent by Email ! (on both addresses)

Here are the screenshots

1. Direct screen rendering :


2. SetRenderToImage VR rendering :
--------------------------------
Join us on dedicated AppGameKit WeeKChat :
https://week.chat/room/AppGameKit

Attachments

Login to view attachments
MikeMax
AGK Academic Backer
12
Years of Service
User Offline
Joined: 13th Dec 2011
Location: Paris
Posted: 23rd Sep 2016 19:10
Any news ?
--------------------------------
Join us on dedicated AppGameKit WeeKChat :
https://week.chat/room/AppGameKit
Paul Johnston
TGC Developer
21
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 30th Sep 2016 18:18
Sorry for the delay in replying. I had a look at your project and you need to use a depth buffer in SetRenderToImage, currently you use 0 which disables the depth buffer. You can either use another image as the depth buffer or use -1 to use an internal depth buffer that will be discarded after rendering.
MikeMax
AGK Academic Backer
12
Years of Service
User Offline
Joined: 13th Dec 2011
Location: Paris
Posted: 1st Oct 2016 07:31
You're right Paul. a value of -1 fix the problem. However I don't know why a value of 0 worked in the previous version on Android !

Thanks a lot !
--------------------------------
Join us on dedicated AppGameKit WeeKChat :
https://week.chat/room/AppGameKit

Login to post a reply

Server time is: 2024-04-19 03:06:14
Your offset time is: 2024-04-19 03:06:14