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

Editing ground poly for seasonal and day/night variations problem...

Messages
66
Country
us-massachusetts
Howdy experts!

I've hit a snag. I have a textured ground poly in gmax. I want both seasonal and night textures. I'm just trying to get the day/night winter texture to show up for now, and I'm using the day of year variable to set winter to days 0-65.

The original asm texture list code was this:
Code:
texture_riff_start_BunkerHillMemorialTurf	label	word
    db  'T','E','X','T'   
    dd  texture_riff_end_BunkerHillMemorialTurf - $ - 4  
    TEXTURE_LIST_BEGIN
    TEXTURE_DEF TEXTURE_BUILDING    , <255,255,255,255>, 97.002412, "BHMGROUND.BMP"	; 0
    TEXTURE_DEF TEXTURE2_NIGHT      , <255,255,255,255>, 97.002412, "BHMGROUND_LM.BMP"	; 1
    TEXTURE_LIST_END
    BGL_RETURN
texture_riff_end_BunkerHillMemorialTurf label word

Following along with Arno's seasonal textures tutorial post, I've added in my winter day and night textures:
Code:
texture_riff_start_BunkerHillMemorialTurf	label	word
    db  'T','E','X','T'   
    dd  texture_riff_end_BunkerHillMemorialTurf - $ - 4  
    TEXTURE_LIST_BEGIN
    TEXTURE_DEF TEXTURE_BUILDING    , <255,255,255,255>, 97.002412, "BHMGROUND.BMP"		; 0
    TEXTURE_DEF TEXTURE2_NIGHT      , <255,255,255,255>, 97.002412, "BHMGROUND_LM.BMP" 		; 1
    TEXTURE_DEF TEXTURE_BUILDING    , <255,255,255,255>, 97.002412, "BHMGROUND_WI.BMP"		; 2
    TEXTURE_DEF TEXTURE2_NIGHT      , <255,255,255,255>, 97.002412, "BHMGROUND_WI_LM.BMP"	; 3
    TEXTURE_LIST_END
    BGL_RETURN
texture_riff_end_BunkerHillMemorialTurf label word

The problem starts here - having a night map, the original texture assignment reads as follows, with the light map entered as the second parameter of the texture list:
Code:
MATERIAL 0,0 ; <255,255,255,255> BHMGROUND.BMP;BHMGROUND_LM.BMP;;

Here's what I've edited to, but only the summer day/night textures are showing, winter changes to a plain white surface, indicating that the IF is working, just not the texture definition:

Code:
    IFIN1 tex_01, 038Ah, 0, 65
    MATERIAL 2,0 ; <255,255,255,255> BHMGROUND_WI.BMP;BHMGROUND_WI_LM.BMP;;
    JUMP tex_continue
    tex_01 label word
    MATERIAL 0,0 ; <255,255,255,255> BHMGROUND.BMP;BHMGROUND_LM.BMP;;
    tex_continue label word

Can someone tell where I've gone wrong? Thanks in advance for your time!

Best,
sg
 
Hi,

Try Material 0,2 instead of Material 0,0. You have now increased the material count, not the texture count.
 
Thanks for that correction, Arno. However in making the change I now seem to only get the summer texture regardless of date...I'll dig some more. I think I've missed something obvious...
 
Hi,

I looked through your code again and all the jumps etc look correct. Did you check the obvious things like the different textures being in your texture folder? :)
 
Working!

So the first thing I did was open the mdl file after compiling in the new MDLTweaker2 alpha - only two textures listed. Not sure why. The code looked fine, as you stated. So I deleted everything.

Recompiled from GMax, fresh edit of the ASM with the noted typo corrected, and all seems to be working great! DAY/NIGHT in summer and winter.

Thanks a ton, Arno!
 
Back
Top