PDA

View Full Version : Infinite Terrain


slinkenauger
07-16-2013, 01:26 PM
Hi,
My infinite terrain is being displayed quite a bit below the origin position 0,0,0. I have tried set position; however, it doesn't work. Any ideas on how to get the terrain positioned where I need it?

Jeff
07-16-2013, 05:07 PM
I'm not sure how to add an offset to the terrain. Have you tried applying an offset to the viewpoint?

slinkenauger
07-17-2013, 05:10 AM
potentially, I could, but the problem is that when the tracking system is calibrated to 0,0,0, so I really need the terrain to be at floor position. Is it the default for it to be below the origin?

Jeff
07-19-2013, 10:49 AM
Are you linking the viewpoint to the tracker? If so, you can apply a postTrans operation on the link so the viewpoint is below the tracker:
viewLink = viz.link(tracker, viz.MainView)
#move the viewpoint 1 meter below the tracker
viewLink.postTrans([0,-1,0])

slinkenauger
07-22-2013, 10:53 AM
I'll give it a shot; thanks!