FS2004 Tweak on winter texture

#1
Hello,
I would apply a winter texture on my model and another one for the rest of seasons. This is my tweaked code:

Code:
    TEXTURE_LIST_BEGIN
    TEXTURE_DEF TEXTURE_AIRCRAFT    , <255,255,255,255>, 19.423256, "RUNWAY_D.BMP"		; 0
    TEXTURE_DEF TEXTURE_AIRCRAFT    , <255,255,255,255>, 4.740478, "RUNWAY_EDGE.BMP"	; 1
    TEXTURE_DEF TEXTURE_AIRCRAFT    , <255,255,255,255>, 4.740478, "RUNWAY_EDGEW.BMP"	; 2
    TEXTURE_LIST_END
and
Code:
;WINTER
IFIN1 tex_01, 038Ah, 1, 76
    MATERIAL 0,0 ; <255,255,255,255> RUNWAY_D.BMP;;;
    MATERIAL 0,2 ; <255,255,255,255> RUNWAY_EDGEW.BMP;;;
JUMP tex_continue

;ALL OTHER SEASON
tex_01 label word
    MATERIAL 0,0 ; <255,255,255,255> RUNWAY_D.BMP;;;
    MATERIAL 0,1 ; <255,255,255,255> RUNWAY_EDGE.BMP;;;
tex_continue label word	
BGL_END
It's succesfully compiled but the texture switch does not occur. I did something wrong?
 

arno

Administrator
Staff member
FSDevConf team
Resource contributor
#2
Hi,

I assume you also have your geometry code in between? Having two MATERIAL commands behind each other like this means that one material is not used at all.

In principle your code looks fine.
 
#3
Yes Arno, I've omitted the geometry code to reduce the length of the post. By the way I found what's wrong... it was up to the winter texture format which were totally transparent ahaha!
thank you for the support!
 
Top