Compositor: Difference between revisions

Jump to navigation Jump to search
1,021 bytes removed ,  18 June 2020
no edit summary
No edit summary
No edit summary
Line 605: Line 605:


* Bring back distortion correction.
* Bring back distortion correction.
* Some kind of versioning system to be able to make breaking changes in the future if/when the compositor is updated in any significant way, without people having to manually update their configs.
* Rework node masks ({{simgear file|simgear/scene/util/RenderConstants.hxx}}). Each node type should have its own node mask bit, e.g. trees should only have <tt>TREE_BIT</tt> enabled, the main aircraft should only have <tt>AIRCRAFT_BIT</tt> enabled etc. This allows the Compositor cameras to properly filter scene graph nodes based on the cull mask. Shadow cameras can then choose what geometry they render dynamically.
* Rework node masks ({{simgear file|simgear/scene/util/RenderConstants.hxx}}). Each node type should have its own node mask bit, e.g. trees should only have <tt>TREE_BIT</tt> enabled, the main aircraft should only have <tt>AIRCRAFT_BIT</tt> enabled etc. This allows the Compositor cameras to properly filter scene graph nodes based on the cull mask. Shadow cameras can then choose what geometry they render dynamically.
* Automatically calculate light source attenuation based on radius and radius based on attenuation.
* Automatically calculate light source attenuation based on radius and radius based on attenuation.
Line 614: Line 613:
** [[About dialog]]
** [[About dialog]]
** Rendering dialog
** Rendering dialog
* Separate [[Developing using CMake|cmake build target (binary)]] for a [http://download.flightgear.org/builds/nightly/ "preview" binary] with the [[Compositor]] enabled to get more testing/feedback and contributions from early-adopters <ref>https://sourceforge.net/p/flightgear/mailman/message/36977221/</ref> <ref>https://sourceforge.net/p/flightgear/mailman/message/36954518/</ref> <ref>https://sourceforge.net/p/flightgear/mailman/message/36679177/</ref> <ref>https://sourceforge.net/p/flightgear/mailman/message/37000737/</ref> {{Progressbar|90}}


== Known Issues ==
== Known Issues ==


* Setting a buffer scale factor different from 1.0 and rendering to it might not scale the splash screen correctly.
* Setting a buffer scale factor different from 1.0 and rendering to it might not scale the splash screen correctly.
* There is some kind of moiré pattern at certain sunlight angles (specially at dusk/dawn). Shadow acne.
* Spotlights sometimes disappear at certain view angles.
* Spotlights sometimes disappear at certain view angles.
* Some effects might not be ported to ALS completely. Feel free to play around with the shader settings to get something that works.
* CRT effect as a default Effect. Look into reflect.eff
* CRT effect as a default Effect. Look into reflect.eff
* osgText doesn't work. See the 777 displays as well as some EC135 instruments. osgText doesn't use Effects so they are being rendered with incorrect depth.
* osgText doesn't work. See the 777 displays as well as some EC135 instruments. osgText doesn't use Effects so they are being rendered with incorrect depth.
* Reloading shaders doesn't work.
* Random buildings don't use correct depth.
* Random buildings don't use correct depth.


343

edits

Navigation menu