Board index FlightGear Development Aircraft Liveries

Glossy effect for Citation II livery?  Topic is solved

Discussion of aircraft textures and liveries

Re: Glossy effect for Citation II livery?

Postby i4dnf » Wed Jan 05, 2011 4:39 pm

Yeah that's ok, that's what you should start from. I've done some tests of my own, and it appears to me that the material assigned to the objects has full shininess, that's why everything is very reflective.
I'll do some more tests and report back with a possible cure.
i4dnf
Retired
 
Posts: 743
Joined: Wed Sep 09, 2009 8:17 am
Location: LRBS
Callsign: YR-I4D
Version: GIT
OS: Gentoo Linux ~amd64

Re: Glossy effect for Citation II livery?

Postby chris_blues » Wed Jan 05, 2011 4:44 pm

Thank you very much, so far!!!!
Depending on how long it takes; I'll have to go in an hour or so... I'll be back around 5hours from now. In Germany that is ca 17:00 now, 23:00 being back... :)

Edit:
Could this be some source for error? Extract from /Models/Effects/foo_reflect.eff
Code: Select all
<!--foo_reflect.eff-->
<PropertyList>
 <name>Effects/foo_reflect</name>
 <inherits-from>Effects/reflect</inherits-from>
...

I mean the last line! There is no "reflect.eff" in /Models/Effects/
Don't hesitate to let me know if I'm incorrect or just annoying! As long as you do it gently! :)
Debian stable 64bit - i7 8x2.8GHz - 20GB RAM - GeForce GTS 450
Citation II
User avatar
chris_blues
Retired
 
Posts: 1577
Joined: Mon May 03, 2010 2:30 pm
Location: claws of real life
Callsign: chris_blues
Version: GIT
OS: Debian stable 64

Re: Glossy effect for Citation II livery?

Postby i4dnf » Wed Jan 05, 2011 5:18 pm

No that's not the source of the problem, that refers to the Effects directory in the flightgear data directory.
From what I can see the effect behaves a bit strange, the "simple" solution would be to use two different effects, one for the painted objects, and one for the chrome objects, but that just defeats most of it's purpose :(.
As a starter, this is a quick test of a more "developed" greymap:
Image
I would expect the lighter surfaces to be more reflective than the darker ones, but the difference is very, very tiny here :(.
Also you can tweak the <refl-correction> in the effect file, it takes values between -1 and 1, with negative values reducing reflection.
Now I've noticed that you've assigned <reflect_map> to a 0.1 value. That's not quite right, as it is a "boolean' value, taking only 0 or 1 as values.
Gonna do another quick test and will report back with my findings.
i4dnf
Retired
 
Posts: 743
Joined: Wed Sep 09, 2009 8:17 am
Location: LRBS
Callsign: YR-I4D
Version: GIT
OS: Gentoo Linux ~amd64

Re: Glossy effect for Citation II livery?

Postby chris_blues » Wed Jan 05, 2011 5:26 pm

I've changed the values in foo_reflect.eff to
Code: Select all
...
   <rainbowiness type="float">0</rainbowiness>
   <fresneliness>0.0</fresneliness>
   <noisiness>0.0</noisiness>
   <refl_correction>0.0</refl_correction>
   <ambient_correction>0.0</ambient_correction>
   <reflect_map>1</reflect_map>
...

...copied your greymap.png, and still have no seeable difference...

Edit:
This is what it looks like with the following parameters!
Code: Select all
...
   <rainbowiness type="float">0</rainbowiness>
   <fresneliness>0.0</fresneliness>
   <noisiness>0.0</noisiness>
   <refl_correction>-0.6</refl_correction>
   <ambient_correction>0.0</ambient_correction>
   <reflect_map>1</reflect_map>
...

Image
So far so good! But it still has that "goldish" shine...

Edit2: Gotta go now! Cya later! Thx!
Don't hesitate to let me know if I'm incorrect or just annoying! As long as you do it gently! :)
Debian stable 64bit - i7 8x2.8GHz - 20GB RAM - GeForce GTS 450
Citation II
User avatar
chris_blues
Retired
 
Posts: 1577
Joined: Mon May 03, 2010 2:30 pm
Location: claws of real life
Callsign: chris_blues
Version: GIT
OS: Debian stable 64

Re: Glossy effect for Citation II livery?

Postby i4dnf » Wed Jan 05, 2011 5:42 pm

Ok, I'm officialy stupid :P.
It actually uses the alpha channel of the greymap to cumpute the reflection intensity.
In gimp do Colosrs>color to alpha -> and in the color swatch choose black. Then it should work.
proof of my stupidity:
Image

The golden shade comes from the images used as reflection, try to replace real.blue-sky with real.fair-sky in the effect file to see the difference.
i4dnf
Retired
 
Posts: 743
Joined: Wed Sep 09, 2009 8:17 am
Location: LRBS
Callsign: YR-I4D
Version: GIT
OS: Gentoo Linux ~amd64

Re: Glossy effect for Citation II livery?

Postby HHS » Wed Jan 05, 2011 8:10 pm

Take a look on my Ec130 in GIT, the JU52 in GIT or the Ec135-developement in my repo at http://www.gitorious.org/ec135.

All those makes use of the glossy effect you wish and especially all uses customized values. Especially JU52 and EC135dev uses different strength settings per livery.
Then the appearance of this effect on the aircraft depends a lot on the cubemap you decide to use.
We have 8 different ones to choose- try everyone and see how it will look.

