Code Monkey home page Code Monkey logo

btogre's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

btogre's Issues

build error

Hello,
may anybody help me with this bug?

it happens while building with DEMO I am getting this error
/usr/bin/ld: libBtOgre.a(BtOgre.cpp.o): in function BtOgre::DynamicsWorld::addRigidBody(float, Ogre::Entity const*, BtOgre::ColliderType, BtOgre::CollisionListener*)': BtOgre.cpp:(.text+0xb30): undefined reference to btRigidBody::btRigidBody(float, btMotionState*, btCollisionShape*, btVector3 const&)'
/usr/bin/ld: libBtOgre.a(BtOgre.cpp.o): in function BtOgre::VertexIndexToShape::createConvex()': BtOgre.cpp:(.text+0x2303): undefined reference to btConvexHullShape::btConvexHullShape(float const*, int, int)'
/usr/bin/ld: libBtOgre.a(BtOgre.cpp.o): in function BtOgre::VertexIndexToShape::createCapsule()': BtOgre.cpp:(.text+0x285c): undefined reference to btCapsuleShape::btCapsuleShape(float, float)'
/usr/bin/ld: BtOgre.cpp:(.text+0x28d7): undefined reference to btCapsuleShapeX::btCapsuleShapeX(float, float)' /usr/bin/ld: BtOgre.cpp:(.text+0x293a): undefined reference to btCapsuleShapeZ::btCapsuleShapeZ(float, float)'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/BtOgreTest.dir/build.make:93: BtOgreTest] Error 1
make[1]: *** [CMakeFiles/Makefile2:99: CMakeFiles/BtOgreTest.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[100%] Linking CXX shared module _BtOgre.so
[100%] Built target _BtOgre
make: *** [Makefile:130: all] Error 2

DebugDrawer::update throws exception if there is no lines to draw [with solution].

If there is no lines to draw (in my case, no bodies in bullet world), DebugDrawer::update throws exception with message:

what(): RuntimeAssertionException: mCurrentSection failed. You cannot call end() until after you call begin() in end at /build/ogre/src/ogre-13.1.1/OgreMain/src/OgreManualObject.cpp (line 324)

My solution: add a flag to mark if there were any line drawing:

bool mBegan{false};

and

void update()
{
	mWorld->debugDrawWorld();
	if (mBegan)
        {
            mLines.end();
            mBegan = false;
        }
}

and

void DebugDrawer::drawLine(const btVector3& from,const btVector3& to,const btVector3& color)
{
        mBegan = true;

build error

Hello,
may anybody help me with this bug?

it happens while building with DEMO I am getting this error
//usr/bin/ld: libBtOgre.so: undefined reference to btConvexHullShape::btConvexHullShape(float const*, int, int)' /usr/bin/ld: libBtOgre.so: undefined reference to btCapsuleShape::btCapsuleShape(float, float)'
/usr/bin/ld: libBtOgre.so: undefined reference to btRigidBody::btRigidBody(float, btMotionState*, btCollisionShape*, btVector3 const&)' /usr/bin/ld: libBtOgre.so: undefined reference to btCapsuleShapeZ::btCapsuleShapeZ(float, float)'
/usr/bin/ld: libBtOgre.so: undefined reference to `btCapsuleShapeX::btCapsuleShapeX(float, float)'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/BtOgreTest.dir/build.make:93: BtOgreTest] Error 1
make[1]: *** [CMakeFiles/Makefile2:99: CMakeFiles/BtOgreTest.dir/all] Error 2
make: *** [Makefile:130: all] Error 2

BtOgre Demo building error

System Information

  • Ogre Version: 1.12.0/master
  • Operating System / Platform: Win7 x64 / MinGW64 (GCC 8.1.0)

Detailled description

An error has occured when compiling BtOgre with BUILD_DEMO

main.cpp|67|error: no matching function for call to 'OgreBites::ApplicationContextSDL::ApplicationContextSDL(const char [7], bool)'

Building log

||=== Сборка: install in BtOgre (compiler: GNU GCC Compiler) ===|
D:\Work\SDK\OgreBullet_source\demo\main.cpp||In constructor 'BtOgreTestApplication::BtOgreTestApplication()':|
D:\Work\SDK\OgreBullet_source\demo\main.cpp|67|error: no matching function for call to 'OgreBites::ApplicationContextSDL::ApplicationContextSDL(const char [7], bool)'|
D:\Work\SDK\Ogre_install\include\OGRE\Bites\OgreApplicationContext.h|58|note: candidate: 'OgreBites::ApplicationContextSDL::ApplicationContextSDL(const String&)'|
D:\Work\SDK\Ogre_install\include\OGRE\Bites\OgreApplicationContext.h|58|note:   candidate expects 1 argument, 2 provided|
D:\Work\SDK\Ogre_install\include\OGRE\Bites\OgreApplicationContext.h|55|note: candidate: 'OgreBites::ApplicationContextSDL::ApplicationContextSDL(const OgreBites::ApplicationContextSDL&)'|
D:\Work\SDK\Ogre_install\include\OGRE\Bites\OgreApplicationContext.h|55|note:   candidate expects 1 argument, 2 provided|
D:\Work\SDK\Ogre_install\include\OGRE\Bites\OgreApplicationContext.h|55|note: candidate: 'OgreBites::ApplicationContextSDL::ApplicationContextSDL(OgreBites::ApplicationContextSDL&&)'|
D:\Work\SDK\Ogre_install\include\OGRE\Bites\OgreApplicationContext.h|55|note:   candidate expects 1 argument, 2 provided|
 [CMakeFiles\BtOgreTest.dir\build.make|63|CMakeFiles/BtOgreTest.dir/demo/main.cpp.obj] Error 1|
 [CMakeFiles\Makefile2|109|CMakeFiles/BtOgreTest.dir/all] Error 2|
 [D:\Work\SDK\OgreBullet_build\Makefile|129|all] Error 2|
||=== Build неудачно: 4 error(s), 0 warning(s) (0 minute(s), 8 second(s)) ===|

lagging

Hi guys,
does anybody know why I have this https://youtu.be/VKSiKcNKxwg slightest lag between a hull and wheels of a car?
I use Ogre 13.3 and the latest version of BtOgre. A car is built of 3 relative hierarchic SceneNode objects. Wheels are connected at the toppest SceneNode. The lowest SceneNode contains RaycastVehicle object.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.