Slightly OT, but there may be a bug that needs squished here ...

OK, it seems like the first of these works, but the latter works at
night, but causes a segfault during the day:
These aren't the entire files, but the rest of the stuff is just range
animations. If needed, I can post the entire file. This was using CVS
from two days ago.

Josh

<?xml version="1.0"?>
<PropertyList>
 <path>MormonTempleDC.ac</path>
 <sim>
  <model>
   <MormonTempleDC>
    <material>
     <bronze>
      <emissive>
       <red>0</red>
       <green>0</green>
       <blue>0</blue>
      </emissive>
      <lit>
       <emissive>
        <red>0.39</red>
        <green>0.28</green>
        <blue>0.07</blue>
       </emissive>
      </lit>
     </bronze>
    </material>
   </MormonTempleDC>
  </model>
 </sim>
 <animation>
  <type>material</type>
  <global type="bool">true</global>
  <object-name>Spires</object-name>

<property-base>/sim/model/MormonTempleDC/material/bronze/lit/emissive</property-base>
   <condition>
   <greater-than>
    <property>/sim/time/sun-angle-rad</property>
    <value>1.55</value>  <!-- HERE -->
   </greater-than>
  </condition>
  <emission>
   <red>0</red>
   <green>0</green>
   <blue>1</blue>
  </emission>
 </animation>
</PropertyList>

<?xml version="1.0"?>
<PropertyList>
 <path>MormonTempleDC.ac</path>
 <sim>
  <model>
   <MormonTempleDC>
    <light>1.55</light>
    <material>
     <bronze>
      <emissive>
       <red>0</red>
       <green>0</green>
       <blue>0</blue>
      </emissive>
      <lit>
       <emissive>
        <red>0.39</red>
        <green>0.28</green>
        <blue>0.07</blue>
       </emissive>
      </lit>
     </bronze>
    </material>
   </MormonTempleDC>
  </model>
 </sim>
 <animation>
  <type>material</type>
  <global type="bool">true</global>
  <object-name>Spires</object-name>

<property-base>/sim/model/MormonTempleDC/material/bronze/lit/emissive</property-base>
  <condition>
   <greater-than>
    <property>/sim/time/sun-angle-rad</property>
    <value alias="../../../../sim/model/MormonTempleDC/light"/> <!--
HERE -->
   </greater-than>
  </condition>
  <emission>
   <red>red</red>
   <green>green</green>
   <blue>blue</blue>
  </emission>
 </animation>
</PropertyList>




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to