Jump to content

TrueGlass on the (old FSX) default CRJ700


Recommended Posts

Hi Collin, 

i mean that it could be very useful if you can choose what RainAtlas.png to use for each surface.
For example in the xml conifg file something like this:

<Surface Name="TG_0" ... 
	<Precipitation Raintexture="RainAtlas_DAY.png" ...
...
<Surface Name="TG_1" ... 
	<Precipitation Raintexture="RainAtlas_NIGHT.png" ...
...

So one can choose which custom set of RainAtlas png to use. This is because if in the MDL for the 3d plane containing the RTT you choose DestAlpha-SrcAlpha blending, the resulting effect is much more better. But: if you don't specifiy also a Nightmap texture the rain is too darkin night time, completely invisible, while if you specify the Nightmap texture the rain is there but it is too much bright at night. So if i can choose a different png, with more transparent drops, that would be perfectly rendered in night time as well.

In the MDL for the 3d plane containing the trueglass i would have:

Diffuse texture: $TRUEGLASS_DAY
Nightmap texture: $TRUEGLASS_NIGHT

those two will blend from day to night, night to day.

In the panel.cfg i would have:

[VcockpitXX]
...
texture=$TRUEGLASS_DAY
texture00=TG_0, 0,0,2048,2048

[VcockpitXX]
...
texture=$TRUEGLASS_NIGHT
texture00=TG_1, 0,0,2048,2048

...where in TG_0 it uses a normal rainatlas png, and in TG_1 it uses a dimmed more transparent rainatlas png.

I hope i was clear, it is not easy to explain :D

Edited by tonaz
Link to post
Share on other sites

Thanks Colin.

This is what i mean bytheway, in night time it is so bright. (attachment)
I tried to make a copy of the DLL and have two DLL's one for day and one for night, but naturally, as expected, both DLL look in the same "Trueglass" textures folder.
Brandon, do you have any tips for me?

Untitled-1.jpg

Edited by tonaz
Link to post
Share on other sites

I've found a workaround, which actually i don't think is a workaround, but a brilliant solution:

I added another set of 3D mesh for windshields.
Then i coded a visibility condition, one for night time, one for day time.
Then i applied day condition to the 3D mesh with normal transparency.
And the night condition to the other mesh with 0.2 transparency.

They both use the same TrueGlass dll with the only one RainAtlas.png, but on different meshes with different transparency, that shows up only in specific time of day.

Works. YAY! \m/

Edited by tonaz
Link to post
Share on other sites
Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.