Talk:HDR Pipeline
I did a test with HDR, but the interior of our FIAT G91R1B looks like this. Of course I hope it's just a matter of code immaturity, although I have to admit that I had the same problem with Rembrandt. The surfaces you see colored are those in which, in the xml, there is an element associated with a texture (a 4x4 px color with .png extension). All the other elements of the G91R1B are colored by the method, much more convenient in terms of speed and performance of the GPU, of direct coloring of the 3D object via XML, for example an object is colored in this way:
<animation> <type> material </type> <object-name> screews_01 (Meshed) </object-name> <object-name> screews_02 (Meshed) </object-name> <diffuse> <red> 0.28 </red> <green> 0.28 </green> <blue> 0.28 </blue> </diffuse> <ambient> <red> 0.15 </red> <green> 0.15 </green> <blue> 0.15 </blue> </ambient> <emission> <red> 0.02 </red> <green> 0.0 </green> <blue> 0.0 </blue> <factor-prop> sim/G91/re_emit/gauge_red_light</factor-prop> </emission> </animation>
Although it is a method, unfortunately, little used in FGFS, it is such an efficient method that it allows me to manage an aircraft containing over 4 million vertices with a decent frame rate. On the other hand, as I had already reported, a similar result (but not as excellent as the one I see in the examples) I obtained through a fictitious lighting made inside the cabin with some code of this type:
<light> <name>canopy-ambient-gray</name> <type>point</type> <position> <x-m>-2.7</x-m> <y-m>0.0</y-m> <z-m>1.2</z-m> </position> <direction> <x>-1.0</x> <y>0.0</y> <z>0.0</z> </direction> <ambient> <r>0.01</r> <g>0.01</g> <b>0.01</b> <a>1</a> </ambient> <diffuse> <r>0.1</r> <g>0.1</g> <b>0.1</b> <a>1</a> </diffuse> <specular> <r>0.4</r> <g>0.4</g> <b>0.4</b> <a>1</a> </specular> <attenuation> <c>1.0</c> <l>0.09</l> <q>0.032</q> </attenuation> <spot-exponent>5</spot-exponent> <spot-cutoff>50</spot-cutoff> <range-m>2</range-m> <dim-factor> <expression> <product> <property>sim/G91/ambient-data/irradiance_light_green</property> <property>sim/G91/configuration/compositor/canopy-ambient-light-dimmer</property> </product> </expression> </dim-factor> </light>
My question is this: With HDR, will you be able to continue coloring without using images? --Abassign (talk) 19:11, 28 July 2021 (UTC)