And though the wiki article isn't ready, as there have been lately changes to effect, there is already a small list of the different values to change and their meanings.
Just play a bit to see what and how it changes.
Up, up and away
User avatar
HHS
 
Posts: 3625
Joined: Thu Jul 19, 2007 9:09 am
Version: GIT

Re: Glossy effect for Citation II livery?

Postby chris_blues » Thu Jan 06, 2011 4:07 am

i4dnf wrote:They are there, but have the old style "chrome" effect assigned to them. You can find them a bit lower in the xml (line 158)...

HHS wrote:Take a look on my Ec130 in GIT, the JU52 in GIT or the Ec135-developement in my repo at http://www.gitorious.org/ec135. ...

Thanks! That helped a lot!

My progress so far:
Here are the files I changed/added. (ca. 2MB)

The key file changes were:
  • made the greymap white (#FFFFFF) and opaque (50 or 60% - not so sure :) )
  • found a right cubemap (fair-sky) and change it's saturation to 50%. (/citation/Models/Effects/CubaMaps/fair-sky-bw/)
  • changed /Effects/citation_reflect.eff according to cubemap

And this is how far I've come by that:
Image
Still not perfect but coming closer, I think. What do you think?
I wonder where these black halos around the lights come from... :?

Now come the next problems!
How can I get the chrome windows and doors into the <objects> ???

..and how can I get rid of this exploded cockpit :?:
Image
Don't hesitate to let me know if I'm incorrect or just annoying! As long as you do it gently! :)
Debian stable 64bit - i7 8x2.8GHz - 20GB RAM - GeForce GTS 450
Citation II
User avatar
chris_blues
Retired
 
Posts: 1577
Joined: Mon May 03, 2010 2:30 pm
Location: claws of real life
Callsign: chris_blues
Version: GIT
OS: Debian stable 64

Re: Glossy effect for Citation II livery?

Postby i4dnf » Thu Jan 06, 2011 9:41 am

For the chrome parts, you'll have to do it from the texture, as those are not separate objects.
In the livery make a light gray contour for the windows and doors, as it looks on the original aircraft. Then copy that contour to the greymap and make it fully opaque, leaving the rest with the current level of transparency.
As for the cockpit, I don't know what happened, will take a look a the package you posted maybe I can spot something wrong.
i4dnf
Retired
 
Posts: 743
Joined: Wed Sep 09, 2009 8:17 am
Location: LRBS
Callsign: YR-I4D
Version: GIT
OS: Gentoo Linux ~amd64

Re: Glossy effect for Citation II livery?

Postby chris_blues » Thu Jan 06, 2011 1:03 pm

I've just seen, while playing around with the greymap, That the landing gears and details around it have that strange greenish color, like the engines were, when I hadn't included them into the effects-section in citation.xml.
Is it possible, that I have to include everything which begins with an <animation>-tag into the <effect>-section? But that would make it shiny as well, wouldn't it? I wouldn't want the tyres and hydraulics to be completely shiny...
Don't hesitate to let me know if I'm incorrect or just annoying! As long as you do it gently! :)
Debian stable 64bit - i7 8x2.8GHz - 20GB RAM - GeForce GTS 450
Citation II
User avatar
chris_blues
Retired
 
Posts: 1577
Joined: Mon May 03, 2010 2:30 pm
Location: claws of real life
Callsign: chris_blues
Version: GIT
OS: Debian stable 64

Re: Glossy effect for Citation II livery?

Postby i4dnf » Thu Jan 06, 2011 1:33 pm

No. That's because they are greenish in the texture ;). Copy the top left corner from one of the other textures (including the lights) over to your livery. As for the details, you can slect them all with select by colour, and then fill them up with a light grey.
Oh, and I've just found the cause of the strange interior :P, a bit of creative editing from your part in the Citation-II.xml.
Copy it all from here, and replace the contents of your Citation-II.xml:
Code: Select all
<PropertyList>

