185
edits
(→Identifying an object: forgot to add xml header tags to start xml files) |
m (→Identifying an object: switch to <syntaxhighlight lang="xml"> instead of freeform) |
||
Line 59: | Line 59: | ||
* <object-name></object-name> | * <object-name></object-name> | ||
</small> | </small> | ||
<syntaxhighlight lang="xml"> | |||
<?xml version="1.0"?> | |||
<PropertyList> | |||
<model> | |||
<!-- load and name the object model --> | |||
<path>Lights/Models/beacon.ac</path> | |||
<nopreview/> | |||
<object-name>Beacon_RED</object-name> | |||
</model> | |||
<animation> | |||
<!-- set the size of the object model --> | |||
<type>scale</type> | |||
<object-name>Beacon_RED</object-name> | |||
<x-offset>2.0</x-offset> | |||
<y-offset>2.0</y-offset> | |||
<z-offset>2.0</z-offset> | |||
</animation> | |||
<animation> | |||
<!-- set the size of the object model based on distance --> | |||
<!-- at "ind" units (meters?) distance, the size of the object will be multiplied by "dep" --> | |||
<type>dist-scale</type> | |||
<object-name>Beacon_Red</object-name> | |||
<interpolation> | |||
<entry><ind> 0</ind><dep> 1</dep></entry> | |||
<entry><ind> 300</ind><dep> 4</dep></entry> | |||
<entry><ind> 1500</ind><dep> 8</dep></entry> | |||
</interpolation> | |||
</animation> | |||
<effect> | |||
<inherits-from>Lights/Effects/beacon</inherits-from> | |||
<object-name>Beacon_RED</object-name> | |||
</effect> | |||
</PropertyList> | |||
</syntaxhighlight> | |||
Line 100: | Line 103: | ||
</small> | </small> | ||
<syntaxhighlight lang="xml"> | |||
<?xml version="1.0"?> | |||
<PropertyList> | |||
<!-- Load and position the Beacon Light model --> | |||
<!-- Position is in meters from model's center coordinates, 0,0,0 --> | |||
<model> | |||
<path>Lights/beacon-object.xml</path> | |||
<offsets> | |||
<x-m> 0.0000</x-m> | |||
<y-m> 0.0000</y-m> | |||
<z-m> 4.9500</z-m> | |||
</offsets> | |||
</model> | |||
</PropertyList> | |||
</syntaxhighlight> | |||
<!-- The next part to be added should show how to load an .ac file that has multiple objects named in it and how to access those objects individually. --> | <!-- The next part to be added should show how to load an .ac file that has multiple objects named in it and how to access those objects individually. --> |
edits