Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/src/external/bullet/BulletCollision/CollisionDispatch/btInternalEdgeUtility.h @ 8987

Last change on this file since 8987 was 8351, checked in by rgrieder, 14 years ago

Merged kicklib2 branch back to trunk (includes former branches ois_update, mac_osx and kicklib).

Notes for updating

Linux:
You don't need an extra package for CEGUILua and Tolua, it's already shipped with CEGUI.
However you do need to make sure that the OgreRenderer is installed too with CEGUI 0.7 (may be a separate package).
Also, Orxonox now recognises if you install the CgProgramManager (a separate package available on newer Ubuntu on Debian systems).

Windows:
Download the new dependency packages versioned 6.0 and use these. If you have problems with that or if you don't like the in game console problem mentioned below, you can download the new 4.3 version of the packages (only available for Visual Studio 2005/2008).

Key new features:

  • *Support for Mac OS X*
  • Visual Studio 2010 support
  • Bullet library update to 2.77
  • OIS library update to 1.3
  • Support for CEGUI 0.7 —> Support for Arch Linux and even SuSE
  • Improved install target
  • Compiles now with GCC 4.6
  • Ogre Cg Shader plugin activated for Linux if available
  • And of course lots of bug fixes

There are also some regressions:

  • No support for CEGUI 0.5, Ogre 1.4 and boost 1.35 - 1.39 any more
  • In game console is not working in main menu for CEGUI 0.7
  • Tolua (just the C lib, not the application) and CEGUILua libraries are no longer in our repository. —> You will need to get these as well when compiling Orxonox
  • And of course lots of new bugs we don't yet know about
  • Property svn:eol-style set to native
File size: 1.7 KB
Line 
1
2#ifndef BT_INTERNAL_EDGE_UTILITY_H
3#define BT_INTERNAL_EDGE_UTILITY_H
4
5#include "LinearMath/btHashMap.h"
6#include "LinearMath/btVector3.h"
7
8#include "BulletCollision/CollisionShapes/btTriangleInfoMap.h"
9
10///The btInternalEdgeUtility helps to avoid or reduce artifacts due to wrong collision normals caused by internal edges.
11///See also http://code.google.com/p/bullet/issues/detail?id=27
12
13class btBvhTriangleMeshShape;
14class btCollisionObject;
15class btManifoldPoint;
16class btIDebugDraw;
17
18
19
20enum btInternalEdgeAdjustFlags
21{
22        BT_TRIANGLE_CONVEX_BACKFACE_MODE = 1,
23        BT_TRIANGLE_CONCAVE_DOUBLE_SIDED = 2, //double sided options are experimental, single sided is recommended
24        BT_TRIANGLE_CONVEX_DOUBLE_SIDED = 4
25};
26
27
28///Call btGenerateInternalEdgeInfo to create triangle info, store in the shape 'userInfo'
29void    btGenerateInternalEdgeInfo (btBvhTriangleMeshShape*trimeshShape, btTriangleInfoMap* triangleInfoMap);
30
31
32///Call the btFixMeshNormal to adjust the collision normal, using the triangle info map (generated using btGenerateInternalEdgeInfo)
33///If this info map is missing, or the triangle is not store in this map, nothing will be done
34void    btAdjustInternalEdgeContacts(btManifoldPoint& cp, const btCollisionObject* trimeshColObj0,const btCollisionObject* otherColObj1, int partId0, int index0, int normalAdjustFlags = 0);
35
36///Enable the BT_INTERNAL_EDGE_DEBUG_DRAW define and call btSetDebugDrawer, to get visual info to see if the internal edge utility works properly.
37///If the utility doesn't work properly, you might have to adjust the threshold values in btTriangleInfoMap
38//#define BT_INTERNAL_EDGE_DEBUG_DRAW
39
40#ifdef BT_INTERNAL_EDGE_DEBUG_DRAW
41void    btSetDebugDrawer(btIDebugDraw* debugDrawer);
42#endif //BT_INTERNAL_EDGE_DEBUG_DRAW
43
44
45#endif //BT_INTERNAL_EDGE_UTILITY_H
46
Note: See TracBrowser for help on using the repository browser.