how to create terrain among different meshes?

Hi there

I’m creating a terrain in 3ds max and I created 16 meshes: a 4x4 terrain.

Each mesh is pretty big and right now it has no texture. My question is, is there a way to create 16 textures for the meshes so that they seem continous?

Any tutorials or any hints?

I was able to create a big material that overlaps the 16 meshes at once but then I can’t export it because the png would be huge. My guess is that there is a way to create 16 pngs (one per mesh) that are good quality: 1024x1024 and that look continous
I just can’t figure how.

I know I’m not answering your question, but I want to warn you that you won’t be able to make it look detail enough by using 1 texture per terrain. Just do the math: let’s say your 1 terrain mesh is (just) 100m length, your texture is 1024, then that means your one pixel will be 10cm on the ground. That’s a huge pixel on the ground :wink:

Terrains are usually built from detail texture layers by blending them them together. That’s exactly what Unity terrain does. And it has LODing, collision, tree and vegetation systems…

Why are you using meshes for terrain?

I’m doing it for the iphone and unity terrain doesn’t support iphone.

LOD doesn’t work fast enough on the c# I wrote at least but small terrain meshes are rendering fast.

I decided to give it a try by creating smaller meshes and joining them together but if someone has a LOD terrain code that runs fast on unity iphone I’m more than happy to hear :slight_smile:

any ideas on how to do the materials thing?

I’m not an artist, but IIRC you should be able to bake each model material into separate texture (I think it’s under “Render/Render to texture” in 3dsMax).

I would expect that too with ‘bake’. To get a nice 1024x1024 texture of the selected mesh but I get a full empty texture with only the rectangular selected mesh rendered.

I attach a sample texture generated. If someone knows how to render only the selected mesh full quality, it would help me a lot :slight_smile:

Your primary UV must be mapped in that rectangle. Just make a secondary UV and map it from 0 to 1, i.e. full area and then bake it using secondary UV. At least I would try something like that.
Or just bake very big and cut the desired area with photoshop or other image tool:)