Game Development Community

Atlas smoothing?

by Azmodeus · in Torque Game Engine Advanced · 10/19/2005 (6:10 pm) · 1 replies

Please forgive me if this is obvious...

Is there a way to make the atlas engine smooth terrain instead of making the heightfield alot more dense?

Ie we are wanting very large terrains that do not use too large of a dataset. It looks fairly good, but was trying to see if the atlas engine could take a course grained dataset and make it appear to be very fine?

#1
10/19/2005 (7:24 pm)
Sure, but it requires a modification to the terrain part of the source code. What you want to do is have the terrain engine interpolate between the heightfield points, and you can do it in a number of ways. Linear interpolation is probably the first thing you'd want to try, followed by other methods like a spline-like method or sampling like anti-aliasing or maybe a weighting algorithm. But basically, you're just saying "every Nth vertex comes from the heightfield" instead of every single one, and then between those points, you do your calculations for the height of it.