Extracting and modifying road tiles?
#1

I would very much like to modify the light sand-white country road tile which does not fit in with any terrain and is far too visible.

Has anyone extracted the .tif and modified it?

Are there any tricks or pitfalls?
Reply
#2

Hi mandrill7
I assume you mean sk_road.tga ( not .tif ).
The file is available in the Texture library I made. The links to download it are in my Map building tutorial. You can convert it back into a .tga with Gimp.
You will need to put a MAT file in the same folder with the .tga file ( both in the _Tex folder ). The name of the MAT & Texture files need to be the same ( for example My_road.mat & My_road.tga).

In the load.ini you need to write the name of the file & the folder it's in ( for example Road = m7/land/My_road )

The text inside the MAT file is like this -

[ClassInfo]
ClassName TMaterial

[General]
tfDoubleSide 0
tfShouldSort 0
tfDepthOffset 1

[Layer0]
TextureName My_road.tga
VisibleDistanceNear 0.0
VisibleDistanceFar 6500.0

// Wrap Texture Flags (0/1)
tfWrapX 1
tfWrapY 1

// Magnification / Minification (nearest on default)
tfMinLinear 1
tfMagLinear 1
tfMipMap 1

// BlendModes
tfBlend 1
tfBlendAdd 0
tfTestA 0
tfTestZ 1
tfNoWriteZ 1
tfModulate 1
tfNoTexture 0
tfNoCompress16Bit 1
// eof


Make sure the TextureName is correct.
Reply
#3

thanks as always, KP.

I have your entire texture library. Can I convert any tile to .tga in a graphic arts program? That would save me a bunch ot trouble because I also want to mess around with some of the ground textures.
Reply
#4

All the files can be converted to .tga with Gimp. I don't know if you can use any graphic arts program for the job but IrfanView is quite good although it doesn't seem to be able to convert transparent areas.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)