Jump to content

GeNa spawner with Terrain Flattener spawns buildings half underground


Go to solution Solved by mroshaw,

Recommended Posts

Posted

Hi!

I've been following the GeNa Decorator tutorial video and trying to apply the Terrain Decorator alongside a number of 3D Forge assets that I've bought from the Asset Store.

I follow the tutorial to the letter, but when I spawn my building into the terrain, it's spawned too low down, submerged into the terrain. So things like surrounding fences, carts, barrels etc are all spawned beneath the terrain:

image.thumb.png.3969044da1c5d4392b32f9f3ae6964dc.png

My prefab hierarchy is this:

image.png.8408a5b2e9c129fe14710da0913cb961.png

I have a Prefab Unpacker on the top level GameObject, and a Terrain Decorator on the Flattener GameObject.

With the Flattener and Towerhouse3 GameObjects at transform position (0, 0, 0) and scale (1, 1, 1).

If I drag the original prefab (TowerHouse03) onto a flat terrain, it's correctly aligned with the props and house nicely aligned to the terrain surface.

Any idea what I'm doing wrong?

Posted
On 2/22/2022 at 12:14 PM, mroshaw said:

Hi!

I've been following the GeNa Decorator tutorial video and trying to apply the Terrain Decorator alongside a number of 3D Forge assets that I've bought from the Asset Store.

I follow the tutorial to the letter, but when I spawn my building into the terrain, it's spawned too low down, submerged into the terrain. So things like surrounding fences, carts, barrels etc are all spawned beneath the terrain:

image.thumb.png.3969044da1c5d4392b32f9f3ae6964dc.png

My prefab hierarchy is this:

image.png.8408a5b2e9c129fe14710da0913cb961.png

I have a Prefab Unpacker on the top level GameObject, and a Terrain Decorator on the Flattener GameObject.

With the Flattener and Towerhouse3 GameObjects at transform position (0, 0, 0) and scale (1, 1, 1).

If I drag the original prefab (TowerHouse03) onto a flat terrain, it's correctly aligned with the props and house nicely aligned to the terrain surface.

Any idea what I'm doing wrong?

The prefab Unpacker needs to be attached to the TowerHouse03 Prefab if you have decorators on it. 
Otherwise it will not work properly. 

If you can please send me a screenshot of the spawner, if you need further support. 

  • Solution
Posted

The unpacker is on the parent GO, just like in the video tutorial.

I resolved this by bumping the height up in the prefab. I noticed in the 3D forge prefab assets, that the scenery was placed at (-1), so increasing the height of the whole prefab resolved the issue.

Thanks again!

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