Blender Git Commit Log
Git Commits -> Revision 7afacb6
Revision 7afacb6 by Benoit Bolsee (master) July 15, 2008, 20:05 (GMT) |
BGE patch: DUPLIGROUP option supported in BGE. Blender duplicates groups in the 3D view at the location of objects having the DUPLIGROUP option set. This feature is now supported in the BGE: the groups will be instantiated as in the 3D view when the scene is converted. This is useful to populate a scene with multiple enemies without having to actually duplicate the objects in the blend file. Notes: * The BGE applies the same criteria to instantiate the group as Blender to display them: if you see the group in the 3D view, it will be instantiated in the BGE. * Groups are instantiated as if the object having the DUPLIGROUP option (usually an empty) executed an AddObject actuator on the top objects of the group (objects without parent). * As a result, only intra-group parent relationship is supported: the BGE will not instantiate objects that have parents outside the group. * Intra-group logic bricks connections are preserved between the duplicated objects, even between the top objects of the group. * For best result, the state engine of the objects in the group should be self-contained: logic bricks should only have intra-group connections. Use messages to communicate with state engines outside the group. * Nested groups are supported: if one or more objects in the group have the DUPLIGROUP option set, the corresponding groups will be instantiated at the corresponding position and orientation. * Nested groups are instantiated as separate groups, not as one big group. * Linked groups are supported as well as groups containing objects from the active layers. * There is a difference in the way Blender displays the groups in the 3D view and how BGE instantiates them: Blender does not take into account the parent relationship in the group and displays the objects as if they were all children of the object having the DUPLIGROUP option. That's correct for the top objects of the group but not for the children. Hence the orientation of the children objects may be different in the BGE. * An AddGroup actuator will be added in a future release. |
Commit Details:
Full Hash: 7afacb6ea86ffd3de726f93086ba3fedca428352
SVN Revision: 15592
Parent Commit: e433719
Lines Changed: +361, -20
5 Modified Paths:
/source/gameengine/Converter/BL_BlenderDataConversion.cpp (+227, -16) (Diff)
/source/gameengine/Ketsji/KX_GameObject.h (+8, -0) (Diff)
/source/gameengine/Ketsji/KX_RadarSensor.cpp (+1, -4) (Diff)
/source/gameengine/Ketsji/KX_Scene.cpp (+124, -0) (Diff)
/source/gameengine/Ketsji/KX_Scene.h (+1, -0) (Diff)
/source/gameengine/Ketsji/KX_GameObject.h (+8, -0) (Diff)
/source/gameengine/Ketsji/KX_RadarSensor.cpp (+1, -4) (Diff)
/source/gameengine/Ketsji/KX_Scene.cpp (+124, -0) (Diff)
/source/gameengine/Ketsji/KX_Scene.h (+1, -0) (Diff)