Jump to content

GeNa Pro 3.3.16 - Road Carve Issue


gabriel_fuentesGD
 Share

Go to solution Solved by gabriel_fuentesGD,

Recommended Posts

Hey guys! I've been using GeNa Pro (3.3.14) to make some roads for my environment, didn't had any issues during that version. However, when I updated to the recent version (3.3.16), carving is not working as intended, the preview is not appearing and I'm getting the following consistent error every time I press the carve extension:

"GeNaCarve.compute: Kernel at index (0) is invalid
UnityEngine.StackTraceUtility:ExtractStackTrace ()
GeNa.Core.GeNaCompute:Dispatch (int,int,int,int)
GeNa.Core.TerrainTools:CarveTerrain (UnityEngine.Terrain,GeNa.Core.GeNaSpline,System.Collections.Generic.List`1<GeNa.Core.GeNaCurve>,GeNa.Core.TerrainEntity)
GeNa.Core.TerrainTools:GenerateTerrainEntity (GeNa.Core.TerrainModifier,GeNa.Core.GeNaSpline)
GeNa.Core.GeNaCarveExtension:Visualize () (at Assets/Procedural Worlds/GeNa/Scripts/Runtime/Extensions/GeNaCarveExtension.cs:138)
GeNa.Core.GeNaCarveExtension:OnSceneGUI () (at Assets/Procedural Worlds/GeNa/Scripts/Runtime/Extensions/GeNaCarveExtension.cs:95)
GeNa.Core.GeNaSplineExtension:SceneGUI ()
GeNa.Core.GeNaSpline:OnSceneGUI ()
GeNa.Core.SplineEditor:OnSceneGUI () (at Assets/Procedural Worlds/GeNa/Scripts/Editor/SplineEditor.cs:156)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)."

Any advice or suggestions is greatly appreciated!

 

Carving extension working as intended in version 3.3.14:

spacer.png

 

Here's the carve extension in version 3.3.16 in a test scene with the consistent error and the preview not working properly:

spacer.png

Link to comment
Share on other sites

Hey @gabriel_fuentesGD,

I actually havent seen this issue in so long. I was wondering if you could provide me with the following details:

  • What OS are you using to run Unity.
  • What version of Unity are you using.
  • Does the computer you're using support compute shaders? 

If you're unsure of how to find out about whether your computer supports compute shaders, since you have Gaia installed, could you open the Gaia Manager, go to the Advanced tab and open the System & Project Information panel. You should see that information here:
image.png

Also, if this is related to another issue that I noticed with Unity, you could try disabling the 'Caching Preprocessor' setting located in Edit -> Project Settings -> Editor -> Caching Preprocessor:
image.png

Link to comment
Share on other sites

Hey @Manny,

Here are the general details for my Unity version and my computer:

spacer.png

I also turned off the 'Caching Preprocessor' setting and I'm still getting the error. 

Testing with some of my coworkers, we discovered that the problem does not occur on their computers. So most likely it can't be neither the GeNa nor the Unity version, rather it has to do with the computer perhaps?

Link to comment
Share on other sites

Hey @gabriel_fuentesGD,

It looks as though that compute shader that is being used, isn't being compiled by Unity. Could you please select that shader and send a screenshot of any warnings that are showing?
image.png
The shader is located in Procedural Worlds -> GeNa -> Resources -> Compute -> TerrainTools -> GeNaCarve.compute
 

Link to comment
Share on other sites

  • Solution

Update: 

I managed to solve the issue! By looking at those errors, I was getting the 'Couldn't open include file' . Apparently that's an issue that has happened to multiple people before when using shaders. What worked for me was to:

  1. Rename both 'GeNa Carve' and 'GeNa Paint' scripts (to anything literally)
  2. Right click and re-import both files, and rename them again to their original names
  3. After that, try closing Unity and re-opening the project. That should fix the issue

Here's a link of a forum of multiple people having the same issue but with different shaders:

https://forum.unity.com/threads/all-shaders-fails-to-open-source-file-custom-cginc.523184/

Thank you for the support @Manny!

  • Like 1
Link to comment
Share on other sites

7 hours ago, gabriel_fuentesGD said:

Update: 

I managed to solve the issue! By looking at those errors, I was getting the 'Couldn't open include file' . Apparently that's an issue that has happened to multiple people before when using shaders. What worked for me was to:

  1. Rename both 'GeNa Carve' and 'GeNa Paint' scripts (to anything literally)
  2. Right click and re-import both files, and rename them again to their original names
  3. After that, try closing Unity and re-opening the project. That should fix the issue

Here's a link of a forum of multiple people having the same issue but with different shaders:

https://forum.unity.com/threads/all-shaders-fails-to-open-source-file-custom-cginc.523184/

Thank you for the support @Manny!

That's fantastic to hear mate! Thanks for providing us with the resolution that worked for you 😁

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Tell a friend

    Love Canopy - Procedural Worlds? Tell a friend!
  • Need help?

    We work with some of the biggest brands in global gaming, automotive, technology, and government to create environments, games, simulations, and product launches for desktop, mobile, and VR.

    Our unique expertise and technology enable us to deliver solutions that look and run better at a fraction of the time and cost of a typical project.

    Check out some of our non-NDA work in the Gallery, and then Contact Us to accelerate your next project!

×
×
  • Create New...