Dr Schweiger,
I am in the circumstance to try to reproduce through local ( ehm...sometimes few dizaines kilometers in all directions ) detailed scenes ( level 14...I think, 38 m by pixel ) what can be seen, from space, flying over a city ( 50 to 200 km above ); including night lights. And, very accessorily, local detailed scenes for bases, including night lights, too. This via meshes.
At first, and as usual, I create a mesh, carrying a texture dds declared explicitly in it's cfg:
BEGIN_OBJECTLIST MESH
FILE Mymesh
POS ..............
TEX Mytexture
END
END_OBJECTLIST
The name of this cfg is "Bourou.cfg".
Mytexture ( Mytexture.dds ), is declared in Base.cfg and possesses a night version Mytexture_n.dds.
But, by the fact that in that context - terrain's meshes - the limits between texture pixels are, as you know, visible ( and i work on a 80 x 50 km's meshe ), I attempted to add a surftile, placed to the same place, accompanied of an alpha channel (256 levels of gray) leaving in transparency/semi transparency only the zones that I wished to see appeared at night.
In a manner rather unexpected, that works ( at least, on my machine ), but under three conditions :
1 ) The surftile must be declared in a different cfg.
2 ) The "name" of the cfg for this surftile imports somewhat and I named it zzzzzzzzzzzzzzzzzzzzzzz.cfg .
3 ) Undershadows must figure in the dedicated cfg for the meshe.
TEX Mytexture
Undershadow
I have somewhat try to understand the conditions of realization of this effect but I knows still too little for about it to speak, if, after a lot of trys since six months of experience with it, i begin to have some ideas.
All this works with the version 2006 as with the current bétas.
Remain a reef and this is the object of this message: while the mipmapping of the texture day ( Mytexture ) is possible and effective ( applied ) it does not work with the night texture ( Mytexture_dds ). I mean that I can attribute mipmaps to it but they do not appears. This is only few importance in the case of simple bases but being a question of cities...
Can that have a solution ?
With my thanks.
( I do not neglect nevertheless that the surftiles are devoted to disappear from here to some years )
I am in the circumstance to try to reproduce through local ( ehm...sometimes few dizaines kilometers in all directions ) detailed scenes ( level 14...I think, 38 m by pixel ) what can be seen, from space, flying over a city ( 50 to 200 km above ); including night lights. And, very accessorily, local detailed scenes for bases, including night lights, too. This via meshes.
At first, and as usual, I create a mesh, carrying a texture dds declared explicitly in it's cfg:
BEGIN_OBJECTLIST MESH
FILE Mymesh
POS ..............
TEX Mytexture
END
END_OBJECTLIST
The name of this cfg is "Bourou.cfg".
Mytexture ( Mytexture.dds ), is declared in Base.cfg and possesses a night version Mytexture_n.dds.
But, by the fact that in that context - terrain's meshes - the limits between texture pixels are, as you know, visible ( and i work on a 80 x 50 km's meshe ), I attempted to add a surftile, placed to the same place, accompanied of an alpha channel (256 levels of gray) leaving in transparency/semi transparency only the zones that I wished to see appeared at night.
In a manner rather unexpected, that works ( at least, on my machine ), but under three conditions :
1 ) The surftile must be declared in a different cfg.
2 ) The "name" of the cfg for this surftile imports somewhat and I named it zzzzzzzzzzzzzzzzzzzzzzz.cfg .
3 ) Undershadows must figure in the dedicated cfg for the meshe.
TEX Mytexture
Undershadow
I have somewhat try to understand the conditions of realization of this effect but I knows still too little for about it to speak, if, after a lot of trys since six months of experience with it, i begin to have some ideas.
All this works with the version 2006 as with the current bétas.
Remain a reef and this is the object of this message: while the mipmapping of the texture day ( Mytexture ) is possible and effective ( applied ) it does not work with the night texture ( Mytexture_dds ). I mean that I can attribute mipmaps to it but they do not appears. This is only few importance in the case of simple bases but being a question of cities...
Can that have a solution ?
With my thanks.
( I do not neglect nevertheless that the surftiles are devoted to disappear from here to some years )
Last edited: