ALS technical notes: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
Line 1,294: Line 1,294:


<b>Important note:</b> Currently (May 2015) the effect does not deal gracefully with child models included into the main model with offsets and/or rotations because these introduce a different coordinate system in which the shadow does not match. The general idea of a code solution is known, but not implemented. Right now this can only be addressed by explicitly positioning child models in the *.ac file and not using any offsets when including them.
<b>Important note:</b> Currently (May 2015) the effect does not deal gracefully with child models included into the main model with offsets and/or rotations because these introduce a different coordinate system in which the shadow does not match. The general idea of a code solution is known, but not implemented. Right now this can only be addressed by explicitly positioning child models in the *.ac file and not using any offsets when including them.
=== Shadow Mapping ===
Shadow mapping is disabled by default for objects using the model-interior Effect. The previously mentioned technique of using a cubemap to render shadows is much cheaper than shadow mapping, but it suffers from perspective errors and the shadows can look wrong in some cases. If your aircraft does not use cubemap shadows and instead wants to rely on shadow mapping, you can add the following parameter to the <tt>predicate</tt> section of your Effect:
<syntaxhighlight lang="xml">
<shadow-mapping-enabled type="bool">true</shadow-mapping-enabled>
</syntaxhighlight>


=== ALS flashlight ===
=== ALS flashlight ===
343

edits

Navigation menu