From fc66b3f2efcb5b7579f06c1966900b2ecf3c1310 Mon Sep 17 00:00:00 2001 From: Benoit Bolsee Date: Sun, 23 Jan 2011 17:17:21 +0000 Subject: BGE: support modifiers without mapping to original mesh both graphically and physically, fixes bug #24942 and #25286. Support for physics is done by skiping the modifiers that don't support mapping to original mesh. This mapping is required to report the hit polygon to the application by the rayCast() function. Support for graphics is done by using the same render function that blender uses for the 3D view. This guantees equal result. Limitation: there is still a known bug if all these conditions are met: - Display list enabled - Old tex face with a several textures mapped to the same material - no armature or shape keys - active modifiers In this case, only a part of the mesh will be rendered with the wrong texture. To avoid this bug, use the GLSL materials or make sure to have 1 material=1 texture in your old tex face objects. --- source/gameengine/Rasterizer/RAS_IPolygonMaterial.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source/gameengine/Rasterizer/RAS_IPolygonMaterial.cpp') diff --git a/source/gameengine/Rasterizer/RAS_IPolygonMaterial.cpp b/source/gameengine/Rasterizer/RAS_IPolygonMaterial.cpp index 0c81d7d8274..00f1f5f2848 100644 --- a/source/gameengine/Rasterizer/RAS_IPolygonMaterial.cpp +++ b/source/gameengine/Rasterizer/RAS_IPolygonMaterial.cpp @@ -208,6 +208,11 @@ Material *RAS_IPolyMaterial::GetBlenderMaterial() const return NULL; } +Image *RAS_IPolyMaterial::GetBlenderImage() const +{ + return NULL; +} + Scene* RAS_IPolyMaterial::GetBlenderScene() const { return NULL; -- cgit v1.2.3