Board index FlightGear Development Effects and shaders

Effect red with reflections ...

An exciting "new" option in FlightGear, that includes reflections, lightmaps, the particle system etc.. A lot is yet to be discovered/implemented!

Effect red with reflections ...

Postby abassign » Wed Apr 27, 2016 12:25 am

Image

I would use the metal-chrome effect, however, with the red color and not the typical light gray of this effect. It's possible ?

My code is:

Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<PropertyList>
  <name>metal-chrome</name>
  <inherits-from>Effects/model-combined</inherits-from>
  <parameters>
    <!-- Reflection -->
    <reflection-enabled type="int"> 1 </reflection-enabled>
    <reflect-map-enabled type="int"> 1 </reflect-map-enabled>
    <reflection-correction type="float"> 0.0 </reflection-correction>
    <reflection-dynamic type="int"> 1 </reflection-dynamic>
    <texture n="4">
      <image>Aircraft/Piaggio-PC7/Models/Effects/Red-Metal/Piaggio-PC7-Red.png</image>
      <filter>linear-mipmap-linear</filter>
      <wrap-s>clamp</wrap-s>
      <wrap-t>clamp</wrap-t>
      <internal-format>normalized</internal-format>
    </texture>
    <reflection-fresnel type="float"> 0.0 </reflection-fresnel>
    <reflection-rainbow type="float"> 0.0 </reflection-rainbow>
    <reflection-noise type="float"> 0.0 </reflection-noise>
    <!-- WARNING: Do not edit below this line -->
    <!-- TRANSPARENCY INCLUDE -->
    <rendering-hint>transparent</rendering-hint>
    <transparent>true</transparent>
    <render-bin>
      <bin-number>10</bin-number>
      <bin-name>DepthSortedBin</bin-name>
    </render-bin>
    <!-- END TRANSPARENCY INCLUDE -->
  </parameters>
  <!--    Add normalmap include here if needed -->
</PropertyList>
Developer of the program https://wiki.flightgear.org/Julia_photoscenery_generator
FDM developer of the G91R1B aircraft https://wiki.flightgear.org/FIAT_G91R1B
JSBSim collaborator
abassign
 
Posts: 949
Joined: Mon Feb 27, 2012 6:09 pm
Location: Italy (living 5 Km from airport LIME)
Callsign: I-BASSY
Version: 2020.4
OS: Ubuntu 20.10

Re: Effect red with reflections ...

Postby Necolatis » Wed Apr 27, 2016 8:56 am

Yes, use red color on the texture.

By the way, I find it strange that you have transparency set to true, as you should really use another effect if you need transparency (instead of the model-combined).
"Airplane travel is nature's way of making you look like your passport photo."
— Al Gore
User avatar
Necolatis
 
Posts: 2238
Joined: Mon Oct 29, 2012 1:40 am
Location: EKOD
Callsign: Leto
IRC name: Neco
Version: 2020.3.19
OS: Windows 10


Return to Effects and shaders

Who is online

Users browsing this forum: No registered users and 3 guests