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.
Terrain + triangle selector = glitchy
-
monkeycracks
- Posts: 1029
- Joined: Thu Apr 06, 2006 12:45 am
- Location: Tennesee, USA
- Contact:
-
monkeycracks
- Posts: 1029
- Joined: Thu Apr 06, 2006 12:45 am
- Location: Tennesee, USA
- Contact:
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.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.
-
monkeycracks
- Posts: 1029
- Joined: Thu Apr 06, 2006 12:45 am
- Location: Tennesee, USA
- Contact:
-
monkeycracks
- Posts: 1029
- Joined: Thu Apr 06, 2006 12:45 am
- Location: Tennesee, USA
- Contact:
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.
It seemed to be in the same places as the triangle selector was having problems.