<path>Citation-II.ac</path>

    <nasal>
        <load>
            var livery_update = aircraft.livery_update.new("Aircraft/Citation/Models/Liveries", 10);
        </load>

        <unload>
            livery_update.stop();
        </unload>
    </nasal>

    <animation>
      <type>material</type>
      <object-name>LEngine</object-name>
      <object-name>REngine</object-name>
      <object-name>LHwing</object-name>
        <object-name>RHU.spdbrake</object-name>
        <object-name>LHU.spdbrake</object-name>
      <object-name>LHaileron</object-name>
      <object-name>LHflap</object-name>
      <object-name>LHmain.door</object-name>
      <object-name>RHwing</object-name>
      <object-name>RHaileron</object-name>
      <object-name>RHflap</object-name>
      <object-name>RHmain.door</object-name>
      <object-name>Cabin.door</object-name>
      <object-name>Fuselage</object-name>
      <object-name>Pylons</object-name>
      <object-name>Fin</object-name>
      <object-name>UprReverser</object-name>
      <object-name>Hstab</object-name>
      <object-name>RHelevator</object-name>
      <object-name>LHelevator</object-name>
      <object-name>Rudder</object-name>
        <object-name>FrDoor</object-name>
        <object-name>FrRHdoor</object-name>
        <object-name>FrLHdoor</object-name>
      <property-base>sim/model/livery</property-base>
      <texture-prop>texture</texture-prop>
      <texture>Lv1.png</texture>
    </animation>

   <animation>
       <type>material</type>
       <object-name>LEngine</object-name>
       <object-name>REngine</object-name>
       <object-name>LHwing</object-name>
       <object-name>LHaileron</object-name>
       <object-name>LHflap</object-name>
       <object-name>LHmain.door</object-name>
       <object-name>RHwing</object-name>
       <object-name>RHaileron</object-name>
       <object-name>RHflap</object-name>
       <object-name>RHmain.door</object-name>
       <object-name>Cabin.door</object-name>
       <object-name>Fuselage</object-name>
       <object-name>Pylons</object-name>
       <object-name>Fin</object-name>
       <object-name>Hstab</object-name>
       <object-name>RHelevator</object-name>
       <object-name>LHelevator</object-name>
       <object-name>Rudder</object-name>
       <object-name>FrDoor</object-name>
       <object-name>FrRHdoor</object-name>
       <object-name>FrLHdoor</object-name>
       <shininess>16</shininess>
   </animation>

   <animation>
       <type>material</type>
       <object-name>RHwing.heater</object-name>
       <object-name>LHwing.heater</object-name>
       <object-name>REngine.heater</object-name>
       <object-name>LEngine.heater</object-name>
       <object-name>Door.handle</object-name>
       <object-name>RH.Ureverser</object-name>
       <object-name>LH.Ureverser</object-name>
       <object-name>RH.Lreverser</object-name>
       <object-name>LH.Lreverser</object-name>
       <object-name>Door.glass</object-name>
       <object-name>Glass</object-name>
       <object-name>Glass.001</object-name>
       <shininess>192</shininess>
   </animation>

   <!-- REFLECTION -->
   <effect>
       <inherits-from>Aircraft/Citation/Models/Effects/foo_reflect</inherits-from>
       <object-name>LEngine</object-name>
       <object-name>REngine</object-name>
       <object-name>LHwing</object-name>
       <object-name>RHU.spdbrake</object-name>
       <object-name>LHU.spdbrake</object-name>
       <object-name>LHaileron</object-name>
       <object-name>LHflap</object-name>
       <object-name>LHmain.door</object-name>
       <object-name>RHwing</object-name>
       <object-name>RHaileron</object-name>
       <object-name>RHflap</object-name>
       <object-name>RHmain.door</object-name>
       <object-name>Cabin.door</object-name>
       <object-name>Fuselage</object-name>
       <object-name>Pylons</object-name>
       <object-name>Fin</object-name>
       <object-name>UprReverser</object-name>
       <object-name>Hstab</object-name>
       <object-name>RHelevator</object-name>
       <object-name>LHelevator</object-name>
       <object-name>Rudder</object-name>
       <object-name>FrDoor</object-name>
       <object-name>FrRHdoor</object-name>
       <object-name>FrLHdoor</object-name>
   <object-name>RHwing.heater</object-name>
   <object-name>LHwing.heater</object-name>
   <object-name>REngine.heater</object-name>
   <object-name>LEngine.heater</object-name>
   <object-name>Door.handle</object-name>
   <object-name>RH.Ureverser</object-name>
   <object-name>LH.Ureverser</object-name>
   <object-name>RH.Lreverser</object-name>
   <object-name>LH.Lreverser</object-name>
   <object-name>Door.glass</object-name>
   <object-name>Glass</object-name>
   <object-name>Glass.001</object-name>
   </effect>


<text>
    <name>LHreg</name>
    <offsets>
        <x-m>13.107</x-m>
        <y-m>-0.06</y-m>
        <z-m>2.411</z-m>
        <roll-deg>0</roll-deg>
        <pitch-deg>0</pitch-deg>
        <heading-deg>0</heading-deg>
    </offsets>
    <alignment>center-center</alignment>
    <axis-alignment>xz-plane</axis-alignment>
    <type type="string">text-value</type>
    <property type="string">sim/multiplay/generic/string[0]</property>
    <format type="string">%.7s</format>
    <font>arial_black.txf</font>
    <character-size>0.8</character-size>
    <character-aspect-ratio type="double">2.0</character-aspect-ratio>
    <draw-alignment type="bool">false</draw-alignment>
    <font-resolution>
      <width type="int">128</width>
      <height type="int">128</height>
    </font-resolution>
  </text>

