Ashlar checks / tooling (push) Successful in 5s
- Shoulder view, auto shoulder switch, standing preview, deferred preview rotation, move 360, smooth view change and [Game] smooth movement are on by default. - Collision ease-out: the camera still snaps in on collision but eases back out (0.15 s half-life, 60 u/s minimum speed). - Aim mode: with a ranged weapon or a spell readied in third person the view stays over the shoulder, moves closer and narrows the FOV. Camera interface v2 adds getAimWeight and enable/disable functions. - Pure math in camera/ease.lua with unit tests; SCENARIO=camera with PASS/FAIL checks; docs in docs/ashlar/CAMERA.md. - ashlar-run.sh deletes stored Lua settings before each run so changed defaults are tested. Closes #29 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
29 lines
2.4 KiB
Plaintext
29 lines
2.4 KiB
Plaintext
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Ashlar mantle scenario test ledge. Written for Ashlar, CC0. -->
|
|
<COLLADA xmlns="http://www.collada.org/2005/11/COLLADASchema" version="1.4.1">
|
|
<asset><unit meter="1.0" name="meter"/><up_axis>Z_UP</up_axis></asset>
|
|
<library_effects><effect id="ledge-fx"><profile_COMMON><technique sid="common"><lambert>
|
|
<emission><color>0.25 0.22 0.2 1.0</color></emission>
|
|
<diffuse><color>0.55 0.5 0.45 1.0</color></diffuse>
|
|
</lambert></technique></profile_COMMON></effect></library_effects>
|
|
<library_materials><material id="ledge-mat"><instance_effect url="#ledge-fx"/></material></library_materials>
|
|
<library_geometries><geometry id="ledge-mesh"><mesh>
|
|
<source id="ledge-pos"><float_array id="ledge-pos-array" count="72">-80 -80 80 80 -80 80 80 80 80 -80 80 80 -80 -80 -40 -80 80 -40 80 80 -40 80 -80 -40 80 -80 -40 80 80 -40 80 80 80 80 -80 80 -80 -80 -40 -80 -80 80 -80 80 80 -80 80 -40 -80 80 -40 -80 80 80 80 80 80 80 80 -40 -80 -80 -40 80 -80 -40 80 -80 80 -80 -80 80</float_array>
|
|
<technique_common><accessor source="#ledge-pos-array" count="24" stride="3"><param name="X" type="float"/><param name="Y" type="float"/><param name="Z" type="float"/></accessor></technique_common></source>
|
|
<source id="ledge-nrm"><float_array id="ledge-nrm-array" count="18">0 0 1 0 0 -1 1 0 0 -1 0 0 0 1 0 0 -1 0</float_array>
|
|
<technique_common><accessor source="#ledge-nrm-array" count="6" stride="3"><param name="X" type="float"/><param name="Y" type="float"/><param name="Z" type="float"/></accessor></technique_common></source>
|
|
<vertices id="ledge-verts"><input semantic="POSITION" source="#ledge-pos"/></vertices>
|
|
<triangles count="12" material="ledge-tri">
|
|
<input semantic="VERTEX" source="#ledge-verts" offset="0"/>
|
|
<input semantic="NORMAL" source="#ledge-nrm" offset="1"/>
|
|
<p>0 0 1 0 2 0 0 0 2 0 3 0 4 1 5 1 6 1 4 1 6 1 7 1 8 2 9 2 10 2 8 2 10 2 11 2 12 3 13 3 14 3 12 3 14 3 15 3 16 4 17 4 18 4 16 4 18 4 19 4 20 5 21 5 22 5 20 5 22 5 23 5</p>
|
|
</triangles>
|
|
</mesh></geometry></library_geometries>
|
|
<library_visual_scenes><visual_scene id="scene"><node id="Ledge" name="Ledge" type="NODE">
|
|
<instance_geometry url="#ledge-mesh"><bind_material><technique_common>
|
|
<instance_material symbol="ledge-tri" target="#ledge-mat"/>
|
|
</technique_common></bind_material></instance_geometry>
|
|
</node></visual_scene></library_visual_scenes>
|
|
<scene><instance_visual_scene url="#scene"/></scene>
|
|
</COLLADA>
|