PDA

View Full Version : Importing .im


feeedyourhead
August 4th, 2008, 11:32 PM
Can somebody give me the quick answer on how to import a .im file into Trainz? It seems I'm asking a stupid question, and normally I'd figure it out myself, but I've scoured the helps and internets and can't come up with anything other than "then you import it into Trainz".

I'm mainly trying to import an overhead photo like from google maps, for instance, and I found a tutorial. I've successfully created a plane in Gmax and exported a .im, now I'm stuck. Any help would be great.

Also, while I'm at it, is there a way to change the direction of the switches in Surveyor? I want them to default to a certain direction.

Thanks.

johnwhelan
August 5th, 2008, 09:07 AM
Can somebody give me the quick answer on how to import a .im file into Trainz? It seems I'm asking a stupid question, and normally I'd figure it out myself, but I've scoured the helps and internets and can't come up with anything other than "then you import it into Trainz".

I'm mainly trying to import an overhead photo like from google maps, for instance, and I found a tutorial. I've successfully created a plane in Gmax and exported a .im, now I'm stuck. Any help would be great.

Also, while I'm at it, is there a way to change the direction of the switches in Surveyor? I want them to default to a certain direction.

Thanks.

Check the wikibook basically you use it in a folder with a config.txt file. Use the Blender tutorial as an example.

feeedyourhead
August 7th, 2008, 03:50 AM
Ok, so I created an object in Gmax and gave it a texture. I exported a .im file that came with a .texture.txt file associated with it. I loaded that as a mesh into a new asset in Content Creator Plus. The object (a cube) shows up, but not the texture (a bitmap), it's just white. I've tried different bitmap formats (jpg, bmp, tga), no luck.

I noticed that for other scenery items, the texture files are *.texture, and they're not ascii files, they seem to contain the image in the actual file. The .texture.txt that I exported was just an ascii file with the filepath of the bitmap (filename.tga).

Any ideas? Thanks!

teddytoot
August 7th, 2008, 05:28 AM
Probably an unnecessary question, but have you got the actual texture file in the Trainz folder. The texture.txt file is an ASCII file that points to the actual texture file. The .texture files you find in the built-in stuff is a file that combines the texture.txt file with the actual texture file.

feeedyourhead
August 7th, 2008, 05:47 AM
Yes, in the directory I've got...

config.txt
pl.tga (a 512x1024 targa image)
cube.gmw
cube.IM

When I tried to save the asset in CCP it gives me this:

The texture 'c:\...\trs2006\editing/edit 1q1q1q\pl.tga' failed to load.

I wonder why the slash after editing is a forward slash (I didn't type that in wrong). Of course the .texture.txt file saves the relative path, just pl.tga.

narrowgauge
August 7th, 2008, 05:54 AM
Check that your image is exactly 512x1024, even one pixel out will stop it loading.

Cheers

Narrowgauge

feeedyourhead
August 7th, 2008, 05:58 AM
Yup, 1024x512, 32 bits.

paulhobbs
August 7th, 2008, 07:43 AM
a compressed *.tga I bet. Trainz doesn't like those.

Paul

VinnyBarb
August 8th, 2008, 01:35 AM
Wrong post, sorry :p

Cheers

VinnyBarb

feeedyourhead
August 8th, 2008, 02:19 AM
That could be. Is there a way to save an image as uncompressed tga in gimp?

feeedyourhead
August 8th, 2008, 02:48 AM
Nevermind it gives you the option after you click save. Rock on Gimp.