Game Development Community

A couple of Atlas problems

by addiktive · in Torque Game Engine Advanced · 12/21/2006 (5:28 am) · 0 replies

There are two things I've noticed with atlas instances.

The first is that you can define a detail map, but it doesn't show. This is a bit of a problem. I'm avoiding too large a texture size, since the atlas conversion bloats the texture. Doing a fairly good texture produces a 130 meg atlas file. Fine, but on our map (broken into tiles), this would end up with landscape of 2gig. Doing really nice textures I calculated at 29gig!

The other is that on occasions, I get a blue or white square overlay on the mid-distant landscape, as you approach, it fades aways. It's not consistant though on it's location, size or colour. Any ideas?

I've posted below the code I'm using for the atlas generating. This produces a final file of 55meg (which still seems very large).

atlasOldGenerateChunkFileFromRaw16("legend/data/terrains/Gurth1.raw", 2048, 4, 0.0138, "legend/data/terrains/Gurth1.chu", 1, 4);
importOldAtlasCHU("legend/data/terrains/Gurth1.chu", "legend/data/terrains/Gurth1_geometry.atlas");
atlasGenerateTextureTOCFromLargeJPEG("legend/data/terrains/Gurth1.jpg", 4, "legend/data/terrains/Gurth1_texture.atlas");
atlasGenerateUniqueTerrain("legend/data/terrains/Gurth1.atlas", "legend/data/terrains/Gurth1_geometry.atlas", "legend/data/terrains/Gurth1_texture.atlas");