Jump to content

Is it possible to export Gaia and GeNa assets/roads to other scenes?


Xagu Studios
Go to solution Solved by Clyde,

Recommended Posts

Hi

We have just purchased both Gaia and GeNa. We are still trying to understand how do they work and learning them but we are not sure on how we can export a terrain with it's road mesh to use it on other scenes. We can make a prefab with the terrain itself but we are not able to export the road on it, it's an empty object. We see that when building the road the mesh filter remaihns empty so we suppose that the mesh geometry is generated in runtime by GeNa. Now, we want to save that spline as a mesh so we can combine several terrains on another scene but we can't guess how to achieve this.

Is there any way so we can export this road?

Thanks in advance.

Link to comment
Share on other sites

@Xagu Studios, you can bake a road so that it becomes a mesh that is parented to the terrain that it belongs to (use the split mesh at terrain option).
You could also, then, use the Unity FBX tools to create a prefab out of the baked road meshes (found under the terrain(s)), if you wish/need to.

  • Like 1
Link to comment
Share on other sites

Hello.


First of all thank you very much for your answer. Yes, we are following, or at least we think so, the steps you tell us but when we bake the road, even though the road gameobject parents to the terrain, the mesh filter remains empty (it seems that it is still generated only in that scene). When we make a prefab of it and generate it again from that prefab in the same or another scene the mesh filter remains empty and the object is not rendered.
It could be that we are skipping some necessary step before baking the road but we haven't managed to export the mesh of the object.

Thanks in advance

 

Example.PNG

Link to comment
Share on other sites

  • Solution

@Xagu Studios, what objects are involved in the prefab that you are creating? That is, what is the "root" object from which you are creating the prefab?

The mesh does exist, after baking, and is not regenerated.  The MeshFilter shows an unnamed mesh, instead of "none".  The reason for it being unnamed is that it is not saved as an asset, such as an FBX, but instead is saved within the scene. 

If you want, you can save the mesh, after baking, as an FBX by using the Unity FBX Exporter, which can be installed with the Unity Package Manager.
After installing the FBX Exporter, you can convert the baked road mesh(es) into a prefab:
image.png.d7f665a96ac0393623c4215237e1ee00.png

The only problem that I found is that while the mesh is saved as an FBX file during the conversion, the material appears to be missing in the prefab. You will have to reassign the material to the Mesh Renderer. Then, you should be able to export your package for use in another scene or project.

 

  • Like 2
Link to comment
Share on other sites

Hi.

Thanks a lot for your answer. We have just migrated from Unity 2019 and did not even known about the existence of tha fbx exporter, we made the prefabs from the old method. Now it works for our purposes. We have to learn how to correctly use your tools,hope we don´t have many doubts in the process.

Thank you very much and have a nice day.

 

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