ALS technical notes: Difference between revisions

Jump to navigation Jump to search
Line 386: Line 386:


[[File:Chute seq01.jpg|300px|Drag chute separation sequence 1]] [[File:Chute seq03.jpg|300px|Drag chute separation sequence 2]]
[[File:Chute seq01.jpg|300px|Drag chute separation sequence 1]] [[File:Chute seq03.jpg|300px|Drag chute separation sequence 2]]
=== Coordinate system ===
The shader assumes that the 3d mesh of the chute is oriented in a particular coordinate system. The z-axis (upward) should extend from the zero point where the various ropes come together to the canopy above through the center of the model. The canopy of the chute should therefore roughly be in the xy plane.
To position the chute correctly with the aircraft, you then need to use appropriate offsets and rotations when loading.
=== Effect definition for model ===
To define the effect to apply to the model (as referenced in the ''effect'' section in the model XML) you need to create ''mychute.eff'' as below. The ''.eff'' file defines the parameters that are passed into the shader and it is these that control the behavior.
<syntaxhighlight lang="xml">
<?xml version="1.0" encoding="utf-8"?>
<PropertyList>
    <name>mychute</name>
    <inherits-from>Effects/chute</inherits-from>
    <parameters>
        <chute_force><use>Aircraft/MyAircraft/myforce</use></chute_force>
<chute_projection_z>0.0</chute_projection_z>
<chute_fold>0.0</chute_fold>
<chute_bend>0.0</chute_bend>
    </parameters>
</PropertyList>
</syntaxhighlight>


== ALS glass effect ==
== ALS glass effect ==
1,360

edits

Navigation menu