Blender Git Loki

Git Commits -> Revision d95a109

Revision d95a109 by Benoit Bolsee (master)
May 14, 2009, 13:47 (GMT)
BGE modifier: generate correct physic shape, share static derived mesh, share display list.

This commit completes the support for modifiers in the BGE.
- The physic shape is generated according to the derived mesh.
This is true for all types of shapes and all types of
objects except soft body.
- Optimization for static derived mesh (mesh with modifiers
but no armature and no shape keys). Replicas will share
the derived mesh and the display list: less memory and
faster rendering. With this optimization, the static
derived mesh will render as fast as if the modifiers were
applied.

Known Limits:
- Sharing of mesh and display list is only possible between
in-game replicas or dupligroup. If you want to instantiate
multiple objects with modifiers, use dupligroup to ensure
best memory and GPU utilization.
- rayCast() will interact with the derived mesh as follow:
Hit position and hit normal are the real values according
to the derived mesh but the KX_PolyProxy object refers to
the original mesh. You should use it only to retrieve the
material.
- Dynamic derived mesh have very poor performance:
They use direct openGL calls for rendering (no support
for display list and vertex array) and they dont't share
the derived mesh memory. Always apply modifiers on dynamic
mesh for best performance.
- Time dependent modifiers are not supported.
- Modifiers are not supported for Bullet soft body.

Commit Details:

Full Hash: d95a10999052ad308599cb0fbbe7ed4f59870c9c
SVN Revision: 20200
Parent Commit: 0035345
Lines Changed: +359, -229

20 Modified Paths:

/projectfiles_vc9/gameengine/physics/PHY_Physics/PHY_Bullet/PHY_Bullet.vcproj (+6, -6) (Diff)
/source/gameengine/Converter/BL_BlenderDataConversion.cpp (+60, -42) (Diff)
/source/gameengine/Converter/BL_MeshDeformer.cpp (+9, -0) (Diff)
/source/gameengine/Converter/BL_MeshDeformer.h (+1, -1) (Diff)
/source/gameengine/Converter/BL_ModifierDeformer.cpp (+45, -28) (Diff)
/source/gameengine/Converter/BL_ModifierDeformer.h (+5, -0) (Diff)
/source/gameengine/Converter/BL_ShapeDeformer.cpp (+8, -1) (Diff)
/source/gameengine/Converter/BL_ShapeDeformer.h (+1, -0) (Diff)
/source/gameengine/Converter/BL_SkinDeformer.cpp (+27, -18) (Diff)
/source/gameengine/Converter/BL_SkinDeformer.h (+2, -0) (Diff)
/source/gameengine/Ketsji/KX_ConvertPhysicsObject.h (+2, -0) (Diff)
/source/gameengine/Ketsji/KX_ConvertPhysicsObjects.cpp (+25, -26) (Diff)
/source/gameengine/Physics/Bullet/CcdPhysicsController.cpp (+113, -87) (Diff)
/source/gameengine/Physics/Bullet/CcdPhysicsController.h (+3, -2) (Diff)
/source/gameengine/Physics/Bullet/CMakeLists.txt (+3, -0) (Diff)
/source/gameengine/Physics/Bullet/Makefile (+2, -0) (Diff)
/source/gameengine/Physics/Bullet/SConscript (+3, -0) (Diff)
/source/gameengine/Rasterizer/RAS_Deformer.h (+9, -1) (Diff)
/source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_ListRasterizer.cpp (+30, -16) (Diff)
/source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_ListRasterizer.h (+5, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021