Jump to content

Gena Details Spawner is completely broken


SwenSVK
 Share

Recommended Posts

Situation:

I set the spawner to spawn 3 details (rocks and grass) in number of instances between 20 to 30 in radius of 20. In single spawn with 1s interval.
It doesnt reflect any of this - it spawns in like double the radius and it spawns around 1000 of details objects.

On top of this - it is not even spawning what it should. I set it to spawn 2 different rocks and 1 bush. It spawns only 1 type of rock and grass that I did not set to spawn. And one more bonus action - after the spawn all spawn prefabs are set to the grass automatically without me setting anything. But only in the spawner setting. The spawner is actually continuning to spawn that 1 rock and that 1 unwanted grass.

Using unity 2021.3lts, HDRP and GeNa PRO up to date.

I am also using GPU Instancer which imports the prefabs to Terrain Trees and Terrain Details. I believe this can cause the issue.

PS: Using Trees as prefabs in the spawner works fine (at least it seems to). But it doesnt register the trees from the terrains. It only catch the trees you have already spawn at least at once - and that must be on one specific terrain which Gena picks. I dont know how it picks the terrain. From my 9 terrain it takes 1-2 terrain, so basically one in the middle as the one it register the trees. Weird, annoying, but workable. 
Btw. the detail register works in the same way - it picks random terrain you need to spawn details first to even being able to see it in GeNa Spawner.

I believe for the Gena Details spawner there is some erro going on. When I shift click to preview, this red circle appears and stay there.
Accompanied with this error:
Detail index out of bounds in DetailDatabase.SetLayers
UnityEngine.TerrainData:SetDetailLayer (int,int,int,int[,])
GeNa.Core.GeNaMultiTerrainOperation:AddForeignTerrainDetails (int,UnityEngine.RenderTexture,single)
GeNa.Core.TerrainEntity:Perform ()
GeNa.Core.GeNaTerrainDecorator/<OnSelfSpawned>d__10:MoveNext () (at Assets/Tools/Procedural Worlds/GeNa/Scripts/Runtime/Decorators/GeNaTerrainDecorator.cs:51)
GeNa.Core.GeNaSpawnerInternal/GLJPAFFHCKI:MoveNext ()
GeNa.Core.GeNaSpawnerInternal/AKCIBFDGDCM:MoveNext ()
GeNa.Core.GeNaSpawnerInternal/GKBJJEFKLFM:MoveNext ()
GeNa.Core.GeNaManager/APJFKHAOELC:MoveNext ()
GeNa.Core.EditorCoroutine/YieldProcessor:MoveNext (System.Collections.IEnumerator) (at Assets/Tools/Procedural Worlds/GeNa/Scripts/Editor/EditorCoroutines/EditorCoroutine.cs:60)
GeNa.Core.EditorCoroutine:ProcessIEnumeratorRecursive (System.Collections.IEnumerator) (at Assets/Tools/Procedural Worlds/GeNa/Scripts/Editor/EditorCoroutines/EditorCoroutine.cs:106)
GeNa.Core.EditorCoroutine:MoveNext () (at Assets/Tools/Procedural Worlds/GeNa/Scripts/Editor/EditorCoroutines/EditorCoroutine.cs:89)
UnityEditor.EditorApplication:Internal_CallUpdateFunctions ()

 

Can you have a look at it?

Thx.

Ivan

Link to comment
Share on other sites

The RED CIRCLE in Detail Spawner mentioned in first post - I could upload it despite not reaching the limit of 2.9MB - it sasy i can still udd to the video 484Kb, the image is 370kb and it says it is over the limit ...

2022-05-06 10_38_39-Pagan Grounds_v1 - PolanaSmallMap - Windows, Mac, Linux - Unity 2021.3.0f1 Perso-min.png

Link to comment
Share on other sites

  • 3 weeks later...

Hey @SwenSVK,

This is something we're very aware of with GeNa. But rest assured, there is actually a significant update to GeNa on the way that fixes the design of this. What's happening here is there is actually a legacy system conflicting with the way the new one works. The new system is supposed to act as a 'brush' similar to Unity's way of painting Terrains but with added 'smart' functionality whereby you can use the Spawn Criteria to paint details, textures and trees to the terrain. The old system used to work similarly by painting various small 1x1 sized 'Paint' operations to the Terrain for all terrain details, textures and trees. But this didn't gel well with the new Undo system as you can see there would be 1000s of Undo stack operations in a single spawn. 

The good news is the new system I've been working on allows us to use both systems without the performance hit. While you're waiting for the new update, there's a workaround but fair warning; it comes at a huge performance cost per spawn:
1. Create a Grass or Detail Spawner the way you normally would.

2. Set the Area of Effect to 1 Unit.

image.png

3. Setup the Spawner Ranges the way you want (eg, 50-100 Spawn Instances, etc).
image.png

4. Perform a spawn.

I will keep you posted on the new update. Thanks for your patience!

Link to comment
Share on other sites

40 minutes ago, Manny said:

Hey @SwenSVK,

This is something we're very aware of with GeNa. But rest assured, there is actually a significant update to GeNa on the way that fixes the design of this. What's happening here is there is actually a legacy system conflicting with the way the new one works. The new system is supposed to act as a 'brush' similar to Unity's way of painting Terrains but with added 'smart' functionality whereby you can use the Spawn Criteria to paint details, textures and trees to the terrain. The old system used to work similarly by painting various small 1x1 sized 'Paint' operations to the Terrain for all terrain details, textures and trees. But this didn't gel well with the new Undo system as you can see there would be 1000s of Undo stack operations in a single spawn. 

The good news is the new system I've been working on allows us to use both systems without the performance hit. While you're waiting for the new update, there's a workaround but fair warning; it comes at a huge performance cost per spawn:
1. Create a Grass or Detail Spawner the way you normally would.

2. Set the Area of Effect to 1 Unit.

image.png

3. Setup the Spawner Ranges the way you want (eg, 50-100 Spawn Instances, etc).
image.png

4. Perform a spawn.

I will keep you posted on the new update. Thanks for your patience!

Hey Manny,

thank you for your answer here. Good to know it is known problem that is being addressed. Just do you have any ETA when it might be ready to deploy? Weeks or months?

Thank you

Ivan

Link to comment
Share on other sites

  • 4 months later...

@Adam / @Manny hello guys. It has been about 5 months since we talked about this last time and the issue is still in GeNa. None of the updates solved that.

Is that still something you will eventually solve?

Thank you for the update

Ivan

Link to comment
Share on other sites

  • 1 month later...
  • 3 weeks later...
On 11/30/2022 at 8:13 PM, Manny said:

Hey @SwenSVK,

Could you please confirm if you are still experiencing the same issue with the latest version of GeNa Pro?

I think this is happening to me. I added details to my terrain for both a meadow and a forest. I have a spawner for painting meadow details and it works fine as long as I keep the spawner active in the Inspector. If I click away and then resume the spawner in the Inspector the 3 detail 'grass' selectors change to the first one even though the resource name retains the original selection.

 

After creating a forest spawner (and even making it a subspawner) the selectors for 'grass' detail keep resetting to the first grass detail in the selection for meadow. It is like the index isn't being updated and as soon as I click away from the spawner it changes back to the first (default) detail selection.

 

This is a deal breaker because it is what I hoped to use Gena for and was very excited to get it going.

 

Gena Pro 3.4.0

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