Board index FlightGear Development Aircraft Cockpit development

strange lightmap effects

Discussion about creating 2d and 3d cockpits.

strange lightmap effects

Postby legoboyvdlp » Mon Dec 17, 2018 9:05 pm

Image

Hi,

I'll provide more details later but if anyone has seen this before and knows how to fix this...?

Everything looks exactly the same -

Code: Select all
<effect>
      <inherits-from>Aircraft/IDG-A32X/Models/Effects/clock</inherits-from>
      <object-name>clock</object-name>
      <object-name>clock.001</object-name>
      <object-name>clock_body</object-name>
      <object-name>clock_glare</object-name>
   </effect>
   
   <effect>
      <inherits-from>Aircraft/IDG-A32X/Models/Effects/clock-glare</inherits-from>
      <object-name>clock_glare</object-name>
   </effect>


Code: Select all
<PropertyList>
    <name>panel</name>
    <inherits-from>Effects/model-interior</inherits-from>
    <parameters>
        <lightmap-enabled type="int">1</lightmap-enabled>
        <lightmap-factor type="float" n="0"><use>/controls/lighting/panel-light</use></lightmap-factor>
        <lightmap-color type="vec3d" n="0">1.0 1.0 1.0</lightmap-color>
        <texture n="3">
            <image>Aircraft/IDG-A32X/Models/Effects/clock.png</image>
            <filter>linear-mipmap-linear</filter>
            <wrap-s>clamp</wrap-s>
            <wrap-t>clamp</wrap-t>
            <internal-format>normalized</internal-format>
        </texture>
      <irradiance-map-type type="int">2</irradiance-map-type>
      <irradiance-map-strength type="float">0.1</irradiance-map-strength>
      <texture n="4">
      <type>cubemap</type>
         <images>
            <positive-x>Models/Effects/res/white.png</positive-x>
            <negative-x>Models/Effects/res/white.png</negative-x>
            <positive-y>Models/Effects/res/white.png</positive-y>
            <negative-y>Models/Effects/res/white.png</negative-y>
            <positive-z>Models/Effects/res/white.png</positive-z>
            <negative-z>Models/Effects/res/white.png</negative-z>
         </images>
      </texture>
       <!--
       the cube center must be the same as the camera x,y,z in blend
      -->
      <opacity-cube-center type="vec3d" n="0"> 0.207344 0.0 0.797276</opacity-cube-center>
      <opacity-cube-scale type="vec3d" n="0"> 0.672 0.672 0.672</opacity-cube-scale>
      <opacity-cube-angle type="float">0.0</opacity-cube-angle>
    </parameters>
</PropertyList>


Code: Select all
<PropertyList>
    <name>panel</name>
    <inherits-from>Effects/model-interior</inherits-from>
    <parameters>
        <lightmap-enabled type="int">1</lightmap-enabled>
        <lightmap-factor type="float" n="0"><use>/controls/lighting/panel-light</use></lightmap-factor>
        <lightmap-color type="vec3d" n="0">1.0 1.0 1.0</lightmap-color>
        <texture n="3">
            <image>Aircraft/IDG-A32X/Models/Effects/clock-glare.png</image>
            <filter>linear-mipmap-linear</filter>
            <wrap-s>clamp</wrap-s>
            <wrap-t>clamp</wrap-t>
            <internal-format>normalized</internal-format>
        </texture>
      <irradiance-map-type type="int">2</irradiance-map-type>
      <irradiance-map-strength type="float">0.1</irradiance-map-strength>
      <texture n="4">
      <type>cubemap</type>
         <images>
            <positive-x>Models/Effects/res/white.png</positive-x>
            <negative-x>Models/Effects/res/white.png</negative-x>
            <positive-y>Models/Effects/res/white.png</positive-y>
            <negative-y>Models/Effects/res/white.png</negative-y>
            <positive-z>Models/Effects/res/white.png</positive-z>
            <negative-z>Models/Effects/res/white.png</negative-z>
         </images>
      </texture>
       <!--
       the cube center must be the same as the camera x,y,z in blend
      -->
      <opacity-cube-center type="vec3d" n="0"> 0.207344 0.0 0.797276</opacity-cube-center>
      <opacity-cube-scale type="vec3d" n="0"> 0.672 0.672 0.672</opacity-cube-scale>
      <opacity-cube-angle type="float">0.0</opacity-cube-angle>
    </parameters>
</PropertyList>


yet the clock is lit properly, while the overlay is seemingly not.

The actual lightmaps:

Image

Image

Edit... I fixed it - looks like some faces were in clock_glare that should have been in clock_body or vice-versa :D
Last edited by legoboyvdlp on Mon Dec 17, 2018 9:18 pm, edited 1 time in total.
User avatar
legoboyvdlp
 
Posts: 7071
Joined: Sat Jul 26, 2014 1:28 am
Callsign: YV-LEGO
Version: 2018.3.1
OS: Windows 10 HP

Return to Cockpit development

Who is online

Users browsing this forum: RobAndrew and 1 guest