Model-combined effect: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
(Created page with "{{stub}} The '''model-combined effect''' uses the "ubershader" to provide any or all of diffuse, light-map, reflection, bump-mapping and dirt effects on the model on which it...")
 
m (+cat)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{stub}}
{{stub}}


The '''model-combined effect''' uses the "ubershader" to provide any or all of diffuse, light-map, reflection, bump-mapping and dirt effects on the model on which it is applied.


Before this shader was available only one effect at a time could be used.
The '''model-combined effect''' uses the "uber-shader" to provide any or all of diffuse, light-map, reflection, bump-mapping and dirt effects on the model on which it is applied.
 
Before this [[shader]] was available only one effect at a time could be used.


{{caution|
{{caution|
Do '''not''' use in any situation the normal-map enabled effect on objects that are '''not'''
Do '''not''' in any situation use the normal-map enabled effect on objects that are either or both


* completely uv-mapped to a texture,
* Not completely uv-mapped to a texture.
* and/or that texture is not available at runtime.
* Without that texture available at runtime.


The binormal/tangent generator needs the texture information at runtime, failing to find this it crashes, causing a '''segfault''' for FlightGear.}}
FlightGear will crash with a '''segfault''' if the binormal/tangent generator fails to find this texture information at runtime.}}


== When are the effects used ==
== When are the effects used ==
{{note|
Newer versions of the shader do not respond to the quality settings anymore, since there is no real benefit, compared to just turning the shader on and off.
The shader is turned off with ''Model'' slider to the left, turned on with full functionality for any other position of the ''Model'' slider.
The features can be turned on/off as needed for the desired material appearance via configuration of the effect parameters.}}
The effect responds to the quality setting of the ''Model'' slider in the advanced shader configuration, in the following order:
The effect responds to the quality setting of the ''Model'' slider in the advanced shader configuration, in the following order:


Line 30: Line 38:


== Related content ==
== Related content ==
=== Wiki articles ===
* [[FlightGear Newsletter December 2011#Shaders|FlightGear Newsletter December 2011]]
* [[Rembrandt]]
==== Older shaders ====
* [[Howto: Aircraft Reflection Shader|Aircraft reflection shader]]
* [[Howto: Use the normal map effect in aircraft|Normal map]]
* [[Howto: Lightmap|Lightmap]]
=== Readme ===
=== Readme ===
* [https://gitorious.org/fg/fgdata/source/90e83142e2adde47ec98e31b12822972c3e6dd54:Docs/model-combined.eff/README.model-combined.eff README.model-combined.eff]
* {{readme file|model-combined.eff}}
 
=== Source code ===
* {{fgdata file|Effects/model-combined.eff}}
* {{fgdata file|Effects/model-combined-deferred.eff}}
* {{fgdata file|Effects/model-combined-transparent.eff}}


[[Category:Aircraft enhancement]]
[[Category:Aircraft enhancement]]
[[Category:Shaders]]

Latest revision as of 08:55, 25 October 2015

This article is a stub. You can help the wiki by expanding it.


The model-combined effect uses the "uber-shader" to provide any or all of diffuse, light-map, reflection, bump-mapping and dirt effects on the model on which it is applied.

Before this shader was available only one effect at a time could be used.

Caution

Do not in any situation use the normal-map enabled effect on objects that are either or both

  • Not completely uv-mapped to a texture.
  • Without that texture available at runtime.

FlightGear will crash with a segfault if the binormal/tangent generator fails to find this texture information at runtime.

When are the effects used

Note

Newer versions of the shader do not respond to the quality settings anymore, since there is no real benefit, compared to just turning the shader on and off.

The shader is turned off with Model slider to the left, turned on with full functionality for any other position of the Model slider.

The features can be turned on/off as needed for the desired material appearance via configuration of the effect parameters.

The effect responds to the quality setting of the Model slider in the advanced shader configuration, in the following order:

Model slider setting Effects used (if available)
Light-map and dirt Reflection Bump-mapping
Lowest quality Yes No No
Medium quality Yes Yes No
Highest quality Yes Yes Yes

Related content

Wiki articles

Older shaders

Readme

Source code