Curtis L. Olson writes: > > I think it's theoretically possible, but because at load time, the > base terrain is not attached into the main scene graph, you can't use > the existing height above terrain code. In theory, you could do > somethingn similar by transforming the starting point and the results > based on the center point of the tile, but I don't know enough about > the current HOT code to make that happen, and I haven't had time to > dig in and investigate further. > > This would be a very useful thing to have though because it would save > a lot of extra work when placing objects. :-)
AFAICT you can just use a slightly modified FGTileMgr::updateCurrentElevAtPos(sgdVec3 abs_pos_vector, Point3D center) by setting 1) 'center' to the tile center 2) setting 'abs_pos_vector' to the location you want the elevation for 3) placing an identity transform above the tile's geometry 2) and using this 'identity transform' for current_tile->get_terra_transform() If this doesn't work then instead of using the 'identity transform' you will need to use the rotation matrix that takes the tile center to the origin but I believe the 'identity trans' is what is required HTH Norman _______________________________________________ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
