I am not familiar with devel in flightgear, to whom/forum should I send this patch?
PS: YYYYYYYIIIIIIIHAAAAAAAA-->
~/.fgfs/Aircraft/org.flightgear.fgaddon/Aircraft/SpaceShuttle
Something weird occurred, I met again the 90 degrees offset in star tracking today,
It takes a few hours more or less before I notice, but here we go (digital gauge on RCS oxyd):
Thorsten, what is the darkmap for and how is it used. I am getting lots of specular lighting on the osm-kit with the bay doors closed and no bay light on. I don't get that on the rms and they both appear to be set up the same?
if (darkmap_enabled == 1)
{
diffuse_reduction = mix(1.0,lightmapTexel.a, darkmap_factor);
light_diffuse.rgb = light_diffuse.rgb * diffuse_reduction;
}
Also the shadow cast from the lightmaps is not very noticible yet you can see a good deal of shadow definition in the light map.
In star tracking specifically, or in tracking generally (as we've learned the hard way, this is not necessarily the same)?
I'm not sure why we don't kill the specular channel - maybe it was never required so far? But we ought to do that as well.
Last time I checked here, it seemed like a massive emission animation was still on, so there was virtually no shading.
modulated by the lightmap alpha channel
<?xml version="1.0" encoding="utf-8"?>
<PropertyList>
<name>oms-kit</name>
<inherits-from>Effects/space-combined</inherits-from>
<parameters>
<lightmap-enabled type="int">1</lightmap-enabled>
<lightmap-multi type="int">1</lightmap-multi>
<lightmap-factor type="float" n="0"><use>/sim/systems/various/payload-bay-fwd-intensity</use></lightmap-factor>
<lightmap-color type="vec3d" n="0"> 1.0 1.0 1.0 </lightmap-color>
<lightmap-factor type="float" n="1"><use>/sim/systems/various/payload-bay-mid-intensity</use></lightmap-factor>
<lightmap-color type="vec3d" n="1"> 1.0 1.0 1.0 </lightmap-color>
<lightmap-factor type="float" n="2"><use>/sim/systems/various/payload-bay-aft-intensity</use></lightmap-factor>
<lightmap-color type="vec3d" n="2"> 1.0 1.0 1.0 </lightmap-color>
<lightmap-factor type="float" n="3">0.0</lightmap-factor>
<lightmap-color type="vec3d" n="3"> 1.0 1.0 1.0 </lightmap-color>
<darkmap-enabled type="int">1</darkmap-enabled>
<darkmap-factor type="float"><use>/sim/systems/various/pb-door-opening-fraction</use></darkmap-factor>
<texture n="3">
<image>Aircraft/SpaceShuttle/Models/PayloadBay/OMS-KIT/oms_kit_lm.png</image>
<type>2d</type>
<filter>linear-mipmap-linear</filter>
<wrap-s>clamp</wrap-s>
<wrap-t>clamp</wrap-t>
<internal-format>normalized</internal-format>
</texture>
</parameters>
</PropertyList>
<?xml version="1.0" encoding="utf-8"?>
<PropertyList>
<name>shuttle-rms</name>
<inherits-from>Effects/space-combined</inherits-from>
<parameters>
<lightmap-enabled type="int">1</lightmap-enabled>
<lightmap-multi type="int">1</lightmap-multi>
<lightmap-factor type="float" n="0"><use>/sim/systems/various/payload-bay-fwd-intensity</use></lightmap-factor>
<lightmap-color type="vec3d" n="0"> 1.0 1.0 1.0 </lightmap-color>
<lightmap-factor type="float" n="1"><use>/sim/systems/various/payload-bay-mid-intensity</use></lightmap-factor>
<lightmap-color type="vec3d" n="1"> 1.0 1.0 1.0 </lightmap-color>
<lightmap-factor type="float" n="2"><use>/sim/systems/various/payload-bay-aft-intensity</use></lightmap-factor>
<lightmap-color type="vec3d" n="2"> 1.0 1.0 1.0 </lightmap-color>
<lightmap-factor type="float" n="3">0.0</lightmap-factor>
<lightmap-color type="vec3d" n="3"> 1.0 1.0 1.0 </lightmap-color>
<darkmap-enabled type="int">1</darkmap-enabled>
<darkmap-factor type="float"><use>/sim/systems/various/pb-door-opening-fraction</use></darkmap-factor>
<texture n="3">
<image>Aircraft/SpaceShuttle/Models/PayloadBay/rms_lightmap.png</image>
<type>2d</type>
<filter>linear-mipmap-linear</filter>
<wrap-s>clamp</wrap-s>
<wrap-t>clamp</wrap-t>
<internal-format>normalized</internal-format>
</texture>
</parameters>
</PropertyList>
osgDB ac3d reader: could not find texture "osm-kit.png"
osgDB ac3d reader: could not find texture "osm-kit.png"
osgDB ac3d reader: could not find texture "osm-kit.png"
Users browsing this forum: No registered users and 3 guests