<text>
    <name>RHreg</name>
    <offsets>
        <x-m>13.107</x-m>
        <y-m>0.06</y-m>
        <z-m>2.411</z-m>
        <roll-deg>0</roll-deg>
        <pitch-deg>0</pitch-deg>
        <heading-deg>0</heading-deg>
    </offsets>
    <alignment>center-center</alignment>
    <axis-alignment>reversed-xz-plane</axis-alignment>
    <type type="string">text-value</type>
    <property type="string">sim/multiplay/generic/string[0]</property>
    <format type="string">%.7s</format>
    <font>arial_black.txf</font>
    <character-size>0.8</character-size>
    <character-aspect-ratio type="double">2.0</character-aspect-ratio>
    <draw-alignment type="bool">false</draw-alignment>
    <font-resolution>
      <width type="int">128</width>
      <height type="int">128</height>
    </font-resolution>
  </text>

  <animation>
    <type>material</type>
    <object-name>LHreg</object-name>
    <object-name>RHreg</object-name>
    <emission>
      <red>0</red>
      <green>0</green>
      <blue>0</blue>
    </emission>
    <ambient>
      <red-prop>sim/multiplay/generic/float[1]</red-prop>
      <green-prop>sim/multiplay/generic/float[2]</green-prop>
      <blue-prop>sim/multiplay/generic/float[3]</blue-prop>
    </ambient>
    <diffuse>
      <red-prop>sim/multiplay/generic/float[1]</red-prop>
      <green-prop>sim/multiplay/generic/float[2]</green-prop>
      <blue-prop>sim/multiplay/generic/float[3]</blue-prop>
    </diffuse>
    <specular>
      <red-prop>sim/multiplay/generic/float[1]</red-prop>
      <green-prop>sim/multiplay/generic/float[2]</green-prop>
      <blue-prop>sim/multiplay/generic/float[3]</blue-prop>
    </specular>
  </animation>

    <model>
    <name>cabin</name>
        <path>Aircraft/Citation/Models/cabin.xml</path>
        <offsets>
            <x-m>0</x-m>
            <y-m>0</y-m>
            <z-m>0</z-m>
            <pitch-deg>0</pitch-deg>
        </offsets>
    </model>

    <model>
    <name>flightdeck</name>
        <path>Aircraft/Citation/Models/flightdeck.xml</path>
        <offsets>
            <x-m>0</x-m>
            <y-m>0</y-m>
            <z-m>0</z-m>
            <pitch-deg>0</pitch-deg>
        </offsets>
    </model>

    <animation>
        <type>range</type>
        <object-name>cabin</object-name>
        <min-m>0</min-m>
        <max-m>100</max-m>
    </animation>

    <animation>
        <type>range</type>
        <object-name>flightdeck</object-name>
        <min-m>0</min-m>
        <max-m>100</max-m>
    </animation>

    <!--<animation>
        <type>shader</type>
        <shader>chrome</shader>
        <texture>chrome1.png</texture>
        <object-name>Door.glass</object-name>
    <object-name>Glass</object-name>
    <object-name>Glass.001</object-name>
    </animation>

    <animation>
        <type>shader</type>
        <shader>chrome</shader>
        <texture>chrome.png</texture>
        <object-name>RHwing.heater</object-name>
        <object-name>LHwing.heater</object-name>
        <object-name>REngine.heater</object-name>
        <object-name>LEngine.heater</object-name>
        <object-name>Door.handle</object-name>
        <object-name>RH.Ureverser</object-name>
        <object-name>LH.Ureverser</object-name>
        <object-name>RH.Lreverser</object-name>
        <object-name>LH.Lreverser</object-name>
    </animation>-->

    <animation>
        <type>rotate</type>
        <object-name>Rudder</object-name>
        <object-name>beacon.003</object-name>
        <object-name>beacon</object-name>
        <object-name>beacon.001</object-name>
        <object-name>beacon.002</object-name>
        <property>controls/flight/rudder</property>
        <factor>-15</factor>
        <axis>
            <x1-m>13.901</x1-m>
            <y1-m>0</y1-m>
            <z1-m>3.115</z1-m>
            <x2-m>13.074</x2-m>
            <y2-m>0</y2-m>
            <z2-m>1.254</z2-m>
        </axis>
    </animation>

    <animation>
        <type>rotate</type>
        <object-name>LHelevator</object-name>
        <property>surface-positions/elevator-pos-norm</property>
        <factor>20</factor>
        <axis>
            <x1-m>13.040</x1-m>
            <y1-m>-2.553</y1-m>
            <z1-m>1.783</z1-m>
            <x2-m>12.933</x2-m>
            <y2-m>-0.046</y2-m>
            <z2-m>1.345</z2-m>
        </axis>
    </animation>

    <animation>
        <type>rotate</type>
        <object-name>RHelevator</object-name>
        <property>surface-positions/elevator-pos-norm</property>
        <factor>20</factor>
        <axis>
            <x1-m>12.933</x1-m>
            <y1-m>0.046</y1-m>
            <z1-m>1.345</z1-m>
            <x2-m>13.040</x2-m>
            <y2-m>2.553</y2-m>
            <z2-m>1.783</z2-m>
        </axis>
    </animation>

    <animation>
        <type>rotate</type>
        <object-name>LHflap</object-name>
        <property>surface-positions/flap-pos-norm</property>
        <factor>35</factor>
        <axis>
            <x1-m>7.739</x1-m>
            <y1-m>-4.449</y1-m>
            <z1-m>0.061</z1-m>
            <x2-m>8.034</x2-m>
            <y2-m>-1.581</y2-m>
            <z2-m>-0.183</z2-m>
        </axis>
    </animation>

    <animation>
        <type>rotate</type>
        <object-name>RHflap</object-name>
        <property>surface-positions/flap-pos-norm</property>
        <factor>35</factor>
        <axis>
            <x1-m>8.034</x1-m>
            <y1-m>1.581</y1-m>
            <z1-m>-0.183</z1-m>
            <x2-m>7.739</x2-m>
            <y2-m>4.449</y2-m>
            <z2-m>0.061</z2-m>
        </axis>
    </animation>

    <animation>
        <type>rotate</type>
        <object-name>LHaileron</object-name>
        <property>surface-positions/left-aileron-pos-norm</property>
        <factor>15</factor>
        <axis>
            <x1-m>7.477</x1-m>
            <y1-m>-6.975</y1-m>
            <z1-m>0.295</z1-m>
            <x2-m>7.739</x2-m>
            <y2-m>-4.449</y2-m>
            <z2-m>0.061</z2-m>
        </axis>
    </animation>

    <animation>
        <type>rotate</type>
        <object-name>RHaileron</object-name>
        <property>surface-positions/right-aileron-pos-norm</property>
        <factor>15</factor>
        <axis>
            <x1-m>7.739</x1-m>
            <y1-m>4.449</y1-m>
            <z1-m>0.061</z1-m>
            <x2-m>7.477</x2-m>
            <y2-m>6.975</y2-m>
            <z2-m>0.295</z2-m>
        </axis>
    </animation>

    <animation>
        <type>rotate</type>
        <object-name>Cabin.door</object-name>
        <object-name>Door.handle</object-name>
        <object-name>Door.glass</object-name>
        <property>sim/multiplay/generic/float</property>
        <factor>120</factor>
        <axis>
            <x1-m>4.071</x1-m>
            <y1-m>-0.768</y1-m>
            <z1-m>0.617</z1-m>
            <x2-m>4.071</x2-m>
            <y2-m>-0.769</y2-m>
            <z2-m>0.397</z2-m>
        </axis>
    </animation>

    <animation>
        <type>rotate</type>
        <object-name>RH.Ureverser</object-name>
        <object-name>LH.Ureverser</object-name>
        <property>surface-positions/reverser-norm</property>
        <factor>60</factor>
        <center>
            <x-m>10.251</x-m>
            <y-m>0.0</y-m>
            <z-m>0.753</z-m>
        </center>
        <axis>
            <x>0.0</x>
            <y>1.0</y>
            <z>0.0</z>
        </axis>
    </animation>

    <animation>
        <type>rotate</type>
        <object-name>RH.Lreverser</object-name>
        <object-name>LH.Lreverser</object-name>
        <property>surface-positions/reverser-norm</property>
        <factor>60</factor>
        <center>
            <x-m>10.251</x-m>
            <y-m>0.0</y-m>
            <z-m>0.793</z-m>
        </center>
        <axis>
            <x>0.0</x>
            <y>-1.0</y>
            <z>0.0</z>
        </axis>
    </animation>

    <animation>
        <type>rotate</type>
        <object-name>LHU.spdbrake</object-name>
        <property>surface-positions/speedbrake-pos-norm</property>
        <factor>-45</factor>
        <axis>
            <x1-m>7.605</x1-m>
            <y1-m>-3.907</y1-m>
            <z1-m>0.164</z1-m>
            <x2-m>7.652</x2-m>
            <y2-m>-3.306</y2-m>
            <z2-m>0.125</z2-m>
        </axis>
    </animation>

    <animation>
        <type>rotate</type>
        <object-name>RHU.spdbrake</object-name>
        <property>surface-positions/speedbrake-pos-norm</property>
        <factor>-45</factor>
        <axis>
            <x1-m>7.651</x1-m>
            <y1-m>3.305</y1-m>
            <z1-m>0.124</z1-m>
            <x2-m>7.605</x2-m>
            <y2-m>3.906</y2-m>
            <z2-m>0.163</z2-m>
        </axis>
    </animation>

