Stair climbing in collision tutorial vs Irrlicht tech demo

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
netkoji
Posts: 10
Joined: Sun Feb 01, 2009 1:32 pm

Stair climbing in collision tutorial vs Irrlicht tech demo

Post by netkoji »

Hello everyone, I am a quite recent user of Irrlicht still discovering its potential =)

I am currently try to understand why stair climbing in collision detection tutorial is buggy (ie. you get stuck on stairs at random moments when going up) while I'm not able to reproduce the same problem in the Irrlicht tech demo.

Is it using some other technique? Or maybe there's a method that easily fixes it?


Thanks!
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Post by rogerborg »

It's an artifact of the ellipse/triangle checks used in the collision animator. It's not meant to be production quality, just a quick and dirty tool for simulating a basic physical presence. As always, investigation and better solutions would be very welcome.
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
netkoji
Posts: 10
Joined: Sun Feb 01, 2009 1:32 pm

Post by netkoji »

So does the tech demo use some different form of a collision response? No matter how hard I try I can't seem to get stuck when climbing the stairs there, so I'm guessing it uses a less flawed technique.

Can anyone from the Irrlicht team shed more light on this?
BlindSide
Admin
Posts: 2821
Joined: Thu Dec 08, 2005 9:09 am
Location: NZ!

Post by BlindSide »

The demo source is available under Examples/Demo. Knock yourself out.
ShadowMapping for Irrlicht!: Get it here
Need help? Come on the IRC!: #irrlicht on irc://irc.freenode.net
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Post by rogerborg »

Demo.cpp creates a slightly thinner ellipse: (25,50,25) vs (30,50,30) in example 07.

It's just maths, it's not that the animator bears you any personal grudge.
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
skumar
Posts: 201
Joined: Thu Feb 14, 2008 6:24 pm
Location: kerala state india
Contact:

Post by skumar »

Another main point is the MESH ...

Make sure there are no problems with your mesh...

i dont know the exact reason but i also met this 'stuck' due to bad modelling of a level....

so just try different meshes tooo
skumar
netkoji
Posts: 10
Joined: Sun Feb 01, 2009 1:32 pm

Post by netkoji »

BlindSide wrote:The demo source is available under Examples/Demo. Knock yourself out.
doh... I obviously neglected to check in the Examples. Thanks for pointing it out. :)

rogerborg wrote:Demo.cpp creates a slightly thinner ellipse: (25,50,25) vs (30,50,30) in example 07.
I actually tried different sizes of an ellipse, but it didn't seem to help too much.
skumar wrote:Another main point is the MESH ...

Make sure there are no problems with your mesh...

i dont know the exact reason but i also met this 'stuck' due to bad modelling of a level....
What do you mean by a "mesh problem"?
skumar
Posts: 201
Joined: Thu Feb 14, 2008 6:24 pm
Location: kerala state india
Contact:

Post by skumar »

I was not able to correctly figure out the problems that can interfere with the collision on the mesh. Some times in 3dsmax when we do edit poly modelling one or two polygons may have a slightly altered normal. In such cases i have seen that the collison get stuck there....

Make a level with simple flat floor and a very slowly ascending stairs and test...
skumar
Post Reply