could you check where the normal is pointing?
The normals are all pointing out on both the front and back glass (it's all one piece actually).
could you check where the normal is pointing?
using property rules rather than Nasal for the splash vector is actually superior - once you are satisfied with it, would you consider altering the Wiki accordingly to establish the property rules as 'best practice'?
<?xml version="1.0" encoding="UTF-8"?>
<PropertyList>
<filter>
<name>splash-xa</name>
<update-interval-secs type="double">0.1</update-interval-secs>
<type>gain</type>
<gain>1.0</gain>
<input>
<expression>
<table>
<property>/velocities/airspeed-kt</property>
<entry><ind> 0 </ind><dep> -0.33 </dep></entry>
<entry><ind> 4 </ind><dep> -0.33 </dep></entry>
<entry><ind> 5 </ind><dep> -1.7 </dep></entry>
<entry><ind> 50 </ind><dep> -2.1 </dep></entry>
</table>
</expression>
</input>
<output>
<property>/environment/aircraft-effects/splash-xa</property>
</output>
</filter>
<filter>
<name>splash-za</name>
<update-interval-secs type="double">0.1</update-interval-secs>
<type>gain</type>
<gain>1.0</gain>
<input>
<expression>
<table>
<property>/velocities/airspeed-kt</property>
<entry><ind> 0 </ind><dep> 0.82 </dep></entry>
<entry><ind> 4 </ind><dep> 0.82 </dep></entry>
<entry><ind> 5 </ind><dep> -0.17 </dep></entry>
<entry><ind> 50 </ind><dep> -0.35 </dep></entry>
</table>
</expression>
</input>
<output>
<property>/environment/aircraft-effects/splash-za</property>
</output>
</filter>
<filter>
<name>splash-xr</name>
<update-interval-secs type="double">0.1</update-interval-secs>
<type>gain</type>
<gain>1.0</gain>
<input>
<expression>
<table>
<property>/engines/active-engine/rpm</property>
<entry><ind> 0 </ind><dep> -0.33 </dep></entry>
<entry><ind> 600 </ind><dep> -0.33 </dep></entry>
<entry><ind> 601 </ind><dep> -1.3 </dep></entry>
<entry><ind> 1500 </ind><dep> -1.9 </dep></entry>
</table>
</expression>
</input>
<output>
<property>/environment/aircraft-effects/splash-xr</property>
</output>
</filter>
<filter>
<name>splash-zr</name>
<update-interval-secs type="double">0.1</update-interval-secs>
<type>gain</type>
<gain>1.0</gain>
<input>
<expression>
<table>
<property>/engines/active-engine/rpm</property>
<entry><ind> 0 </ind><dep> 0.82 </dep></entry>
<entry><ind> 600 </ind><dep> 0.82 </dep></entry>
<entry><ind> 601 </ind><dep> 0.127 </dep></entry>
<entry><ind> 1500 </ind><dep> -0.29 </dep></entry>
</table>0
</expression>
</input>
<output>
<property>/environment/aircraft-effects/splash-zr</property>
</output>
</filter>
<filter>
<name>splash-x</name>
<update-interval-secs type="double">0.1</update-interval-secs>
<type>gain</type>
<gain>1.0</gain>
<input>
<condition>
<greater-than-equals>
<property>/velocities/airspeed-kt</property>
<value>5</value>
</greater-than-equals>
</condition>
<property>/environment/aircraft-effects/splash-xa</property>
</input>
<input>
<condition>
<less-than>
<property>/velocities/airspeed-kt</property>
<value>5</value>
</less-than>
</condition>
<property>/environment/aircraft-effects/splash-xr</property>
</input>
<output>
<property>/environment/aircraft-effects/splash-vector-x</property>
</output>
</filter>
<filter>
<name>splash-y</name>
<update-interval-secs type="double">0.1</update-interval-secs>
<type>gain</type>
<gain>1.0</gain>
<input>
<value>0.0</value>
</input>
<output>
<property>/environment/aircraft-effects/splash-vector-y</property>
</output>
</filter>
<filter>
<name>splash-z</name>
<update-interval-secs type="double">0.1</update-interval-secs>
<type>gain</type>
<gain>1.0</gain>
<input>
<condition>
<greater-than-equals>
<property>/velocities/airspeed-kt</property>
<value>5</value>
</greater-than-equals>
</condition>
<property>/environment/aircraft-effects/splash-za</property>
</input>
<input>
<condition>
<less-than>
<property>/velocities/airspeed-kt</property>
<value>5</value>
</less-than>
</condition>
<property>/environment/aircraft-effects/splash-zr</property>
</input>
<output>
<property>/environment/aircraft-effects/splash-vector-z</property>
</output>
</filter>
</PropertyList>
<effect>
<inherits-from>Effects/glass</inherits-from>
<object-name>glassOuter</object-name>
<object-name>frontglas</object-name>
</effect>
<precipitation-control>
<clip-distance type="double">1.75</clip-distance>
</precipitation-control>
dutchman wrote in Fri Dec 11, 2015 8:12 pm:@ dtlan201
I'm still struggling with the rain on windows effect. Could you enlighten me on the steps that you have taken?
)-: it's still raining inside.
<?xml version="1.0"?>
<!--
c172p glass effects.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-->
<system name="glass-effect1">
<channel name="rain">
<fcs_function name="glass-effects/airspeed-clamped-sqrt">
<function>
<sqrt>
<quotient>
<min>
<property>/velocities/airspeed-kt</property>
<value>40</value>
</min>
<value>40</value>
</quotient>
</sqrt>
</function>
</fcs_function>
<fcs_function name="glass-effects/splashx">
<function>
<difference>
<value>-0.1</value>
<product>
<value>2.0</value>
<property>/fdm/jsbsim/glass-effects/airspeed-clamped-sqrt</property>
</product>
</difference>
</function>
<output>/environment/aircraft-effects/splash-vector-x</output>
</fcs_function>
<fcs_function name="glass-effects/splashy">
<function>
<value>0.0</value>
</function>
<output>/environment/aircraft-effects/splash-vector-y</output>
</fcs_function>
<fcs_function name="glass-effects/splashz">
<function>
<difference>
<value>1.0</value>
<product>
<value>1.35</value>
<property>/fdm/jsbsim/glass-effects/airspeed-clamped-sqrt</property>
</product>
</difference>
</function>
<output>/environment/aircraft-effects/splash-vector-z</output>
</fcs_function>
</channel>
</system>
<?xml version="1.0" encoding="UTF-8"?>
<PropertyList>
<filter>
<name>splashX</name>
<type>gain</type>
<input>
<property>/fdm/jsbsim/glass-effects/splashx</property>
</input>
<output>
<property>/environment/aircraft-effects/splash-vector-x</property>
</output>
</filter>
<filter>
<name>splashY</name>
<type>gain</type>
<input>
<value>0.0</value>
</input>
<output>
<property>/environment/aircraft-effects/splash-vector-y</property>
</output>
</filter>
<filter>
<name>splashZ</name>
<type>gain</type>
<input>
<property>/fdm/jsbsim/glass-effects/splashz</property>
</input>
<output>
<property>/environment/aircraft-effects/splash-vector-z</property>
</output>
</filter>
</PropertyList>
<system file="glass-effect1"/>
<systems>
<!-- Autopilot Helpers ========================================= -->
<property-rule n="101">
<path>Aircraft/A330-200/Systems/glass-effect2.xml</path>
</property-rule>
<effect>
<inherits-from>Effects/glass</inherits-from>
<object-name>windshield</object-name>
</effect>
Users browsing this forum: No registered users and 1 guest