• 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.

2002 Ground alpha and LM

Horst18519

Moderator
Resource contributor
Messages
2,370
Country
germany
Once more I came across an issue I never had to face before, this time dependency of alpha channel and night map using tweaked 2002 ground polys.

I use a ground polygon DXT3 with alpha channel. I also use a LM texture with its own alpha channel, for technical reasons this is a different alpha than the diffuse alpha.
For some reason the night map uses the diffuse alpha though, is this a known limitation?
 

arno

Administrator
Staff member
FSDevConf team
Resource contributor
Messages
32,883
Country
netherlands
Hi,

Are you talking about FSX here? In that case it is indeed a known limitation.
 

Horst18519

Moderator
Resource contributor
Messages
2,370
Country
germany
Thanks for the reply. Does that mean that in FS9 this method would work?

There's no way tweaking the ASM file so that either different alphas can be used or maybe the diffuse texture does not show, just the LM at dusk-dawn?
 

arno

Administrator
Staff member
FSDevConf team
Resource contributor
Messages
32,883
Country
netherlands
Hi,

If I remember correctly it should indeed work in FS2004. And no, there is no tweaking to influence this behaviour.
 

Horst18519

Moderator
Resource contributor
Messages
2,370
Country
germany
Ok, thanks. I'll try to tweak the file so that different texture sets are used depending on the "time of day" var.
 

Horst18519

Moderator
Resource contributor
Messages
2,370
Country
germany
Hmm, it should be possible to tweak the file for using different texture sets depending on the time of day var, shouldn't it?

What's wrong with my tweak?

TEXTURE_LIST_BEGIN

IFIN1 tex_night, 028ch, 1, 1 ; time of day is not Day
TEXTURE_DEF TEXTURE_AIRCRAFT , <255,255,255,255>, 2282.815174, "DTTJ_GROUND_SHADOWS.BMP" ; 0
TEXTURE_DEF TEXTURE2_NIGHT , <255,255,255,255>, 2282.815174, "DTTJ_GROUND_SHADOWS_LM.BMP" ; 1
JUMP tex_end

tex_night label word
TEXTURE_DEF TEXTURE_AIRCRAFT , <255,255,255,255>, 2282.815174, "DTTJ_GROUND_LIGHTS.BMP" ; 0
TEXTURE_DEF TEXTURE2_NIGHT , <255,255,255,255>, 2282.815174, "DTTJ_GROUND_LIGHTS_LM.BMP" ; 1
tex_end label word

TEXTURE_LIST_END
 

arno

Administrator
Staff member
FSDevConf team
Resource contributor
Messages
32,883
Country
netherlands
Hi Thorsten,

You can't put the condition in the texture list. The texture list should just contain all textures used, you put the condition around the command that selects the texture (SET_MATERIAL).
 

Horst18519

Moderator
Resource contributor
Messages
2,370
Country
germany
I've seen that in the Wiki, but a friend told me he uses a code like that for seasonal tweaking. I guess I'll just try the other way.
 
Top