![]() |
#1
|
|||
|
|||
viewpoint roll / pitch
hello,
when i added these instructions to my script, it looked as if the viewpoint is always a bit pitched / rolled. Is there a way to resolve this? (i copied the values of the translate from a viewpoint.get) The problem arises @ translate() removing lookat() does not seem to affect the roll / pitch view = viz.get(viz.MAIN_VIEWPOINT) view.translate(-6.2,1.8234411478,16.9) view.lookat(17,0,20) thanks in advance, Kevin |
#2
|
|||
|
|||
The lookat command will orient the viewpoint so that it is looking at the given coordinate. The Y coordinate of the viewpoint is translated to 1.82 and you have it lookat a point with a Y coordinate of 0, so the viewpoint will have to be pitched down a little. If you don't want the viewpoint to be pitched then set the Y value of the lookat point to the same Y value of the translation (in your case, 1.8234411478)
|
#3
|
|||
|
|||
hello,
allrighty ![]() thanks! greetz, Kevin |
![]() |
Thread Tools | |
Display Modes | Rate This Thread |
|
|