carla-simulator / carla

Open-source simulator for autonomous driving research.
http://carla.org
MIT License
11.35k stars 3.68k forks source link

GlobalShaderCache-GLSL_150.bin is missing when running with -opengl3 #3610

Open Stephanehk opened 3 years ago

Stephanehk commented 3 years ago

I am attempting to install Carla 0.9.10.1 on Linux. When running "swr CarlaUE4.sh -opengl3", I get the following error:

"LogShaders: Error: The global shader cache file Carla_Sim/Engine/GlobalShaderCache-GLSL_150.bin is missing

Your application is built to load COOKED content No COOKED content was found this usually means you did not cook content for this build."

Upon inspecting the Engine folder, the file really is missing, however, there is a file named " GlobalShaderCache-GLSL_430.bin". Is there some other version of Carla that needs to be compiled in order to use opengl3? I am not quite sure what is causing this error.

qhaas commented 3 years ago

I could be wrong, but I think it only supports opengl 4. CARLA 0.9.9+ is based on UnrealEngine 4.24, which appears to have dropped opengl 3.x: GL 3.3+ have been removed for in 4.23.

I also only see OpenGL 4 and Vulkan in the list of APIs to 'cook' for.

KunanonxGithub commented 3 years ago

@qhaas Hello, could you help me throught this question pls? I am so curious about how physic in CARLA actually work because I want to use CARLA and PID control to develop Adaptive Cruise Control and I think it need information such as vehicle mass (which is known in document) but b, air coefficient drag force, espicially relationship between throttle and velocity of CARLA car. #3625 is unknown

Stephanehk commented 3 years ago

@qhaas I tried using CARLA 0.9.5 and had the same error. Was OpenGL 3 support removed from all versions?

qhaas commented 3 years ago

Clarification, I'm not affiliated with CARLA; I'm just a user.

Looks like using -opengl will trigger using opengl 4.3 instead of vulkan for newer versions of CARLA.

CARLA 0.9.5 uses UnrealEngine 4.21 and appears to target only OpenGL 4.3. Looking at the UnrealEngine 4.21 source, it doesn't seem to list OpenGL 3 as a 'TargetedRHIs'.

corkyw10 commented 3 years ago

@Axel1092 could you follow up on this please?

Axel1092 commented 3 years ago

Hi all, just to clarify things a little, as @qhaas said OpenGL 3 has been deprecated for some time in unreal engine and therefore you won't get it to work with it. As newer versions come up older render API are being deprecated. CARLA 0.9.11 is probably the last version to support OpenGL 4, making vulkan the only render API available for Linux systems as Unreal has deprecated OpenGL entirely in the latest versions.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

sxppro commented 1 year ago

I am current using the latest version (0.9.13), however, when I launch CARLA without any options I encounter a similar error (except the file is called GlobalShaderCache-GLSL_150_ES31.bin). In the directory I actually have a file called GlobalShaderCache-SF_VULKAN_SM5.bin. Why is CARLA referring to a different global shader cache?

sxppro commented 1 year ago

I am current using the latest version (0.9.13), however, when I launch CARLA without any options I encounter a similar error (except the file is called GlobalShaderCache-GLSL_150_ES31.bin). In the directory I actually have a file called GlobalShaderCache-SF_VULKAN_SM5.bin. Why is CARLA referring to a different global shader cache?

Never mind I solved my issue - it was because I hadn't installed vulkan-utils

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.