Welcome to BWorld the game
Terrains in Torque using L3DT
Last Updated (Tuesday, 29 April 2008 07:09) Written by Antonio Serrano Friday, 18 April 2008 13:07
We're going to talk about how to generate a terrain quickly for Torque Game Engine Advanced 1.7.0
TGEA 1.7.0 includes now a new system of big terrains called it "MegaTerrain". MegaTerrain allows us to include several individual terrains inside the torque missions.
But we're going to see how to export a terrain for Atlas 2 using Large 3D Terrain of bundysoft. This tool has two releases and the one we're using It can be buyed in GarageGames and costs about 35$ including the Atlas plugin exporter.
This tools provides a very interesting wizard that allows us to generate a terrain in a few minutes. Follow this tutorial and create a 1024x1024 pixels terrain as you can see in the images.


Once you have finished the terrain save the proyect and use File-->Export-->to torque Atlas(garagegames plugin). This plugin has some bugs generating big terrains.
Now It's time to put it in Torque in our mission file with this source code:
new AtlasInstance(NewTerrain) {
canSaveDynamicFields = "1";
Enabled = "1";
position = "0 0 0";
rotation = "1 0 0 0";
scale = "1 1 1";
atlasFile = "scriptsAndAssets/data/export/myterrain.atlas";
lightmapDimension = "256";
};
Trip: If you're not able to see the terrain, select it in "World Editor Inspector" and do a "drop selection".



