Heightfield Mapped on sphere for planet

warkanum

25-02-2010 19:34:27

:idea: I was just wondering how would you get that heightfields that is mapped on a sphere loaded into nxogre? I can't seem to find a easy answer.
:roll:
Based on the planet and planetloader in the Planet rendering Engine (http://www.ogre3d.org/forums/viewtopic.php?f=11&t=39254).
There are basically 6 or 4 heighmaps mapped onto a sphere that represents the planet.
:?:
How would I get nxogre to map a exact physics heightfield or convex?
What is the best method to use if I want to make the planet a kinematic that moves?

betajaen

28-02-2010 12:47:19

You may be able to translate, rotate and change the heighfield pieces so they are curved. With enough of them it would resemble a planet. You probably need a good grasp at math do it though. Personally, I would try a triangle mesh first.

You won't be able to move your planet though, HeightFields have be attached to SceneGeometries/Static NxActors, and they can't move.