Board index FlightGear Development Aircraft Cockpit development

landing gear knob bright during its operation

Discussion about creating 2d and 3d cockpits.

landing gear knob bright during its operation

Postby abassign » Sun Jan 14, 2018 10:50 am

I'm trying to make the landing gear knob bright during its operation, but I'm noticing a problem:
The lever has a knob with a surface that would be nice to keep visible when it is illuminated by the lamp placed inside it. If you operate during the day, no problem, but if it goes into a shadow zone, or if it is operated at night, the particular pattern of the knob is no longer visible. It would be nice to keep the visibility of the pattern when the knob is lit. According to you it is possible to "light" only the knob with an external light so as to maintain the pattern and simulate this effect. This would also be convenient for other lighting effects.

Thanks for your help

Image

This movie explain the problem, when the knob is in the lower position ...

https://youtu.be/n7Rm7eqDzSY
abassign
 
Posts: 810
Joined: Mon Feb 27, 2012 5:09 pm
Location: Italy (living 5 Km from airport LIME)
Callsign: I-BASSY
Version: 2018.3
OS: Linux Mint 19. x

Re: landing gear knob bright during its operation

Postby Thorsten » Sun Jan 14, 2018 1:14 pm

-> lightmap rather than emissive animation - or use the irradiance map function with a high residual ambience, it also preserves 3d structures
Thorsten
 
Posts: 11136
Joined: Mon Nov 02, 2009 8:33 am

Re: landing gear knob bright during its operation

Postby abassign » Tue Jan 16, 2018 6:54 pm

Thorsten wrote in Sun Jan 14, 2018 1:14 pm:-> lightmap rather than emissive animation - or use the irradiance map function with a high residual ambience, it also preserves 3d structures


Image

I want to thank the advice you wrote above, which I applied to our. cockpit, this is the result:

https://youtu.be/z8xt0fwTIAs

Video test for irradiance map which has improved the visualization of the objects present in the scene. The irradiance map, in addition to allowing the management of the shadows inside the cockpit, also allows the visual improvement of objects in shadow or dim light area.

Obviously the appetite comes with eating ... so I would like to know if it is possible to vary the intensity of the shadow of the cockpit structures in order to have different effects depending on the cloud cover and the height of the sun.

Thank you
Adriano
abassign
 
Posts: 810
Joined: Mon Feb 27, 2012 5:09 pm
Location: Italy (living 5 Km from airport LIME)
Callsign: I-BASSY
Version: 2018.3
OS: Linux Mint 19. x

Re: landing gear knob bright during its operation

Postby Thorsten » Wed Jan 17, 2018 6:26 am

so I would like to know if it is possible to vary the intensity of the shadow of the cockpit structures in order to have different effects depending on the cloud cover and the height of the sun.


The deepness of the shadows is driven by the balance of ambient and diffuse light and that should be computed automatically by ALS dependent on sun angle, cloud cover above you and haze.

Since the interior of an aircraft might be illuminated by factors which the renderer can't know (residual light from instruments and MFDs for instance, a translucent gas bag above in the case of airships, plasma glow in the case of spacecraft...) there's also a channel where you can specify the desired RGB values yourself and select a (possibly different) irradiance map.

Code: Select all
   <residual-ambience-r type="float">0.0</residual-ambience-r>
   <residual-ambience-g type="float">0.0</residual-ambience-g>
   <residual-ambience-b type="float">0.0</residual-ambience-b>
   <ra-irradiance-map-type type="int">0</ra-irradiance-map-type>
   <ra-irradiance-map-strength type="float">0.0</ra-irradiance-map-strength>


These properties are used 'as is' without any assumption by the renderer, so whatever light changes you put into this channel you have to manage yourself.

The Shuttle also has a custom shader where the whole ambient light in the cabin is computed externally when outside the atmosphere to take care of the mixture of blue Earthlight, white sunlight and black space. This can completely by-pass the normal effect, but I don't recommend doing it for aircraft, neither will I provide support for this one - if you want to go that road, you're on your own.
Thorsten
 
Posts: 11136
Joined: Mon Nov 02, 2009 8:33 am


Return to Cockpit development

Who is online

Users browsing this forum: No registered users and 1 guest