• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

FS2004 Tweak on winter texture

Messages
374
Country
italy
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
Messages
31,843
Country
netherlands
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.
 
Messages
374
Country
italy
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