Jump to content

Gena Roads Shader Not Appearing


turbosympatique
Go to solution Solved by Isaac,

Recommended Posts

GeNa roads don't appear at runtime. Even when I generate the built-in Gaia players like Flying Camera everything else is as it should but all my GeNa roads are missing.

I created a world with multiple terrains and a sprawling road network. I baked the roads with the split mesh at terrain option but that didn't solve it. If I swap the GeNa road shader for any other the roads appear again which suggests an issue with the shader but when I try similar setups in different projects I have no problems seeing the road. I've tried everything I can think of and I've had no success. Any help is appreciated.

Link to comment
Share on other sites

18 hours ago, turbosympatique said:

Thanks for the reply.

I'm running Gaia Pro 3.1.1, GeNa Pro 3.3.10 and Unity 2020.3.14f.

Can you please try to upgrade to the latest GeNa Pro? 
The latest is 3.3.17

Link to comment
Share on other sites

Hi @turbosympatique,

When making the roads are there any parameters in the road profile that you play around with? Just wondering if a certain value may make it disappear. 

And just to clarify, do the roads appear in the editor but not in play mode? 

Here are a couple of questions that might us debug the issue:

Does the road materal look any different to the settings shown here?

image.png.65e149843d8da511bf637a827fb3c1ca.png

Does your main camera have any custom culling mask settings on it? And if so, is the road mesh set to a layer other than PW_Object_Large?

image.png.90f7b33d11f86c321dac655a0f0e84df.png

Link to comment
Share on other sites

I should probably have mentioned earlier that my project uses URP. Sorry, for the oversight.

The roads show up perfectly in the editor and disappear only in play mode. I can confirm that the baked road mesh game objects are being loaded in the scene along with their parented terrain but they are not visible.

It's definitely not a camera culling mask issue. Everything is enabled there and the road meshes are on the PW_object_large layer.

For the road settings, I'm really only adjusting the width of the road and the size of the intersections. 

spacer.png

Where it gets weird is I tried to compare my settings to the ones you posted in your screenshot but... I don't have those options? Am I looking in the wrong place? Mine looks like this:

spacer.png

Thanks for your help.

Link to comment
Share on other sites

Thanks for the information @turbosympatique!

I have been able to successfully reproduce this issue on my end.

Can you try enabling the Depth Texture in the Universal Pipeline Asset? (If you don't know which pipeline asset the project is using, you can navigate to it through Edit -> Project Settings -> Quality, or alternatively, Edit -> Project Settings -> Graphics)

image.png.f395e07da222032706465b6f779bbeae.png

Link to comment
Share on other sites

Thanks, Isaac. Unfortunately, this didn't resolve the issue.

Poking around, I noticed a number of errors in the roads shader import settings. Seems like a longshot but I'll try anything at this point...

spacer.png

Link to comment
Share on other sites

Thanks for update. 

Can you check your main game camera's depth texture settings?

image.png.e7af5e861affb6d5efdf6b3b78d1ef59.png

Try switching this setting to 'On' instead of 'Use Pipeline Settings'

image.png.6144d4a1a33a1fad177a58b0edf57294.png

What graphics API does your project use as it's main target? This can be found under Edit -> Project Settings -> Player -> Other Settings. It might have 'Auto Graphics API for Windows / Linus / Mac' checked.

Here is a version of the road shader without the advanced blending, which is where I assume the issue if stemming from. If the camera settings didn't affect the road appearing, try replacing the shader with this package.

GeNa_Road_URP_Fix.unitypackage

Link to comment
Share on other sites

Changing the depth texture on the camera to "ON" didn't work. I'd love to try the shader fix you linked but it tells me it's unavailable. Can you share it again?

Link to comment
Share on other sites

I created a new empty scene within the same project. I generated a quick new Gaia world using the world designer and plopped a short GeNa road on it. I created a runtime for the scene, hit play and the road appears as you would expect so it seems like the problem is specific to my large, multi-terrain scene with the sprawling road network. I just don't know what could be causing everything except the roads to show up. 

Link to comment
Share on other sites

Thanks for all your efforts on this. In the end I abandoned the GeNa_Road_LitBasic_URP material in favor of the simpler GeNa_URP_Road_Material. It doesn't look quite as good but it's close enough. As for why GeNa_Road_LitBasic_URP worked in other test scenes but not in the main one... this will remain a mystery!

Thanks again!

Link to comment
Share on other sites

Hello! I have same problem. Gaia Pro 3.2.2 GeNa Pro 3.3.17, Unity URP 2021.3.0f1 and i've tryed everything from this thread escept of attachments, those are unavailable.spacer.png

Link to comment
Share on other sites

Seems i've found the readon - it was Enviro, i've turned off all feachures in its Feature Controls tab, and the road become visible

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