Movement getting stuck bug

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
JoeWright
Posts: 74
Joined: Mon Dec 08, 2003 3:51 pm

Movement getting stuck bug

Post by JoeWright »

Just started using Irrlicht - fantasticaly easy to set up and use.

Anyway, I've got a problem, maybe collision detection related, where suddenly the movement gets stuck. The mouse still works so I can look around myself but the cursor keys stop doing anything.

I'm using a slight modification of the collision tutorial with this map made in 3D Max 5. The only real changes are the loading of Castle1.3ds instead of the quake map, centering on 0,0,0, and having a collision ellipse size 10,20,10 offset 0,20,0. Btw, I can't see any logic to the units once in irrlicht. In 3d Max the units were metres but 20 in irrlicht seems to be about half a meter.

Anyway, here's the bug. Walk around for a while and then suddenly the movement stops. Cursor keys no longer work. There is no jitter or anything. I managed to debug as far as to see the camera is still receiving keyboard messages but I've only just started using Irrlicht so couldn't get beyond that. Mouse still responds.

I've tried with version 0.4.1 - still the same, although I can't walk up walls anymore.

Hope you can help

Joe
Harry_Mystic
Posts: 32
Joined: Sun Nov 23, 2003 10:23 pm

Post by Harry_Mystic »

Hi

try to change the start position of your camera (or player), set it a little bit higher so that the camera is falling at the beginning. Maybe this will help. I had similar problems, try and error with the values: start pos, ellipsoid and offset helped. I hope someone else can give you a better hint :(

Cheers
November235
Posts: 15
Joined: Thu Dec 04, 2003 11:09 am
Location: London UK
Contact:

Post by November235 »

The scale in the engine depends entirely on how big you make your levels and models, I'm sure of that.
November235 - Are you in FINAL DENIAL?
Land - Air - Sea
niko
Site Admin
Posts: 1759
Joined: Fri Aug 22, 2003 4:44 am
Location: Vienna, Austria
Contact:

Post by niko »

I totally agree with the comments of Harry_Mystic and November235. I had same problems with a level I made with Anim8or. The problem there was, that I created a floor with multiple overlapping planes, because I am not a very good 3d artist. :) Removing the overlapping triangles solved my problem.
JoeWright
Posts: 74
Joined: Mon Dec 08, 2003 3:51 pm

Post by JoeWright »

I created the floor as a plane in 3dmax5. As the plane is only visible from one side I applied the close holes modifier. Maybe this is the problem, I'll replace with a box and see. I already start the camera in mid air and it falls.

Thanks
Joe
JoeWright
Posts: 74
Joined: Mon Dec 08, 2003 3:51 pm

Post by JoeWright »

As to the scale thing. Is the importer doing some sort of normalisation? How can I deterministically convert the scale in 3dsmax5 to Irrlicht?

For example, 1 unit in 3dsmax does not equal 1 unit in Irrlicht.

Joe
JoeWright
Posts: 74
Joined: Mon Dec 08, 2003 3:51 pm

Post by JoeWright »

All happy now:

Firstly I replaced the closed plane with a box and the camera is no longer getting stuck.

Secondly, the units thing was my fault. I had changed the display units in 3dsmax but not the system units. The conflict led to the the wrong size.

Thanks to all

Joe
Post Reply