[Beta 4 Bug] Smooth Heightmap and Terrain Collision
by Ryan Neighbour · in Torque 3D Professional · 08/09/2009 (7:16 pm) · 4 replies
Sorry if this is a known issue but I didn't find it when I searched so here goes.
I'm importing heightmaps to use for my terrains, but when I import them they're really blocky or terraced.
So to fix it I use the "Smooth Heightmap" from the terrain menu (available when the terrain editor is selected.
I usually do this a few times until it looks pretty but the problem is that it's almost like it's using the unsmoothed terrain for collisions. I'm not sure about that though, it's kind of like swimming in the terrain, only sometimes you fall through. If I save and reload the level the problem goes away.
I'm importing heightmaps to use for my terrains, but when I import them they're really blocky or terraced.
So to fix it I use the "Smooth Heightmap" from the terrain menu (available when the terrain editor is selected.
I usually do this a few times until it looks pretty but the problem is that it's almost like it's using the unsmoothed terrain for collisions. I'm not sure about that though, it's kind of like swimming in the terrain, only sometimes you fall through. If I save and reload the level the problem goes away.
About the author
Just started an M.Sc. in Electrical and Computer Engineering during which I'll be investigating the use of Agent Based Models in the field of Epidemiology. Aside from that, trying to get my first indie project off the ground and having a blast doing it.
#2
08/09/2009 (8:10 pm)
Doesn't the collision mesh get updated when you use the other terraforming functions?
#3
08/10/2009 (11:55 am)
@Ryan - Do you happen to be using PhysX in your project?
#4
Here's what I did:
1: created a new project using the torque toolbox and loaded it up in the world editor
2: created a new level and deleted the terrain
3: then I followed the tutorial on how to import heightfield (only I used my own heightfield).
It looked too terraced so I ran the smooth terrain a few times. Problem seems to be most visible when going up hill.
I noticed something else that was odd about the heightfield import, if I import a heightfield that's a .bmp I get a high (what I think is one unit across) ridge along one entire side of the terrain. If I use the same heightfield converted to .png that doesn't happen.
(happens in beta 5 too)
08/10/2009 (2:13 pm)
Not unless it is enabled by default. Here's what I did:
1: created a new project using the torque toolbox and loaded it up in the world editor
2: created a new level and deleted the terrain
3: then I followed the tutorial on how to import heightfield (only I used my own heightfield).
It looked too terraced so I ran the smooth terrain a few times. Problem seems to be most visible when going up hill.
I noticed something else that was odd about the heightfield import, if I import a heightfield that's a .bmp I get a high (what I think is one unit across) ridge along one entire side of the terrain. If I use the same heightfield converted to .png that doesn't happen.
(happens in beta 5 too)
Torque Owner Adam Beer
Ignition Games Inc.