<!--    Nose Gear  -->

    <animation>
        <type>rotate</type>
        <object-name>FrtStrut</object-name>
        <object-name>FrtWheel</object-name>
          <object-name>FLdamper</object-name>
          <object-name>FUdamper</object-name>
        <property>controls/flight/rudder</property>
        <factor>35</factor>
        <condition>
            <equals>
                <property>gear/gear[0]/position-norm</property>
                <value>1.000</value>
            </equals>
        </condition>
        <center>
            <x-m>1.759</x-m>
            <y-m>-0.0</y-m>
            <z-m>-0.123</z-m>
        </center>
        <axis>
            <x>0</x>
            <y>0</y>
            <z>-1</z>
        </axis>
    </animation>

    <animation>
        <type>rotate</type>
        <object-name>FrtStrut</object-name>
        <object-name>FrtWheel</object-name>
          <object-name>FLdamper</object-name>
          <object-name>FUdamper</object-name>
        <property>gear/gear[0]/position-norm</property>
        <interpolation>
            <entry><ind>0.0</ind><dep>110.0</dep></entry>
            <entry><ind>0.25</ind><dep>110.0</dep></entry>
            <entry><ind>0.75</ind><dep>0.0</dep></entry>
            <entry><ind>1.0</ind><dep>0.0</dep></entry>
        </interpolation>
        <center>
            <x-m>1.759</x-m>
            <y-m>-0.0</y-m>
            <z-m>-0.123</z-m>
        </center>
        <axis>
            <x>0</x>
            <y>1</y>
            <z>0</z>
        </axis>
    </animation>

    <animation>
        <type>rotate</type>
        <object-name>FrDoor</object-name>
        <property>gear/gear[0]/position-norm</property>
        <interpolation>
            <entry><ind>0.0</ind><dep>0</dep></entry>
            <entry><ind>0.25</ind><dep>0</dep></entry>
            <entry><ind>0.75</ind><dep>125.0</dep></entry>
            <entry><ind>1.0</ind><dep>125.0</dep></entry>
        </interpolation>
        <center>
            <x-m>1.983</x-m>
            <y-m>0.0</y-m>
            <z-m>-0.307</z-m>
        </center>
        <axis>
            <x>0</x>
            <y>-1</y>
            <z>0</z>
        </axis>
    </animation>

    <animation>
        <type>rotate</type>
        <object-name>FrRHdoor</object-name>
        <property>gear/gear[0]/position-norm</property>
        <interpolation>
            <entry><ind>0.0</ind><dep>0.0</dep></entry>
            <entry><ind>0.25</ind><dep>90.0</dep></entry>
            <entry><ind>0.75</ind><dep>90.0</dep></entry>
            <entry><ind>1.0</ind><dep>0.0</dep></entry>
        </interpolation>
        <axis>
            <x1-m>0.793</x1-m>
            <y1-m>0.146</y1-m>
            <z1-m>-0.197</z1-m>
            <x2-m>1.502</x2-m>
            <y2-m>0.187</y2-m>
            <z2-m>-0.271</z2-m>
        </axis>
    </animation>

    <animation>
        <type>rotate</type>
        <object-name>FrLHdoor</object-name>
        <property>gear/gear[0]/position-norm</property>
        <interpolation>
            <entry><ind>0.0</ind><dep>0.0</dep></entry>
            <entry><ind>0.25</ind><dep>90.0</dep></entry>
            <entry><ind>0.75</ind><dep>90.0</dep></entry>
            <entry><ind>1.0</ind><dep>0.0</dep></entry>
        </interpolation>
        <axis>
            <x1-m>1.502</x1-m>
            <y1-m>-0.187</y1-m>
            <z1-m>-0.271</z1-m>
            <x2-m>0.793</x2-m>
            <y2-m>-0.146</y2-m>
            <z2-m>-0.197</z2-m>
        </axis>
    </animation>

    <animation>
        <type>translate</type>
        <object-name>FrtStrut</object-name>
        <object-name>FrtWheel</object-name>
        <property>gear/gear[0]/compression-m</property>
        <axis>
            <x>0</x>
            <y>0</y>
            <z>1</z>
        </axis>
    </animation>

    <animation>
        <type>rotate</type>
        <object-name>FLdamper</object-name>
        <property>gear/gear[0]/compression-norm</property>
        <factor>90</factor>
        <axis>
            <x>0</x>
            <y>1</y>
            <z>0</z>
        </axis>
        <center>
            <x-m>1.666</x-m>
            <y-m>0</y-m>
            <z-m>-0.424</z-m>
        </center>
    </animation>

    <animation>
        <type>rotate</type>
        <object-name>FUdamper</object-name>
        <property>gear/gear[0]/compression-norm</property>
        <factor>180</factor>
        <axis>
            <x>0</x>
            <y>-1</y>
            <z>0</z>
        </axis>
        <center>
            <x-m>1.798</x-m>
            <y-m>0</y-m>
            <z-m>-0.293</z-m>
        </center>
    </animation>

