Terrain + triangle selector = glitchy

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
monkeycracks
Posts: 1029
Joined: Thu Apr 06, 2006 12:45 am
Location: Tennesee, USA
Contact:

Terrain + triangle selector = glitchy

Post by monkeycracks »

Ok, I'm having problems with my triangle selector and terrainscenenode. There are parts of the loaded terrain that you shouldn't be able to go through, but you can. There are parts where you seem to get 'stuck' on a place on the ground that isn't raised.

I tried using IPhysics to create it and turned debug mode on to see what it was drawing over it for collision and parts of the triangleselector were under parts of the terrain instead of being spread right over it.

http://www.ultimate-ownage.com/heightmap2.bmp

That's the heightmap.

Code used to create triangle selector is same as Terrain Rendering example except it's done on a node and a 3rd person Camera (same clipping errors if done with just a regular FPS camera).

Anyone have any fixes for this?
NOTE : I'm not using IPhysics anymore, I'm just using triangle selectors. IPhysics was just to see if it was going over the surface or not and it's not.
c.h.r.i.s
Posts: 41
Joined: Mon Jan 22, 2007 8:38 pm

Post by c.h.r.i.s »

I have the same Problem. I can only move the avatar on flat areas or in direction of a valley but i can not move my avatar to hills.
monkeycracks
Posts: 1029
Joined: Thu Apr 06, 2006 12:45 am
Location: Tennesee, USA
Contact:

Post by monkeycracks »

c.h.r.i.s wrote:I have the same Problem. I can only move the avatar on flat areas or in direction of a valley but i can not move my avatar to hills.
Seems to be quite a common problem. The way the heightmap is rendered is different from the way the triangle selector interprets it apparently. If there's a fix for this, someone please tell me.
stodge
Posts: 216
Joined: Fri Dec 05, 2003 5:57 pm

Post by stodge »

I think the general consensus is that you need a physics engine.
What does the debugger tell you? You did use the debugger, didn't you?
monkeycracks
Posts: 1029
Joined: Thu Apr 06, 2006 12:45 am
Location: Tennesee, USA
Contact:

Post by monkeycracks »

IPhysics... THat's what it is. Same problem.
Please read my post -.-
stodge
Posts: 216
Joined: Fri Dec 05, 2003 5:57 pm

Post by stodge »

I don't know what IPhysics is, but are you using a physics engine?

I read your post.
What does the debugger tell you? You did use the debugger, didn't you?
monkeycracks
Posts: 1029
Joined: Thu Apr 06, 2006 12:45 am
Location: Tennesee, USA
Contact:

Post by monkeycracks »

IPhysics is a Newton/Irrlicht physics 'thing' for lack of better words because I just woke up. I turned it in debug mode to see where it was creating the 'collision plane', once again for lack of better words. The collision plane was under some parts of the terrain rather than being stretched over it directly and not having parts of it under the terrain.

It seemed to be in the same places as the triangle selector was having problems.
Post Reply