Bullet physics demo

Announce new projects or updates of Irrlicht Engine related tools, games, and applications.
Also check the Wiki
FlyingIsFun1217
Posts: 219
Joined: Fri Apr 13, 2007 8:29 pm
Location: Illinois
Contact:

Post by FlyingIsFun1217 »

Jacob_x wrote:Is it possible to integrate Bullet with Irrlicht in Dev-Cpp or Code::Blocks?
If it isn't, uninstall them right away! :lol:

FlyingIsFun1217
mechdroid
Posts: 1
Joined: Fri May 11, 2007 10:01 pm

Post by mechdroid »

Hi there Nomad!

Thank you for post this nice resource. That rocks!

I noticed the flickering shadows. How many light sources are you using?
I saw a broken mirror. It wasn't mine.
iZigoo
Posts: 53
Joined: Fri Feb 23, 2007 1:32 pm

Post by iZigoo »

Hey,

this demo is great !
Bullet is a really good physics library and it is released under
the zlib license. A perfect combination with irrlicht.

Hope to see more soon.

iZigoo
-------------------------------------------------------
iZigoo - The open 3D internet

iZigoo Homepage
nomad
Posts: 53
Joined: Thu Jan 05, 2006 12:35 pm
Location: Wales

Post by nomad »

mechdroid wrote:Hi there Nomad!

Thank you for post this nice resource. That rocks!

I noticed the flickering shadows. How many light sources are you using?
Just the single light source. The flickering shadow problem is an Irrlicht bug. I'm working on other things at the moment so I haven't looked into this in detail yet.
Glad you liked the demo, sorry for the late reply.
BlindSide
Admin
Posts: 2821
Joined: Thu Dec 08, 2005 9:09 am
Location: NZ!

Post by BlindSide »

Hey I am wondering what your license is for the demo code and whether its ok to use it in other projects? I found the framework very well made and useful.

I am having a problem though, I rebuilt the demo using Irrlicht 1.3 and the newest Bullet SDK and for some reason things are not colliding with the level mesh. They collide with the altar, but then they just fall right through the floor. Any idea why this might be happening?

Cheers
omaremad
Competition winner
Posts: 1027
Joined: Fri Jul 15, 2005 11:30 pm
Location: Cairo,Egypt

Post by omaremad »

Flickering shadows is due to the z fail stencil shadows being commented out in irrlicht.
"Irrlicht is obese"

If you want modern rendering techniques learn how to make them or go to the engine next door =p
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

zfail and zpass are both available 8)
omaremad
Competition winner
Posts: 1027
Joined: Fri Jul 15, 2005 11:30 pm
Location: Cairo,Egypt

Post by omaremad »

I remember seeing the z fail being commented out, also the the stencil ops in the ogl driver were denifely for z pass. thats based on 1.3 though(dont know whats it like on 1.3.1.

Btw the bug mention by Blindside is due to a cast which causes a copy constructor being called rather than the constructor (im not sure), maybe this happened after an api change in bullet.

To correct it use this line instead

Code: Select all

/////////////////////////////////////////////////////////////////////////////////
//Terrain - optimized static mesh
CTerrain::CTerrain(const char* name)
{
	GET_SMGR;
	m_pMesh = smgr->getMesh(name); //returns a IAnimatedMesh*, not a IMesh* as docs say
	m_pNode = smgr->addOctTreeSceneNode(m_pMesh->getMesh(0));
	m_pNode->setMaterialFlag(video::EMF_LIGHTING, false);
	m_Mass = 0.0f;
	m_pCollisionObject=g_pCollisionObjectMgr->Get((void*)m_pMesh);
	if (!m_pCollisionObject) {
		btTriangleMesh* pMesh = GetTriangleMesh(m_pMesh->getMesh(0));
		btCollisionShape* pShape = new btBvhTriangleMeshShape((btStridingMeshInterface*)pMesh,true);
		m_pCollisionObject=g_pCollisionObjectMgr->Add(pShape, 0, (void*) m_pMesh);
	}
	InitPhysics(GetMaxExtent() / 2);
}
"Irrlicht is obese"

If you want modern rendering techniques learn how to make them or go to the engine next door =p
nomad
Posts: 53
Joined: Thu Jan 05, 2006 12:35 pm
Location: Wales

Post by nomad »

BlindSide wrote:Hey I am wondering what your license is for the demo code and whether its ok to use it in other projects? I found the framework very well made and useful.
Yes, use the demo anyway you like. Glad it was useful :)
USE.IRR
Posts: 32
Joined: Sat Jul 28, 2007 12:24 pm

Post by USE.IRR »

Very nice and useful demo...thank you very much.
:D
But I can compile it correctly because I got a violation aceess link error.

VC++ debugger indicates :

Code: Select all

GET_GUIENV;
Image
Image
nomad
Posts: 53
Joined: Thu Jan 05, 2006 12:35 pm
Location: Wales

Post by nomad »

The demo compiles correctly against Irrlicht 1.2 on VC7. I assume you cannot compile it correctly - what exactly is the compiler error? Are you missing some files?
nomad
Posts: 53
Joined: Thu Jan 05, 2006 12:35 pm
Location: Wales

Post by nomad »

Yes, there is a problem compiling against Irrlicht 1.3.1, since the demo was built against Irrlicht 1.2. So the Irrlicht.dll that comes with the demo is incompatible with the 1.3.1 SDK. You need to copy the new Irrlicht.dll from the 1.3.1 SDK into the demo root folder, to replace the old Irrlicht.dll.
Unfortunately, the bounding box bug still persists in the new version of Irrlicht, so you will get some problems running the demo. That's why I included a fixed Irrlicht.dll in the demo.
nomad
Posts: 53
Joined: Thu Jan 05, 2006 12:35 pm
Location: Wales

Post by nomad »

OK, the demo now works with Irrlicht 1.3.1. Download from the original link.
USE.IRR
Posts: 32
Joined: Sat Jul 28, 2007 12:24 pm

Post by USE.IRR »

thanks :D
Image
Image
FlyingIsFun1217
Posts: 219
Joined: Fri Apr 13, 2007 8:29 pm
Location: Illinois
Contact:

Post by FlyingIsFun1217 »

I hope to be able to use this in my project.
Hopefully I'll be able to understand it :P

FlyingIsFun1217
Post Reply