Question Day-Night Cycle

wrangly

New member
Joined
May 7, 2012
Messages
2
Reaction score
0
Points
1
I m new to orbiter addon development. I want to change the mesh of my addon during day and night (like the landing pads, city lights etc.). I cant find any info in the api reference...
 
I don't remember exactly how to do that ( i've done it in the past but it's far...) If you have a texture on the mesh ( and i think that you have one ) you must create a night version of the texture ( if your daylight texture is mytexture.dds, your nightlight texture will have for name mytexture_n.dds ), put it in the texture folder, register your day version and your night version, not sûre for the night version, in the cfg base.cfg ( config folder ).

Edit:

Dont remember if the daylight texture must be in the cfg of your base under MESH as ownmaterial or named explicitly: TEX mytexture ( i'm not sure that that word, explicitly, is like that in english ).
 
Last edited:
For a surface base, it seems like Orbiter automatically switches to [texture name]_n.dds (if it exists) during night time.
See the Textures folder for examples, like Monorail.dds and Monorail_n.dds.

EDIT: Yeah, as "fort" said.
 
Agree with above.

Shameless plug warning!

I tried doing that in:
[ame="http://www.orbithangar.com/searchid.php?ID=6888"]YBBN Brisbane Airport[/ame]

It works, just inverted the building wall textures, and gave them a _n suffix. You get a night time effect.

N.
 
I m new to orbiter addon development. I want to change the mesh of my addon during day and night (like the landing pads, city lights etc.). I cant find any info in the api reference...

Sorry. My explanations was for ground textures on a mesh. But it should be, if i remember well, similar for buildings, landing pads... as said by Notebook ans asbjos.
 
Back
Top