lgsvl / simulator

A ROS/ROS2 Multi-robot Simulator for Autonomous Vehicles
Other
2.26k stars 778 forks source link

Shader Error, during unity project build #788

Closed AlexandrZabolotny closed 3 years ago

AlexandrZabolotny commented 4 years ago

Hello! Step 20 from documentation. We check Environments, Vehicles, choose folder, then click build button, then we get error in console

Shader error in 'DiffuseDenoiser.compute': failed to open source file: 'Packages/com.unity.render-pipelines.high-definition/Runtime/RenderPipeline/Raytracing/HDRayTracingManager.cs.hlsl' at kernel BilateralFilterColor at Packages/com.unity.render-pipelines.high-definition/Runtime/RenderPipeline/Raytracing/Shaders/ShaderVariablesRaytracing.hlsl(1) (on d3d11)

image

EricBoiseLGSVL commented 4 years ago

@AlexandrZabolotny Hello. What OS are you using? If you are on Linux, are you using Vulkan, not OpenGL? What Unity version and what LGSVL Simulator version are you using? Did you install both Windows and Linux build support in UnityHub? Does your GPU support d3d11? One solution is to delete the Library folder that unity creates in Simulator root, open Unity editor and let it recreate it. Also, be sure to build one asset at a time to see if a certain asset is causing and issue.

AlexandrZabolotny commented 4 years ago

@EricBoiseLGSVL, Ubuntu 16.04 How can i check what i am using(Vulcan or OpenGL)? image

Simulator release 2020.03

image

How can i check d3d11 support?

lemketron commented 4 years ago

Ubuntu 16.04 How can i check what i am using(Vulcan or OpenGL)?

You can search for "Vulcan" in: .config/unity3d/LG Silicon Valley Lab/LGSVL Simulator/Player.log.

You should see something like the following:

Vulkan API version 1.1.0 (1.1.119 supported by driver)
Vulkan vendor=[NVIDIA] id=[10de]
Vulkan renderer=[GeForce RTX 2070 with Max-Q Design] id=[1f10]

Simulator release 2020.03 How can i check d3d11 support? That's a Windows thing but will indicate whether your GPU has the needed hardware support; knowing which GPU you have would be helpful -- and that should appear as the Vulkan renderer in Player.log as noted above.

AlexandrZabolotny commented 4 years ago

@lemketron,


Vulkan API version 1.1.0 (1.1.95 supported by driver)
Vulkan vendor=[NVIDIA] id=[10de]
Vulkan renderer=[GeForce RTX 2070] id=[1f10]
Vulkan device type 2
Vulkan driverversion=[0x6895c040] uint=[1754644544]
Vulkan PSO: cache data not found [path=/tmp/LG Silicon Valley Lab/LGSVL Simulator/vulkan_pso_cache.bin]

...
EricBoiseLGSVL commented 4 years ago

@AlexandrZabolotny That looks fine. Did you delete the Library folder and re-compile shader code?

Tufis16 commented 3 weeks ago

I see error from Book of the Dead demo:

Shader error in 'Shader Graphs/BotD_Graph_Lit_TranslucentAlphaCutoff': call to 'tex3D' is ambiguous at Assets/BookOfDeathAssets/Other/BotD/BotD_Common_ShaderGraph.hlsl(74) (on d3d11)

CPU: 12th Gen Intel Core i7-12700H (20cpus) 2.3ghz GPU: RTX 3070Ti laptop GPU + DX12 Supported