Jump to content

Adding new terrain spawn - resource management for terrain textures


mroshaw
Go to solution Solved by Peter,

Recommended Posts

Hi! I am creating a new "Desert Biome", starting completely from scratch. I've downloaded some assets from the Unity Asset Store to help me:

Both come with terrain textures that I'd like to use. In the new spawn rule, I can either:

  1. Add Texture, Normal map and Mask map assets directly into the rule
  2. Drop a "Terrain Texture" into Drop Resource Type

I can't figure out how to use my asset store assets with either of these methods.

The textures that I've downloaded come as a ".terrainlayer" file, with associated "Albedo" and "Normal" texture files or just as ".terrainlayer" files.

Can you please help me understand what I need to do to add these textures into my new spawn rule?

Thank you!

mroshaw

  • Unity 2021.2.6f1
  • HDRP 12.1.2
  • Gaia Pro 2021 3.1.3 
Link to comment
Share on other sites

  • Solution

You would need to add the single texture files that you have into the appropiate slots in the resource settings.
Albedo / Diffuse (the "color" of the surface) goes into texture
normal texture goes in normal map
Mask texture goes in Mask map -> The mask map is a combined texture used by unity to store certain features like smoothness etc. in a single texture. It can be that the asset does not include this texture, but the texture spawning should work regardless.

You can see this process in the texture spawner tutorial here at around 8:15:

 

Link to comment
Share on other sites

Thanks Peter!

I've tried this, and get some odd areas of "black" in my biome. Here's the Spawer:

image.thumb.png.65f524dc62c38669dd76a9d6d366b630.png

And the Preview looks promising:

image.png.2ead75a406f7d1b60ba16bf0eef244e2.png

But when I spawn the texture:

image.png.387100fce3ba8a9f0527736d2c650edd.png

Any thoughts on what I'm missing?

Thank you!

Link to comment
Share on other sites

In addition to what MiTschMR said: It looks like this could be the water level maybe? It looks to me like this thing is just like a plane that sits on / intersects with the terrain, I'm not 100% sure that is regular terrain texturing since it does not seem to have any shading at all. Try to zoom in on that black and see if you can remove it by painting on the terrain manually with the terrain inspector or if you can go under it with the camera, my bet is it is the water or something else entirely.
 

Link to comment
Share on other sites

I fired up my project this morning to have another crack at this. Re-added the texture spawn rule with the Albedo and Normal files provided with the downloaded asset. Clicked Spawn World, worked a charm!

image.png.4f062c5d219be63266ee023f01cc3099.png

Absolutely no idea why, but at least it works!

Thanks again for your help folks, really appreciate it!

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