<!-- Left Main-->

    <animation>
        <type>rotate</type>
        <object-name>LHgear</object-name>
        <object-name>LHstrut</object-name>
        <object-name>LHwheel</object-name>
        <object-name>LUdamper</object-name>
        <object-name>LLdamper</object-name>
        <object-name>LHram</object-name>
        <property>gear/gear[1]/position-norm</property>
        <interpolation>
            <entry><ind>0.0</ind><dep>87.0</dep></entry>
            <entry><ind>1.0</ind><dep>0.0</dep></entry>
        </interpolation>
        <center>
            <x-m>7.192</x-m>
            <y-m>-2.748</y-m>
            <z-m>0.056</z-m>
        </center>
        <axis>
            <x>1</x>
            <y>0</y>
            <z>0</z>
        </axis>
    </animation>

    <animation>
        <type>rotate</type>
        <object-name>LHmain.door</object-name>
        <property>gear/gear[1]/position-norm</property>
        <interpolation>
            <entry><ind>0.0</ind><dep>0.0</dep></entry>
            <entry><ind>1.0</ind><dep>-130.0</dep></entry>
        </interpolation>
        <axis>
            <x1-m>6.982</x1-m>
            <y1-m>-2.777</y1-m>
            <z1-m>-0.082</z1-m>
            <x2-m>7.566</x2-m>
            <y2-m>-2.777</y2-m>
            <z2-m>-0.084</z2-m>
        </axis>
    </animation>

    <animation>
        <type>rotate</type>
        <object-name>LHram</object-name>
        <property>gear/gear[1]/position-norm</property>
        <interpolation>
            <entry><ind>0.0</ind><dep>130.0</dep></entry>
            <entry><ind>0.2</ind><dep>100.0</dep></entry>
            <entry><ind>1.0</ind><dep>0.0</dep></entry>
        </interpolation>
        <center>
            <x-m>7.109</x-m>
            <y-m>-2.708</y-m>
            <z-m>-0.335</z-m>
        </center>
        <axis>
            <x>-1</x>
            <y>0</y>
            <z>0</z>
        </axis>
    </animation>

    <animation>
        <type>translate</type>
        <object-name>LHstrut</object-name>
        <object-name>LHwheel</object-name>
        <property>gear/gear[1]/compression-m</property>
        <axis>
            <x>0</x>
            <y>0</y>
            <z>1</z>
        </axis>
    </animation>

    <animation>
        <type>rotate</type>
        <object-name>LUdamper</object-name>
        <property>gear/gear[1]/compression-norm</property>
        <factor>100</factor>
        <axis>
            <x>0</x>
            <y>-1</y>
            <z>0</z>
        </axis>
        <center>
            <x-m>7.064</x-m>
            <y-m>-2.721</y-m>
            <z-m>-0.493</z-m>
        </center>
    </animation>

    <animation>
        <type>rotate</type>
        <object-name>LLdamper</object-name>
        <property>gear/gear[1]/compression-norm</property>
        <factor>50</factor>
        <axis>
            <x>0</x>
            <y>1</y>
            <z>0</z>
        </axis>
        <center>
            <x-m>7.243</x-m>
            <y-m>-2.730</y-m>
            <z-m>-0.670</z-m>
        </center>
    </animation>

