Visual Effect Graph does not work with URP
Asked Answered
U

6

1

Hello.
I have tried to start using Visual Effect, but the VFX do not show up and I get the following error message .

Shader error in 'Hidden/VFX/New VFX/System/Output Particle Quad': undeclared identifier GetWorldToObjectMatrix'at/Unity/Sandbox02_21/Library/PackageCache/[email protected]/Shaders/VFXCommon.hlsl(87) (on d3d11)
[New VFX] [System (1)] Initialize Particle.compute: Kernel at index (0) is invalid
[New VFX] [System] Update Particle.compute: Kernel at index (0) is invalid 
[New VFX] [System] CameraSort.compute: Kernel at index (0) is invalid UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

The operation I performed is as follows.
0. Create a project with a normal 3D template.

  1. Install UniversalRP 11.0.0 from PackageManager.
  2. Install VisualEffectGraph 11.0.0 from PackageManager.
  3. Create a new VFX file (CreateVisual EffectsVisual Effect Graph) in the Assets folder.
  4. D&D the created VFX to Hierarchy.
  5. Play the scene. The above error message is output.

How can I create and run the VFX correctly?
The version of Unity is 2021.1.0b10.

Ultrasonic answered 11/11, 2023 at 21:30 Comment(0)
U
1

Solved it myself:

  1. Go to ProjectSettingsPlayerOtherSettings and change ColorSpace to Linear.
  2. CreateRenderingURPPipeline Asset(Forward Renderer) in any folder in the Project window.
  3. Attach the created file to the top item in ProjectSettingsGraphics.
  4. Reimport the VFX file.
Ultrasonic answered 11/11, 2023 at 21:31 Comment(4)

Create>Rendering>URP>Pipeline Asset(Forward Renderer) <--- I don't have these...

Clausewitz

Then install Universal Render Pipeline into an existing Project via Package Manager: Universal RP. https://docs.unity3d.com/Packages/[email protected]/manual/InstallURPIntoAProject.html

Erskine

Much appreciated, worked perfectly after wandering around multiple threads.

Munday

worked, thanks!

Heavensent
S
0

You are using one of the earliest beta versions of Unity 2021, errors are to be expected. Beta versions of unity should generally not be used productively.

When working with unity betas, you should at least have read through the Unity Beta testing guide

Staysail answered 11/3, 2021 at 10:53 Comment(2)

Thank you for your answer. I tried it with Unity 2020.2.7f1, but the same thing happened and the VFX didn't work properly.

Ultrasonic

yes i curretly use 2020 version i have same error, now i'm trying this man's solved answer. I will be back

Clausewitz
U
1

Solved it myself:

  1. Go to ProjectSettingsPlayerOtherSettings and change ColorSpace to Linear.
  2. CreateRenderingURPPipeline Asset(Forward Renderer) in any folder in the Project window.
  3. Attach the created file to the top item in ProjectSettingsGraphics.
  4. Reimport the VFX file.
Ultrasonic answered 11/11, 2023 at 21:31 Comment(4)

Create>Rendering>URP>Pipeline Asset(Forward Renderer) <--- I don't have these...

Clausewitz

Then install Universal Render Pipeline into an existing Project via Package Manager: Universal RP. https://docs.unity3d.com/Packages/[email protected]/manual/InstallURPIntoAProject.html

Erskine

Much appreciated, worked perfectly after wandering around multiple threads.

Munday

worked, thanks!

Heavensent
S
0

When I made this step: Attach the created file to the top item in ProjectSettings>Graphics. -
the whole of my world (every object and character and terrain) go to be in magenta colour. How can I fix it?

Slaphappy answered 1/6, 2022 at 17:10 Comment(1)

@Slaphappy Edit -> Rendering -> Materials -> Convert Selected Built-In-Materials to Urp

Maxilliped
V
0

I had the following error at first!
Shader error in ‘Hidden/VFX/…’ redefinition of ‘PackHeightMap’

This error has been resolved via the link below.

( I’ll leave a link because someone with the same error as me can read it. )

Then, the above error occurred more than 999 times.
I solved the error with the solution you suggested.
Thank You, very very very much :slight_smile:

Vitascope answered 28/7, 2022 at 8:16 Comment(0)
V
1

I had the following error at first!
Shader error in ‘Hidden/VFX/…’ redefinition of ‘PackHeightMap’

This error has been resolved via the link below.

( I’ll leave a link because someone with the same error as me can read it. )

Then, the above error occurred more than 999 times.
I solved the error with the solution you suggested.
Thank You, very very very much :slight_smile:

Vitascope answered 28/7, 2022 at 10:12 Comment(1)

Ben açtım da anlayamadım lütfen yardım edin bendede her yer pembemsi oldu

Hog
H
0

Bendede her yer aynı renk oldu ama çözemedim. Lütfen açıklama yapar mısınız ?

Hog answered 11/11, 2023 at 21:21 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.