WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 08-26-2009, 01:24 AM
lilio lilio is offline
Member
 
Join Date: May 2009
Posts: 11
Change Viewpoint in different scenes

Good morning,

I want to change the viewpoint from scene to scene. So I want to set in scene1:

Code:
viz.MainView.setPosition(0,0,-10)
viz.MainView.lookat(0,0,0)
If I change the scene to scene 2, then the viewpoint should be set to

Code:
viz.MainView.setPosition(0,4,-7)
viz.MainView.lookat(0,7,0)
viz.scene( 2 )

This is okay. But if I want to change back to scene1 and make

Code:
viz.MainView.setPosition(0,0,-10)
viz.MainView.lookat(0,0,0)
viz.scene( 1 )
then it does not work.

I've tested it with this
Code:
print viz.MainView.getPosition()
and I can see that the viewpoint will be changed from scene1 to scene2. But back to scene1 it does not change. Why???

Thanks!
Reply With Quote
  #2  
Old 08-28-2009, 02:56 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Can you post a fully functional script that replicates your problem?
Reply With Quote
Reply

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to track the actual viewpoint Jerry Vizard 3 05-25-2016 09:44 AM
Randomly and Continuously Change Avatar's Face Texture Karla Vizard 4 08-22-2008 12:14 PM
Avatar w/ hat cannot look at viewpoint TrashcanPatrol Vizard 5 08-19-2008 08:26 AM
3d viewpoint movement spacefarer Vizard 9 07-25-2006 03:37 PM
VRML Viewpoint error bstankie Vizard 1 03-11-2003 02:10 PM


All times are GMT -7. The time now is 10:29 AM.


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