<!-- Right Main -->
    <animation>
        <type>rotate</type>
        <object-name>RHgear</object-name>
        <object-name>RHstrut</object-name>
        <object-name>RHwheel</object-name>
        <object-name>RUdamper</object-name>
        <object-name>RLdamper</object-name>
        <object-name>RHram</object-name>
        <property>gear/gear[2]/position-norm</property>
        <interpolation>
            <entry><ind>0.0</ind><dep>-87.0</dep></entry>
            <entry><ind>1.0</ind><dep>0.0</dep></entry>
        </interpolation>
        <center>
            <x-m>7.192</x-m>
            <y-m>2.748</y-m>
            <z-m>0.056</z-m>
        </center>
        <axis>
            <x>1</x>
            <y>0</y>
            <z>0</z>
        </axis>
    </animation>

    <animation>
        <type>rotate</type>
        <object-name>RHmain.door</object-name>
        <property>gear/gear[2]/position-norm</property>
                <interpolation>
            <entry><ind>0.0</ind><dep>0.0</dep></entry>
            <entry><ind>1.0</ind><dep>130.0</dep></entry>
        </interpolation>
        <axis>
            <x1-m>6.982</x1-m>
            <y1-m>2.777</y1-m>
            <z1-m>-0.082</z1-m>
            <x2-m>7.566</x2-m>
            <y2-m>2.777</y2-m>
            <z2-m>-0.084</z2-m>
        </axis>
    </animation>

    <animation>
        <type>rotate</type>
        <object-name>RHram</object-name>
        <property>gear/gear[2]/position-norm</property>
        <interpolation>
            <entry><ind>0.0</ind><dep>130.0</dep></entry>
            <entry><ind>0.2</ind><dep>100.0</dep></entry>
            <entry><ind>1.0</ind><dep>0.0</dep></entry>
        </interpolation>
        <center>
            <x-m>7.109</x-m>
            <y-m>2.708</y-m>
            <z-m>-0.335</z-m>
        </center>
        <axis>
            <x>1</x>
            <y>0</y>
            <z>0</z>
        </axis>
    </animation>

    <animation>
        <type>translate</type>
        <object-name>RHstrut</object-name>
          <object-name>RHwheel</object-name>
        <property>gear/gear[2]/compression-m</property>
        <axis>
            <x>0</x>
            <y>0</y>
            <z>1</z>
        </axis>
    </animation>

    <animation>
        <type>rotate</type>
        <object-name>RUdamper</object-name>
        <property>gear/gear[2]/compression-norm</property>
        <factor>100</factor>
        <axis>
            <x>0</x>
            <y>-1</y>
            <z>0</z>
        </axis>
        <center>
            <x-m>7.064</x-m>
            <y-m>2.721</y-m>
            <z-m>-0.493</z-m>
        </center>
    </animation>

    <animation>
        <type>rotate</type>
        <object-name>RLdamper</object-name>
        <property>gear/gear[2]/compression-norm</property>
        <factor>50</factor>
        <axis>
            <x>0</x>
            <y>1</y>
            <z>0</z>
        </axis>
        <center>
            <x-m>7.243</x-m>
            <y-m>2.730</y-m>
            <z-m>-0.670</z-m>
        </center>
    </animation>

<!-- Lights -->

<!--                        Lights                               -->

    <animation>
        <type>select</type>
        <object-name>rednav</object-name>
        <object-name>greennav</object-name>
        <object-name>whitenav</object-name>
        <condition>
            <greater-than>
                <property>sim/multiplay/generic/int[2]</property>
                <value>5</value>
            </greater-than>
        </condition>
    </animation>

    <animation>
        <type>select</type>
        <object-name>beacon</object-name>
        <object-name>beacon.001</object-name>
        <object-name>beacon.002</object-name>
        <object-name>beacon.003</object-name>
        <condition>
            <greater-than>
                <property>sim/multiplay/generic/int[1]</property>
                <value>5</value>
            </greater-than>
        </condition>
    </animation>

    <animation>
        <type>select</type>
        <object-name>Flash01</object-name>
        <condition>
            <property>sim/multiplay/generic/int</property>
        </condition>
    </animation>

    <animation>
        <type>translate</type>
        <object-name>Flash01</object-name>
        <offset-m>10.591</offset-m>
        <axis>
            <x>0.663</x>
            <y>-0.746</y>
            <z>0.047</z>
        </axis>
    </animation>

    <animation>
        <type>billboard</type>
        <object-name>Flash01</object-name>
    </animation>

    <animation>
        <type>dist-scale</type>
        <object-name>Flash01</object-name>
        <factor>0.01</factor>
        <offset>1.0</offset>
        <min>1.0</min>
        <max>500.0</max>
    </animation>

    <animation>
        <type>select</type>
        <object-name>Flash02</object-name>
        <condition>
            <property>sim/multiplay/generic/int</property>
        </condition>
    </animation>

    <animation>
        <type>translate</type>
        <object-name>Flash02</object-name>
        <offset-m>10.591</offset-m>
        <axis>
            <x>0.663</x>
            <y>0.746</y>
            <z>0.047</z>
        </axis>
    </animation>

    <animation>
        <type>billboard</type>
        <object-name>Flash02</object-name>
    </animation>

    <animation>
        <type>dist-scale</type>
        <object-name>Flash02</object-name>
        <factor>0.01</factor>
        <offset>1.0</offset>
        <min>1.0</min>
        <max>500.0</max>
    </animation>

    <animation>
        <type>select</type>
        <object-name>Recog.flash1</object-name>
        <object-name>Recog.flash2</object-name>
        <condition>
            <greater-than>
            <property>sim/multiplay/generic/int[5]</property>
            <value>5</value>
            </greater-than>
        </condition>
    </animation>

    <animation>
        <type>select</type>
        <object-name>RHland.light</object-name>
        <condition>
            <property>sim/multiplay/generic/int[4]</property>
        </condition>
    </animation>

    <animation>
        <type>select</type>
        <object-name>LHland.light</object-name>
        <condition>
            <property>sim/multiplay/generic/int[3]</property>
        </condition>
    </animation>

