Unity-Technologies / com.unity.demoteam.hair

An integrated solution for authoring / importing / simulating / rendering strand-based hair in Unity.
Other
708 stars 96 forks source link

Property (_VertexBufferPosition) at kernel index (0) is not set #72

Open cnzipper opened 10 months ago

cnzipper commented 10 months ago

I've been trying to get the High Quality Line Renderer to work but I don't have any success. I get the following error:

Compute shader (ComputeShader-VertexSetup): Property (_VertexBufferPosition) at kernel index (0) is not set UnityEngine.GUIUtility:processEvent (int,intptr,bool&)

Decals are activated in the project, so this is not the reason for the error. I tried the following with Unity 2023.2.0a22 and Unity 2023.1.10f1 (same problem with both versions):

  1. Created a fresh new "3D (HDRP) Core" Project

  2. Installed the Hair System Package in the Package Manager using this link: "https://github.com/Unity-Technologies/com.unity.demoteam.hair.git"

  3. Installed the "Minimal HairSample" from the Package Manager

  4. Checked that "High Quality Line Rendering" is activated in Edit>Project Settings>Graphics>HDRP Global Settings>Camera>Rendering

  5. Checked that "High Quality Line Rendering" is activated in Edit>Project Settings>Quality>HDRP for all Presets (HDRP Balanced, HDRP High Fidelity, HDRP Performant, HDRenderPipelineAssets)

  6. In the Scene Volume of the Sample Scene I added an Override with "High Quality Line Rendering: Enabled"

  7. In the "Hair Instance" Component of the Scene I set SettingsSystem>StrandRenderer to HDRP High Quality Lines

  8. I get the error message and the Hair isn't rendered anymore - this happens even, when I replace the Hair Shader with a custom Material with "High Quality Lines Support" activated in the shader. I even tried replacing the Shader with the Hair Shader from the Enemies Demo - same problem. I also checked that Decals are activated - still not working.

Am I missing something? I am thankful about every answer!!

When I open the Enemies Demo Project, the High Quality Line Renderer works there, but not in a fresh Unity Project!

My System: CPU 11th Gen Intel Core-i9-11980HK GPU Nvidia Geforce RTX 3080 Laptop Windows 11

hh455695642 commented 10 months ago

I also encountered the same problem