WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 09-21-2004, 10:30 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Hi,

Take a look at the <viewpoint>.gotomode and <viewpoint>.pivot commands. Also, there is an example script in the [Vizard20]/examples/advanced directory called animateview.py which shows how to use these functions.

Basically what you would want to do is something like the following:
Code:
def outofmymind(): # animate a smooth POV transition
	myApos = myAvatar.get(viz.POSITION) 
	myPOV = viz.get(viz.MAIN_VIEWPOINT) 
	myPOV.gotomode(viz.BLEND_ROTATE) #Also try out 	viz.PIVOT_ROTATE, see which one you like better
	myPOV.pivot(myApos) 
	myPOV.goto(5,5,5,.85) #just an arbitrary external place
To format some text as code you can press the button with the "#" symbol or you can manually add the following tags around it: [ code ]some code[ /code ]
Reply With Quote
 

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 08:55 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC