Page 2 of 5

Posted: Sun May 06, 2007 11:39 pm
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

Posted: Fri May 11, 2007 10:54 pm
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?

Posted: Mon May 21, 2007 12:37 am
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

Posted: Tue May 22, 2007 7:47 pm
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.

Posted: Tue Jul 03, 2007 6:28 pm
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

Posted: Wed Jul 04, 2007 2:54 pm
by omaremad
Flickering shadows is due to the z fail stencil shadows being commented out in irrlicht.

Posted: Wed Jul 04, 2007 3:04 pm
by hybrid
zfail and zpass are both available 8)

Posted: Wed Jul 04, 2007 8:42 pm
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);
}

Posted: Tue Jul 24, 2007 3:40 pm
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 :)

Posted: Fri Aug 24, 2007 8:22 am
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;

Posted: Sat Aug 25, 2007 3:49 pm
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?

Posted: Sat Aug 25, 2007 3:58 pm
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.

Posted: Sat Aug 25, 2007 5:57 pm
by nomad
OK, the demo now works with Irrlicht 1.3.1. Download from the original link.

Posted: Tue Aug 28, 2007 5:01 pm
by USE.IRR
thanks :D

Posted: Wed Aug 29, 2007 12:11 am
by FlyingIsFun1217
I hope to be able to use this in my project.
Hopefully I'll be able to understand it :P

FlyingIsFun1217