TheGameCreators / AGK-Studio

3 stars 1 forks source link

Blocker: VR-Project remains black in VR only (AMD RADEON RX 5700 XT / TUF Gaming) #733

Closed enexusde closed 3 years ago

enexusde commented 4 years ago

I started AppGameKit having VR DLC activated and start the untouched "AGKVR Demo 1 - Castle Basic".

A window pops-up showing the game, showing VR-Helmet movements and controller movements. When I mount the VR-Helmet on my head the VR-World remains black. Inside VR it looks like there is no source of light.

This is my debug output:

18:11:06: (null) INFO : Geany 1.24.1, German_Germany.1252 18:11:06: (null) INFO : GTK 2.24.10, GLib 2.28.8 18:11:06: (null) INFO : System data dir: C:\Program Files (x86)\Steam\steamapps\common\App Game Kit 2\Tier 1\Editor\data 18:11:06: (null) INFO : User config dir: C:\Users\Guest\AppData\Local\agk 18:11:06: (null) INFO : System plugin path: C:\Program Files (x86)\Steam\steamapps\common\App Game Kit 2\Tier 1\Editor\lib 18:11:06: Gtk CRITICAL : _gtk_tree_view_column_autosize: assertion `GTK_IS_TREE_VIEW (tree_view)' failed 18:11:06: (null) INFO : Bad color 'stringeol' 18:11:06: (null) INFO : Loaded C:\Program Files (x86)\Steam\steamapps\common\App Game Kit 2\Tier 1\Editor\data\tags\main.agc.tags (AGK), 2034 tag(s).

Any ideas?

The profile Guest is a Admin-Account. Other VR games on the Guest-Profile are working great. It is no permission problem, it is a AppGameKit problem.

It makes no sense to think it might be a permission issue. How should this be affected to permissions? The Application can start, recieves position and rotation of the VR-Helmet, shows the rendered content in a window, allowes full interactions but not render light in the VR-Helmet. How should this be gives any kind of permission related protection? The protection from being dazzled? You mean there is a security-flag that is named "preventBeingVirtualRealityDazzledInAGK"? Iv looked everywhere no such security-flag exists. And even if there exist something on profile-layer, a confirmation-dialog from windows would appear.

enexusde commented 4 years ago

I added

renderer "Basic"

right below

import_plugin AGKVR

in the AGKVR-Demo-1-Castle-Basic but the VR-Environment remains black.

ericksonline commented 4 years ago

Hello enexusde! I agree. This shouldn't be a permissions issue. It seems there is something that is preventing the HMD from receiving the render images. A couple things to check: Are you using the latest version of AGK? Are your graphics drivers and Steam up to date? Internally, AGKVR is much simpler using the OpenGL renderer in AGK. Put the #renderer "basic" as the very first line in the application.

enexusde commented 4 years ago

Yes, I am using the latest AGK. Graphiccard: is up to date (ATI RX 5700 XT), GraphicDriver: up to date. AGK: up to date. Steam: up to date. I also tried #rerender "basic" as the very first physical SLOC. It did not help. Hey, I posted the layer-1 .exe in a zip of one of my projects. Could you just try to run the exe?

See, I can not remember exactly where but... I think I found a message anywhere in the AGK the message "AGKVR not initalized". Do not ask me where ... I just feel like it comes from the AGK process itself because I did not start any project run/built. Because of that I tried to uninstall AGK and reinstall it again (in the feeling of having AGK installed wrong), but the HMD remains black.

That it is not a permission issue is clear? It was a guess from the forum and since I have no better idea it is still the best approach.

enexusde commented 4 years ago

https://github.com/enexusde/VRServer/blob/master/steam-vrclient-app.zip

enexusde commented 4 years ago

Do you like to join a meet or teamviewer instance?

ericksonline commented 4 years ago

I can do a teamviewer session. Send me the details: ericksonline@yahoo.com

enexusde commented 4 years ago

SteamVR-2020-09-14-PM_03_18_53.txt

ericksonline commented 4 years ago

I will try to compile a new version of AGKVR using the latest version of SteamVR and send you a copy. Not sure I will be able to get that done today, but I'll see what I can do.

enexusde commented 4 years ago

I did not got an email yet. 😢 I can confirm that it is affected to ATI graphiccard only. The NVidia graphiccard renderes the VR contents correctly. Since other VR games are working on the ATI graphiccard the AGKVR is incompatible with at least my RADEON RX 5700 XT.

ericksonline commented 4 years ago

Sorry! It has been a crazy week. It is interesting to hear that it is working for you on the NVIDIA card. I'm hoping that updating the version of OpenVR that AGKVR uses will fix the problem for you. There really isn't anything in AGKVR that is graphics card dependent. I'll try to get you a new version tomorrow.

enexusde commented 4 years ago

I am glad to hear that it is on your list. Feel free to use my PC as a sandbox, feel free to install a complete dev-environment on my PC via TeamViewer #shareknowledge.

ericksonline commented 4 years ago

I have a new version ready for you to try. Let me know when you are ready.

enexusde commented 4 years ago

Feel free to join now. :D

enexusde commented 4 years ago

I close the connection now, maybe tomorrow.

ericksonline commented 4 years ago

Sorry! I was available for a while after I sent the message, but had stuff to do this afternoon and evening. I'm not sure what my schedule is tomorrow, but send me an e-mail if you are available and I'll see what I can do!

enexusde commented 4 years ago

Hi Eric, in a hour I have an 5 hours slot for you. Ill send you the credentials soon.

Kind regards

ericksonline commented 4 years ago

Hello! When I try to send you an e-mail, it bounces back to me. I've just done a little more testing here and added some additional debugging. It may be easier to track down if I can find the error code when the images are submitted to the HMD. Let me know when you have more time! Ron

ericksonline commented 4 years ago

I haven't heard back from you. Let me know when you have time. Thanks! Ron

enexusde commented 4 years ago

Hey Ron, I am sorry, I was not aware that we can test now. I have time in 17 hours (10:30pm Germany /GMT+2 (aka GMT1+DST1) ) what is about 4pm NY. I will send you the credentials then.

ericksonline commented 4 years ago

The test that I want to do will not really be an attempt to fix the problem. I want to try to capture the error that is happening so I have a better idea of what is going on. It should only take a couple of minutes. Thank you!

enexusde commented 4 years ago

Hm your awake? Shall we start in 30 Minutes?

ericksonline commented 4 years ago

I am available now.

enexusde commented 4 years ago

I send you a mail in a second.

ericksonline commented 4 years ago

Hey! Do you have another e-mail address where I can contact you? My e-mails get rejected at the address that I have for you. I have something else to try.

enexusde commented 4 years ago

Hi Ron,

github@e-nexus.de should do the trick. Otherwise you could try p.rader@gmx.net

Kind regards

ericksonline commented 4 years ago

Hello! I have some good news! It just so happens that Paul from TGC recently got the same GPU. He was able to reproduce your problem and diagnose the problem. OpenVR was requiring a very specific texture format for OpenGL. AGK was using a generic texture format that allows the GPU to choose which format to use. The AMD driver must be selecting a format that is incompatible with OpenVR, so it wouldn't accept the render images. Paul modified AGK to use the more specific format and now all is working for him. I will send you a link with some new files for AGK to use until AGK is officially updated.

enexusde commented 4 years ago

I recieved the mentioned files, tested them and can confirm that the fix is working. The vr-environment is no longer black. Thank you.

I will leave the issue as it is for your further work. Close it as you wish.

PaulSJ commented 3 years ago

Fixed in version 2020.11.12