Rain on Cab effect

Dom said

[quote:lpl0w43d]It’s the other way round: white must be on the side of wiper blades while it’s still.[/quote:lpl0w43d]

Yes, I think I’ve been finding this, or else the alpha is linked to the view from the front looking at the cab from outside. Sounds daft, but I do think it is the exterior wipers that control things.

Richard

Hello,

"PaulGausden":2z2hymfw wrote:
Hi Dom – have you got it in the pluginsimportexport folder? Version 9.1?[/quote:2z2hymfw]

… No, I put it in the plugins folder. Correcting this makes the export plugin available.

The TrainGlassWeatherEffects.fx part looks OK but when selecting the cab view ingame, nothing is displayed… I’m sitting in the air.

Do you want to compare both igs files? (I export with the "no lod" option).

Hi guys.
I have been following this thread with great interest. I have tried your suggestions out and they work fine.
I have noted something else too, unless I missed it some where. The area of the rain textures used affects the size of the rain drops.
[attachment=0:1z1sa5vk]<!– ia0 –>Rain02.jpg<!– ia0 –>[/attachment:1z1sa5vk]
This is from part (about 25%) of a 1024 x 1024 texture file. My first experiment and I couldnt be bothered to re map the windscreen.

[attachment=1:1z1sa5vk]<!– ia1 –>Rain03.jpg<!– ia1 –>[/attachment:1z1sa5vk]
This from about 75% of a 256 x 256 texture.
It makes sence I suppose if there are a limited number of raindrops to a texture. The smaller the bit of texture you are looking through the bigger the drops appear!!!!

Dick C.

Hi… i have a question.. how do you sincronize animation of wipers with the texture related rain drops clean up by the wiper? ..Because my wiper animation is out of sync with the rain drops cleanup in texture animation.In other words my wiper is not working sincronized with the cleanup of the rain drops on my windshield!!!!!

&quot;SolarisT&quot;:2h29esop wrote:
Hi… i have a question.. how do you sincronize animation of wipers with the texture related rain drops clean up by the wiper? ..Because my wiper animation is out of sync with the rain drops cleanup in texture animation.In other words my wiper is not working sincronized with the cleanup of the rain drops on my windshield!!!!![/quote:2h29esop]

Hello,

Unless there is a problem with your animation, have you linked the wipers’ sound with the AnimationTime_rearWipers controller?

The wiper animation needs to have 16 frames but with no return animation. The sim deals with that. The entry in the loco bin file for the wipers needs to be &lt;AnimStyle d:type=&quot;cDeltaString&quot;&gt;BackAndForthContinuous&lt;/AnimStyle&gt;

Dick C.

&quot;Dickyjim&quot;:18hkmgf3 wrote:
The wiper animation needs to have 16 frames but with no return animation. The sim deals with that. The entry in the loco bin file for the wipers needs to be &lt;AnimStyle d:type=&quot;cDeltaString&quot;&gt;BackAndForthContinuous&lt;/AnimStyle&gt;

Dick C.[/quote:18hkmgf3]

I’m using the 3DC animation settings: 7 animation keys + 10 keys per second.
No return animation.

It works perfectly at a rate of 0.7 seconds per in each direction.

I stand correcxted. I have just tried that out and it gives a much better result tan my settings!!!! <!– s:oops: –><img src="{SMILIES_PATH}/icon_redface.gif" alt=":oops:" title="Embarrassed" /><!– s:oops: –> Thanks.

Stunning work by Richard, Vlado and Paul, You three are geniuses. Managed to get this working first time with the new exporter.
[url:3ehqiu22]http&#58;//www&#46;youtube&#46;com/watch?v=Gj2uiZqKRc8[/url:3ehqiu22]
One problem I have thought is if I map more than one object with this texture i.e the other windows, the hieracy does no export and I only get the main model and nothing else. I do not have more than twelve sub-groups in any group.
Even moving the new textured windows out of the hieracy still causes the export to fail. Only when I remove the texture or delete that object so there is only one window left does it work again. I am exporting 248 blocks at the moment.

Hello,

It’s certainly a group problem.
I had a case of export pb whereas the maximum of 24 groups was not reached. I solved it be merging 2 groups.

As for cabs, for the export, all objects are under main, except 2 groups for animations, 1 group for indicators and wipers.
(I keep more hierarchies in a master model which is used for to build the export model by removing some groups)

Slimming the groups down still doesn’t have any effect. Perhaps I’ve hit some file size limit or something. Do you guy’s export your windows as one merged object or keep them separate?

It seems you can only use one weatherglass_1 in the RailSim field for one pane of glass. I used weatherglass_2, weatherglass_3, weatherglass_4 and weatherglass_5 for the other windows and all works fine with the export now. I used the green part of the normal map for both side windows and the raindrops seem to be moving in the correct direction.
One happy bunny now <!– s:D –><img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt=":D" title="Very Happy" /><!– s:D –>

<!– m –><a class="postlink" href="http://www.youtube.com/watch?v=Gkgs1pSWsZA">http://www.youtube.com/watch?v=Gkgs1pSWsZA</a>&lt;!– m –>

&quot;Darren Carter&quot;:19cbxmgu wrote:
It seems you can only use one weatherglass_1 in the RailSim field for one pane of glass. I used weatherglass_2, weatherglass_3, weatherglass_4 and weatherglass_5 for the other windows and all works fine with the export now.
[/quote:19cbxmgu]
What do you mean by &quot;one weatherglass_1 in the RailSim field&quot;. The RailSim field is set to TrainGlassWeatherEffects.fx no?
I used the same texture file + material attributes for all the cab windows. Which means the same material named weatherglass_1. If you use several materials you need them to be named differently (thus, what you write naming &quot; weatherglass_2, weatherglass_3,…&quot;?).

&quot;Darren Carter&quot;:19cbxmgu wrote:
I used the green part of the normal map for both side windows and the raindrops seem to be moving in the correct direction.
[/quote:19cbxmgu]
That’s right for an engine with 1 cab.
For an engine with 2 cabs, the pink is for the right side window and the green is for the left side window.

I should have said the &quot;Custom&quot; Rail Sim field which is under the texture slots. If you look in Vlado’s third post down you can see the Custom Rail Sim field.
<!– l –><a class="postlink-local" href="http://amabilis.com/forum/viewtopic.php?f=7&amp;t=6352">viewtopic.php?f=7&amp;t=6352</a>&lt;!– l –>
I only have one cab at one end so I see what you mean now.

Well, After upgrading to Windows 7 64bit and the new RW update this seems to have happened.
<!– m –><a class="postlink" href="http://youtu.be/yIWnAc4K_V0">http://youtu.be/yIWnAc4K_V0</a>&lt;!– m –>

It only seems to be a problem when the TSX box is checked. This was on my slower laptop but the same effect is prevailant on my top spec pc. Old models work fine just the latest exported on Windows 7 and the latest RW update I have trouble with. Can anyone else confirm that the TrainGlassWeatherEffect.fx shader still exports OK with the new RW update on Win7 64bit. I’m using 3DC7.1.2
Cheers.

You must be logged in to reply in this thread.

89 posts