Open Qqww4599 opened 1 year ago
custom shaders support in ogre 1.x (used by waves) is not working well. As for ogre2 support on WSL, there are a few know issues, please see https://github.com/gazebosim/gz-sim/issues/920. You'll likely need a few patches mentioned in https://github.com/gazebosim/gz-sim/issues/920#issuecomment-1556206263
I have the same issue and similar setup (using Fortress), I found setting LIBGL_ALWAYS_SOFTWARE=1 does fix the immediate crash and flickering but it will still easily crash on some features. Only just starting a project in this setup so I'll see how far I get with this, and will keep an eye on this thread.
Environment
binary build (Garden). Install from https://gazebosim.org/docs/garden/install_ubuntu
Rendering plugin: ogre and ogre2.
EGL headless mode:
Generally, mention all circumstances that might affect rendering capabilities:
Rendering system info:
ftc@DESKTOP-ARO2VPH:~$ LANG=C lspci -nn | grep VGA ftc@DESKTOP-ARO2VPH:~$ echo "$DISPLAY" :0 ftc@DESKTOP-ARO2VPH:~$ LANG=C glxinfo -B | grep -i '(direct rendering|opengl|profile)' direct rendering: Yes Preferred profile: core (0x1) Max core profile version: 4.1 Max compat profile version: 4.1 Max GLES1 profile version: 1.1 Max GLES[23] profile version: 3.0 OpenGL vendor string: Microsoft Corporation OpenGL renderer string: D3D12 (Intel(R) UHD Graphics 770) OpenGL core profile version string: 4.1 (Core Profile) Mesa 22.2.5-0ubuntu0.1~22.04.3 OpenGL core profile shading language version string: 4.10 OpenGL core profile context flags: (none) OpenGL core profile profile mask: core profile OpenGL version string: 4.1 (Compatibility Profile) Mesa 22.2.5-0ubuntu0.1~22.04.3 OpenGL shading language version string: 4.10 OpenGL context flags: (none) OpenGL profile mask: compatibility profile OpenGL ES profile version string: OpenGL ES 3.0 Mesa 22.2.5-0ubuntu0.1~22.04.3 OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00 ftc@DESKTOP-ARO2VPH:~$ ps aux | grep Xorg ftc 19581 0.0 0.0 4024 1924 pts/0 S+ 13:28 0:00 grep Xorg
[ ] Please, attach the ogre.log or ogre2.log file from
~/.gz/rendering
Description
I want to simulate VTOL taking off and landing on the ship, hoping to have the same effect as https://www.youtube.com/watch?v=rJCEN5Htu2s But now I have some problems:
1.There will be no waves when using Ogre1 and software rendering, and the 3D screen will flicker frequently After executing the
gz sim car.world --render-engine ogre
command, the screen will flicker at high frequency. car.world is the world I created, including a VTOL, a ship and waves2.Executing
LIBGL_ALWAYS_SOFTWARE=1 gz sim car.world
can be started successfully, but no waves are generated3.The window will be closed immediately after execution with Ogre2. The command is
gz sim car.world
This problem is a bit similar to https://github.com/gazebosim/gz-sim/issues/1841. I have triedLIBGL_DRI3_DISABLE=1 gz sim car.world
so far it will flicker----update---- When I turn on the Video recorder and start recording, the screen no longer flickers. However, when the recording stops, the screen will flash again.