All-Aircraft-Simulations
Extracting and modifying road tiles? - Printable Version

+- All-Aircraft-Simulations (https://allaircraftsimulations.com)
+-- Forum: IL2 MAP MODS Download & Discussion (https://allaircraftsimulations.com/forumdisplay.php?fid=269)
+--- Forum: 4.09m (https://allaircraftsimulations.com/forumdisplay.php?fid=365)
+---- Forum: IL2 MAP MODS Discussion & WIP MAP 4.09m (https://allaircraftsimulations.com/forumdisplay.php?fid=335)
+---- Thread: Extracting and modifying road tiles? (/showthread.php?tid=71381)



Extracting and modifying road tiles? - mandrill7 - 23.08.2010

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?


Re: Extracting and modifying road tiles? - kevinp - 24.08.2010

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.


Re: Extracting and modifying road tiles? - mandrill7 - 25.08.2010

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.


Re: Extracting and modifying road tiles? - kevinp - 26.08.2010

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.