Jump to content

Placing objects in different terrains/scenes causes their location to suddenly reset to…origin?


StroutFrout
Go to solution Solved by Peter,

Recommended Posts

Hi There!

When working in the “main” scene that pre-existed setting up Gaia 2023, I am able to place objects on that terrain and its associated scene without issue. I am able to manipulate and stamp other scenes and their associated terrains without issue.

However, if I try to place a model on _any_ other terrain, its location will shift immediately after deselection. Once I deselect the model, the model will suddenly shift its location to a corner of the terrain and specifically below the terrain. I’ve tried doing this is multiple terrains and different models but it will always shift to the corner of the specific terrain where the model was placed. As mentioned, there is a single “main” scene that I started with which does not exhibit this issue. Is there something unique I need to do when working with models in different Gaia created scenes/terrains?

 

Thanks in advance!

Link to comment
Share on other sites

  • Solution

Hi @StroutFrout,

please excuse the delayed response! The behavior you are describing has to do with floating point precision in larger scenes. Gaia tries to spawn things close to the world origin, which means that during a spawn terrains will be temporarily moved to the center of the scene. If you had placed a game object on the terrain, that would need to be moved as well in order for the spawn to be correct (if you e.g.had collision masks in the spawner setup that look for objects on the terrain)
In order to do so, Gaia will shift all top level objects in the terrain scenes around together with the terrains. To work around this issue, you should be able to place the objects as child object of the terrain, or create an object container object on the root level of the terrain scene (which will then snap to the terrain corner), then place your object in there.
This should allow you to place your objects on a fixed spot on the terrain and this position should "survive" the shifts Gaia makes e.g. when spawning.
 

Link to comment
Share on other sites

Thank you for the detailed response. The solution of adding a parent game object to the scene and placing objects within it seems to resolve the issue. Thank you for the help!

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