Jump to content

Strange issue with GeNa road Carve extention


Ernbot
Go to solution Solved by Ernbot,

Recommended Posts

Hey,

Just bought GeNa Pro to use in an existing project in which we already have Gaia Pro 2023 (plus easy roads, and dreamtek splines), using Unity 2022.3.4 with HDRP

When trying to use the carve extension we get some really stange happenings as below. I've installed GeNa to a blank project and the issue does not occour.

I obviusly dont want to have to remove everything from our existing project and start afresh, could there be a setting somewhere etc that might fix the issue? I've re-installed the package and said yes to the DLL thing.

Chers 

Screenshot 2023-12-31 121224.png

Screenshot 2023-12-31 121241.png

Link to comment
Share on other sites

Hi @Ernbot,

this looks very unusual, my first guess would be that there are some extreme noise settings set up for the carve extension. Have you tried removing and adding back the Carve Extension again? (So that it resets to default settings). 
Another idea would be to test if this happens in a fresh scene within the project showing the issue (just make a new empty terrain from the scene "Create" menu to test. This would give the info if the issue is bound to the project or that specific scene / terrain only.


 

Link to comment
Share on other sites

Hey - yeah, it does look like the values are gone haywire somehow - here are some more screenshots in a different scene and a fresh scene, the values seem all good in the inspector at least 

Screenshot 2024-01-04 120833.png

Screenshot 2024-01-04 121032.png

Screenshot 2024-01-04 121042.png

Link to comment
Share on other sites

Hi @Ernbot,

I had another look at this issue and tried to replicate it, but no luck so far, the carve feature behaves correctly in my replication project. I noticed that the visualization seems to be somewhat correct along the spline, but then goes wild in the shoulder / noise area besides the road - what happens if you reduce the shoulder width to 0 and deactivate noise altogether?
What is the unity target platform (WebGL? Mobile?, etc.) of the project? Do you use a custom HDRP render pipeline asset? If yes, could you swap in a default one, or the ones that come with Gaia for testing purposes? The visualization and the carve are handled in render textures on the GPU, and anything that affects that might influence the carve effect. 
Is it possible for you to upgrade to the latest Unity LTS version 2022.3.16 ? 
If the above does not bring any new insights, is it possible that you can send us the project so we can have a look? We could send you a link for file upload via DM.

Link to comment
Share on other sites

Hey, might be on to something...

We just tried in a test project which already contained Gaia Pro 2021 (v3.4.1-c5) and get the same broken result.

In a fresh project with Gaia Pro 2023 it works fine.

In our main project, although we are using Gaia pro 2023 (4.0.4-c5) we previously had version v3.4.1-c5 installed and migrated the project according to the guide on the canopy forum.

Maybe its a file/setting leftover from the previous release causing the issue?

Cheers

Link to comment
Share on other sites

11 hours ago, Ernbot said:

Hey, might be on to something...

We just tried in a test project which already contained Gaia Pro 2021 (v3.4.1-c5) and get the same broken result.

In a fresh project with Gaia Pro 2023 it works fine.

In our main project, although we are using Gaia pro 2023 (4.0.4-c5) we previously had version v3.4.1-c5 installed and migrated the project according to the guide on the canopy forum.

Maybe its a file/setting leftover from the previous release causing the issue?

Cheers

Interesting, I did make a test install of the older Gaia Pro 2021 in Unity 2022.3.4 HDRP to check, but it still seems to work for me regardless, so it must be something happening after the fact that the older Gaia version is / was in the project. 

image.png

I could not think of any leftover files that might cause this either, Gaia 2021 might change the project config a bit, but nothing that breaks the road carving comes to my mind. Could you please answer my other questions from the post before, there might be information in there that gives some more insights:
 

  •  what happens if you reduce the shoulder width to 0 and deactivate noise altogether?
  • What is the unity target platform (WebGL? Mobile?, etc.) of the project? 
  • Do you use a custom HDRP render pipeline asset? If yes, could you swap in a default one, or the ones that come with Gaia for testing purposes?
  • Is it possible for you to upgrade to the latest Unity LTS version 2022.3.16 ?  (Disregard that if you have another unity version that also shows the issue)
  • If the above does not bring any new insights, is it possible that you can send us the project so we can have a look?
Link to comment
Share on other sites

Hi yes sorry i forgot to answer those

1) Just the same issue

image.thumb.png.561309953033c81dfd6f1b71a2d16969.png

2) Currently just windows desktop

3) No nothing custom have experimented with unity default and gaia default and no difference

image.thumb.png.4021985d741a88a86dc5e1d75c0e33e3.png

4) When attempting to upgrade the previously affected test project to Unity 22.3.17 I'm now stuck on this error:

Assets\Procedural Worlds\Gaia\Scripts\Utils\GaiaHDRPRuntimeUtils.cs(270,94): error CS1061: 'PhysicallyBasedSky' does not contain a definition for 'numberOfBounces' and no accessible extension method 'numberOfBounces' accepting a first argument of type 'PhysicallyBasedSky' could be found (are you missing a using directive or an assembly reference?)

---

One possible anomaly is in the project (and the test project) we have some PS5 plugins installed, one is for input and one for HDRP?

cheers  

 

Link to comment
Share on other sites

Hi @Ernbot, regarding this issue:
 

Quote

 

4) When attempting to upgrade the previously affected test project to Unity 22.3.17 I'm now stuck on this error:

Assets\Procedural Worlds\Gaia\Scripts\Utils\GaiaHDRPRuntimeUtils.cs(270,94): error CS1061: 'PhysicallyBasedSky' does not contain a definition for 'numberOfBounces' and no accessible extension method 'numberOfBounces' accepting a first argument of type 'PhysicallyBasedSky' could be found (are you missing a using directive or an assembly reference?)

 

Please see this thread here:

https://canopy.procedural-worlds.com/forums/topic/10995-exception-after-installing-gaia-pro-2023-405/#comment-19174

This is a bug in unity where this "numberOfBounces" field suddenly disappeared from one version to the other. I  wrongly assumed this was fixed, the thread I linked has a patch to work around this until there is a fix from unity.

Quote

we have some PS5 plugins installed, one is for input and one for HDRP?

The HDRP one might be a hot trail - the preview is calculated using compute and regular rendering shaders - if there is anything in that HDRP plugin that influences how render textures are being processed, this could cause the problem then. I assume this is the com.unity.render-pipelines.ps5 package? This does not seem to be publicly available, can you try to uninstall it or test in a project that does not show the issue yet what happens if you install it there?

A colleague also has pointed out that the GPU / platform would need to support compute shaders - but I assume this is the case; the GPU would need to be quite old for this to be an issue.

Link to comment
Share on other sites

  • Solution

Hey,

We did some more testing and found the problem to be caused by using Vulkan API rendering in the player settings. Switching back to D3D solved the issue and seems reproducible in other projects. We are still using 2022.3.4 and have not tested other  editor versions.

Appreciate all the support, hope this can help someone else in future 

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
  • 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...