Game Development Community

Is there a limit on terrain materials

by BigDaz · in Torque 3D Professional · 01/22/2012 (4:24 am) · 3 replies

Is there a limit on terrain materials? I can add 3 to my terrain OK, but when I add a forth some of the terrain drops to low res and looks terrible.

I've just added a 4th material on the left hand side -
i41.tinypic.com/v81qn8.jpg

#1
01/22/2012 (4:44 am)
Nevermind, the 4th material didn't have a detail texture.
Adding one seems to have fixed it.
#2
01/22/2012 (7:39 am)
Was gonna say - I've used as many as 18 terrain textures just playing around, but 4? There used to be a bug where when you painted the terrain all cells would stop rendering the detail textures in the editor - they would show up if you dropped out and re-entered the editor though. Glad they got that fixed - was really annoying.
#3
01/22/2012 (10:19 am)
if you start going too high, you get a really bad hit on the mission load time that starts to get noticeable at around 40+ terrain materials, on a mission with just a terrain in, although that may just be computer spec based where its trying to ram the lot through the gpu to render, then again I was mostly just doing that to see 'whats possible' a couple of revisions back lol

btw you can reduce the diffuse maps pixelation at distance by making the base texture for that terrain a higher resolution, default torque lets you go upto 2048x2048 and its listed under the terrain's properties in the world editor. although you can go upto any amount you want by editing 1 line of the source http://www.garagegames.com/community/resources/view/20852 just bear in mind what your target hardware is and what image resolution sizes the graphics card can handle, and the filesize's you start hitting at 4096 upwards.