From: <sv...@ww...> - 2006-04-21 05:00:00
|
Author: mkrose Date: 2006-04-20 21:59:54 -0700 (Thu, 20 Apr 2006) New Revision: 1903 Added: trunk/csp/data/models/aircraft/f16/f16dj-shadow.osg trunk/csp/data/models/aircraft/m2k/m2k-shadow.osg Modified: trunk/csp/cspsim/DynamicObject.cpp trunk/csp/cspsim/ObjectModel.cpp trunk/csp/cspsim/ObjectModel.h trunk/csp/cspsim/SceneModel.cpp trunk/csp/cspsim/SceneModel.h trunk/csp/cspsim/VirtualScene.cpp trunk/csp/data/xml/vehicles/aircraft/f16dj/model.xml trunk/csp/data/xml/vehicles/aircraft/m2k/model.xml Log: Add support for planar ground shadows of dynamic objects. To add a ground shadow to an object, create a 2D model of the shadow (black with alpha 0.6) and set the ground_shadow_path attribute of the ObjectModel. For example, see the m2k and f16dj xml changes in this revision. Add ground shadows for the f16dj and m2k. Fix reversed animations of the m2k elevrons. Split the terrain, flat static objects, and shadows into separate render bins to ensure proper render order. Browse at: https://www.zerobar.net/viewcvs/viewcvs.cgi?view=rev&rev=1903 Diff omitted (26985 bytes). |