</PropertyList>
i4dnf
Retired
 
Posts: 743
Joined: Wed Sep 09, 2009 8:17 am
Location: LRBS
Callsign: YR-I4D
Version: GIT
OS: Gentoo Linux ~amd64

Re: Glossy effect for Citation II livery?

Postby chris_blues » Thu Jan 06, 2011 1:47 pm

So far so good! Interior looks normal again! Image
As you can see, the window glass is blue now, I can't look through them...

As for the outside, the shiny effect is all gone, and some strange errors at the tail-registration...
Image
Edit: ... ah, the errors on the tail are the text-reg in citation.xml. I don't like my callsign written on the tail! So I removed it. :) And voilá, the yellow tail-reg is fixed...

Aaargh! *slaps on his head!* My fault!
I never mentioned, I exchanged the filenames "foo-reflect.eff" to "citation_reflect.eff". That did it! All nice now!
Last edited by chris_blues on Thu Jan 06, 2011 1:53 pm, edited 1 time in total.
Don't hesitate to let me know if I'm incorrect or just annoying! As long as you do it gently! :)
Debian stable 64bit - i7 8x2.8GHz - 20GB RAM - GeForce GTS 450
Citation II
User avatar
chris_blues
Retired
 
Posts: 1577
Joined: Mon May 03, 2010 2:30 pm
Location: claws of real life
Callsign: chris_blues
Version: GIT
OS: Debian stable 64

Re: Glossy effect for Citation II livery?

Postby i4dnf » Thu Jan 06, 2011 1:51 pm

Check that the name of the effect is similar to yours, probably some difference there.
The strange errors on the tailnumber are not errors, it appears my version of the cessna-II.xml has tailnumber/callsign support.
i4dnf
Retired
 
Posts: 743
Joined: Wed Sep 09, 2009 8:17 am
Location: LRBS
Callsign: YR-I4D
Version: GIT
OS: Gentoo Linux ~amd64

Re: Glossy effect for Citation II livery?

Postby chris_blues » Thu Jan 06, 2011 2:01 pm

Here we go! All nice! Great work!
Image
I'm still not very convinced of the blackness of the hull, it should be more black somehow. But I have no idea what to do about it...
And what would be a good strategy to "catch" the windows/chrome-stuff in Gimp? I tried magic-thing-selector, but that didn't get me what I wanted. Some outline, I could apply a brush or sth onto. What would be the word for that? (I wouldn't want to paint it with my shivering hands on the mouse...) :)

oh, concerning the greymap and the chrome windows -
Then copy that contour to the greymap and make it fully opaque, leaving the rest with the current level of transparency.

That would mean, I would have to cut it out of the opaque background to get it fully opaque - right?
Don't hesitate to let me know if I'm incorrect or just annoying! As long as you do it gently! :)
Debian stable 64bit - i7 8x2.8GHz - 20GB RAM - GeForce GTS 450
Citation II
User avatar
chris_blues
Retired
 
Posts: 1577
Joined: Mon May 03, 2010 2:30 pm
Location: claws of real life
Callsign: chris_blues
Version: GIT
OS: Debian stable 64

Re: Glossy effect for Citation II livery?

Postby i4dnf » Thu Jan 06, 2011 2:08 pm

For most of them you could select the window(s) with the magickwand (use a low threshold maybe 16), then go to slect->grow use 3 or 4 as the value, then fill the whole selection . (it doesnt matter if the inside of the windows becomes white, it shouldn't have any impact on their appearance since that's a different object).
For those that are not enclosed by a continuous "perimeter" you might have to get your hands dirty :P.
i4dnf
Retired
 
Posts: 743
Joined: Wed Sep 09, 2009 8:17 am
Location: LRBS
Callsign: YR-I4D
Version: GIT
OS: Gentoo Linux ~amd64

Re: Glossy effect for Citation II livery?

Postby HHS » Thu Jan 06, 2011 2:12 pm

I didn't looked into yet, but you don't need to desaturate the cubemap.
The cubemap is more or less a replacement for the environment to be reflected. So instead you should play with the greymap, and/ or refl_correction.

There is one reason why it doesn't look that black:
I can see a strong specular effect which overlays the black. That's why it doesn't look that black
Up, up and away
User avatar
HHS
 
Posts: 3625
Joined: Thu Jul 19, 2007 9:09 am
Version: GIT

PreviousNext

Return to Liveries

Who is online

Users browsing this forum: No registered users and 1 guest