L3DT, TGEA and Atlas Files
by Sergio "Zagar" Zarraga · in Torque Game Engine Advanced · 11/17/2009 (8:29 am) · 4 replies
Hi!!!
We are making a videogame (obviously, because in torque it's impossible make a pizza XD ), and I have a problem when I want to open it in a Stronghold game example one mission with the .atlas terrain.
The game gives me 2 results, the player falls into infinite sky, or the game crashes.
Does anyone have an example of a mission file with .atlas terrain inside?
Thanks for your help!!!
We are making a videogame (obviously, because in torque it's impossible make a pizza XD ), and I have a problem when I want to open it in a Stronghold game example one mission with the .atlas terrain.
The game gives me 2 results, the player falls into infinite sky, or the game crashes.
Does anyone have an example of a mission file with .atlas terrain inside?
Thanks for your help!!!
#2
You can see it following this link:
http://darkhazard.com/tip/problem/circuito.txt
Thank you again.
11/23/2009 (10:19 am)
Thanks for your reply, I can't paste my code, the forum sais that is too big...You can see it following this link:
http://darkhazard.com/tip/problem/circuito.txt
Thank you again.
#3
It looks like the position of your spawn sphere is off the side of your terrain map. It should be OK if you change the spawn sphere position to something like this:
Best regards,
Aaron.
11/25/2009 (9:20 pm)
Hi Sergio,It looks like the position of your spawn sphere is off the side of your terrain map. It should be OK if you change the spawn sphere position to something like this:
position = "0 0 100";
Best regards,
Aaron.
#4
Later I try to post the log.
Thanks
12/01/2009 (6:12 am)
Thanks for your answer, with this code and your changes I have de same crash error, I don't understand why.Later I try to post the log.
Thanks
Torque 3D Owner Aaron Torpy
I apologise for my slow reply. My first guess when reading that the "player falls into infinite sky" is that the spawn point is either beneath the terrain or off to one side. Can you post the contents of your mission file here?
This mission file renders OK in the AtlasDemo project:
//--- OBJECT WRITE BEGIN --- new SimGroup(MissionGroup) { new ScriptObject(MissionInfo) { descLines = "2"; name = "Simple testbed"; desc0 = "For Shader Testing."; }; new MissionArea(MissionAreaObject) { Area = "-360 -648 720 1296"; flightCeiling = "300"; flightCeilingRange = "20"; locked = "true"; }; new AtlasInstance(NewTerrain) { position = "0, 0, 0"; rotation = "1 0 0 0"; scale = "1 1 1"; detailTex = "~/data/terrains/details/detail1"; atlasFile = "~/data/terrains/L3DT/Second_try.atlas"; }; new Sky(SkyObject) { position = "0 0 0"; rotation = "1 0 0 0"; scale = "1 1 1"; materialList = "~/data/skies/sky_skybox.dml"; cloudHeightPer[0] = "0.349971"; cloudHeightPer[1] = "0.3"; cloudHeightPer[2] = "0.199973"; cloudSpeed1 = "0.0005"; cloudSpeed2 = "0.001"; cloudSpeed3 = "0.0003"; visibleDistance = "10000"; fogDistance = "8000"; fogColor = "0.6 0.6 0.7 1"; fogStorm1 = "0"; fogStorm2 = "0"; fogStorm3 = "0"; fogVolume1 = "0 0 0"; fogVolume2 = "0 0 0"; fogVolume3 = "0 0 0"; windVelocity = "1 1 0"; SkySolidColor = "0.113 0.148 0.215 0"; useSkyTextures = "1"; renderBottomTexture = "1"; noRenderBans = "0"; renderBanOffsetHeight = "10"; skyGlow = "0"; skyGlowColor = "0 0 0 0"; locked = "true"; windEffectPrecipitation = "1"; }; new Sun() { direction = "0 0.954268 -0.298953"; color = "1 1 0.8 1"; ambient = "0.4 0.4 0.5 1"; CastsShadows = "1"; useBloom = "0"; useToneMapping = "0"; useDynamicRangeLighting = "0"; DRLHighDynamicRange = "0"; DRLTarget = "0.6"; DRLMax = "1"; DRLMin = "0.5"; DRLMultiplier = "0.9"; bloomCutOff = "0.8"; bloomAmount = "0.3"; bloomSeedAmount = "0.5"; position = "0 0 0"; rotation = "1 0 0 0"; scale = "1 1 1"; locked = "true"; }; new SimGroup(PlayerDropPoints) { new SpawnSphere() { position = "734.208 837.731 19.2223"; rotation = "0.03379 0.088947 0.995463 221.43"; scale = "0.940827 1.97505 1"; dataBlock = "SpawnSphereMarker"; Radius = "10"; sphereWeight = "1"; indoorWeight = "1"; outdoorWeight = "1"; lockCount = "0"; locked = "False"; homingCount = "0"; }; }; }; //--- OBJECT WRITE END ---Cheerio,
Aaron.