Put a .atlas in the game
by Lux Obscura · in Torque Game Engine Advanced · 04/12/2008 (6:15 pm) · 3 replies
Hello,
I'm using TGEA 1.7 , L3DT professional 2.5c and his atlas plugin (http://www.bundysoft.com/wiki/doku.php?id=plugins:fileio:l3dt_atlas).
I make a map in L3DT, with a size of 1024x1024.
After some loadings, the map appear, I click on File>Export>to Torque Atlas, call it CapitalMontagne it and save it in my game's data folder.
I go to my map file, called testmap.mis and add this
new AtlasInstance2(Montagne) {
position = "0 0 66.8";
rotation = "1 0 0 0";
scale = "1 1 1";
atlasFile = "~/data/CapitalMontagne.atlas";
};
I lanch the game, and after have write "LOADING DATABLOCKS", the game close.
If I delete what I've had to testmap.mis, there's no problem (but also no L3DT map lol).
What must I do?
I'm using TGEA 1.7 , L3DT professional 2.5c and his atlas plugin (http://www.bundysoft.com/wiki/doku.php?id=plugins:fileio:l3dt_atlas).
I make a map in L3DT, with a size of 1024x1024.
After some loadings, the map appear, I click on File>Export>to Torque Atlas, call it CapitalMontagne it and save it in my game's data folder.
I go to my map file, called testmap.mis and add this
new AtlasInstance2(Montagne) {
position = "0 0 66.8";
rotation = "1 0 0 0";
scale = "1 1 1";
atlasFile = "~/data/CapitalMontagne.atlas";
};
I lanch the game, and after have write "LOADING DATABLOCKS", the game close.
If I delete what I've had to testmap.mis, there's no problem (but also no L3DT map lol).
What must I do?
About the author
#2
I got mine to work like this:
new AtlasInstance(NewTerrain) {
canSaveDynamicFields = "1";
Enabled = "1";
position = "-151.417 7.48933 80";
rotation = "1 0 0 0";
scale = "1 1 1";
detailTex = "scriptsAndAssets/data/terrains/details/detail1";
atlasFile = "scriptsAndAssets/data/terrains/TorqueSchoolTest/t1.atlas";
lightmapDimension = "256";
};
It's probably not all correct but should get you going.
04/13/2008 (10:53 am)
Oh also don't use ~ I got mine to work like this:
new AtlasInstance(NewTerrain) {
canSaveDynamicFields = "1";
Enabled = "1";
position = "-151.417 7.48933 80";
rotation = "1 0 0 0";
scale = "1 1 1";
detailTex = "scriptsAndAssets/data/terrains/details/detail1";
atlasFile = "scriptsAndAssets/data/terrains/TorqueSchoolTest/t1.atlas";
lightmapDimension = "256";
};
It's probably not all correct but should get you going.
#3
"detailTex = "scriptsAndAssets/data/terrains/details/detail1";"
04/13/2008 (3:00 pm)
Well, in fact, I don't have a file for:"detailTex = "scriptsAndAssets/data/terrains/details/detail1";"
Torque 3D Owner mb
new AtlasInstance(Montagne)