Cockpit repaint tutorial?
#9

as requested ...

alpha channel + having glass layer for gauges .... hope you'll find it useful ( PM if additional questions ):

fly_zo Wrote:It's really no biggie .....

1 make additional tga only with glass areas ( can be used for adding pics and other stuff too )

[Image: alpha00.jpg]


- make sure you make proper alpha channel here :

a) select visible areas
b) under select menu : save selection .... as alpha

[Image: alpha01.jpg]

[Image: alpha02.jpg]

c) make sure you check box for new channel before saving as 32bit tga ( no RLE compress)

2 make new , or edit present .mat file , in this case : 26.mat ( notepad) by adding lines for second layer with appropriate properties for transparency and stuff ....

should look like this :

Code:
[ClassInfo]
  ClassName TMaterial
[General]
  tfDoubleSide 0
  tfShouldSort 0
  tfDropShadow 0
  tfGameTimer 1
[LightParams]
  Ambient 1.0
  Diffuse 1.0
  Specular 0.1
  SpecularPow 32
  Shine 0.0
[Layer0]
  TextureName 26.tga
  PaletteName
  Frame 0.0
  VisibleDistanceNear 0.0
  VisibleDistanceFar 10000.0
  TextureCoordScale 0.0 0.0 1.0 1.0
  ColorScale 1.0 1.0 1.0 1.0
  AlphaTestVal 0.5
  tfWrapX 1
  tfWrapY 1
  tfMinLinear 1
  tfMagLinear 1
  tfMipMap 0
  tfBlend 0
  tfBlendAdd 0
  tfTestA 1
  tfTestZ 1
  tfUpDateClear 0
  tfModulate 1
  tfNoTexture 0
  tfAnimatePalette 0
  tfAnimateSkippedFrames 0
  tfNoDegradation 1
[Layer1]
  TextureName 26_2.tga
  PaletteName
  Frame 0.0
  VisibleDistanceNear 0.0
  VisibleDistanceFar 10000.0
  TextureCoordScale 0.0 0.0 1.0 1.0
  ColorScale 1.0 1.0 1.0 0.2
  tfWrapX 1
  tfWrapY 1
  tfMinLinear 1
  tfMagLinear 1
  tfMipMap 0
  tfBlend 2
  tfBlendAdd 0
  tfTestA 0
  tfTestZ 1
  tfUpDateClear 0
  tfModulate 1
  tfNoTexture 0
  tfAnimatePalette 0
  tfAnimateSkippedFrames 0
  tfCompressMajorAlpha 1
  tfNoCompress16Bit 1
  tfNoWriteZ 1

note here that glass layer is listed as [Layer1] : 26_2.tga


result should look like this :

[Image: alpha03.jpg]

[Image: alpha04.jpg]


cheers
Z
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)