WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 08-05-2008, 11:16 AM
TrashcanPatrol TrashcanPatrol is offline
Member
 
Join Date: Aug 2008
Posts: 43
Walking viewpoints

I've been looking at this for a bit now, and I saw a demo/something where the viewpoint was inside of a mini cooper. The user would press Up and Down to move forward and backward, and with the mouse they could look around. However, the left and right were bound to the body of the car.
I tinkered with the script a bit and removed the viewpoint from the car, but the farthest I could get to freeing the left and right views was to make the viewpoint rotate left and right when pressed. It doesn't let you move forward/backward AND rotate right/left, though.
I guess my questions are...
-How do I get it so that I can move the viewpoint forward without the mouse, and look around while moving but be unbound to the body?
-Is there any way to walk forward/backwards and strafe left/right with the keyboard, and look around with the mouse (without having to click, and without being bound to the body)?

Apologies for my lack of knowledge, I'm a bit new to this >_<
Reply With Quote
  #2  
Old 08-05-2008, 06:01 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
There are many different ways to accomplish this. From your description it seems that the built-in FlyNavigate camera control would do what you want. The code for it is in the vizcam module. Here is a sample script that shows how to use it. Use the arrow keys and mouse to move around.
Code:
import viz
viz.go()

import vizcam
vizcam.FlyNavigate()

viz.add('gallery.ive')
Let me know if this isn't what you are looking for.
Reply With Quote
  #3  
Old 08-06-2008, 08:29 AM
TrashcanPatrol TrashcanPatrol is offline
Member
 
Join Date: Aug 2008
Posts: 43
Yeah, that was exactly what I was looking for. Thanks!

Also, just wondering, how could I fix the problem with when I move back and forward with the keyboard, but use the left/right keys to rotate (doing what the mouse did when it was on FlyNavigate mode)? My problem is that it doesn't let me press say, up to move forward while pressing right to look right. I'd have to press up, stop pressing up, then press right, rotate how much I want to, then press up again to keep moving.
PS: Is there a way to increase movement/look speed?

Last edited by TrashcanPatrol; 08-06-2008 at 08:38 AM. Reason: PS
Reply With Quote
  #4  
Old 08-07-2008, 10:06 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
You will need to create your own camera handler that does what you want. You can use the code for the FlyNavigate camera as a starting point. The FlyNavigate camera also has a sensitivity function that lets you control the move/turn speed.
Reply With Quote
  #5  
Old 05-01-2013, 08:41 AM
brunomartelli brunomartelli is offline
Member
 
Join Date: Apr 2013
Location: London
Posts: 41
what is that 'sensitivity' function please? how do you make it go?
Reply With Quote
  #6  
Old 05-02-2013, 09:14 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,449
The sensitivity method allows you to scale both the move speed and turn speed:
Code:
flyNav = vizcam.FlyNavigate()
flyNav.sensitivity(6,1)
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 make avatars to follow terrain while walking? yyang Vizard 1 08-04-2008 02:54 PM
Viewpoints outside the main window sjroorda Vizard 7 11-03-2005 06:11 AM
Walking avatars --> collision detection? sjroorda Vizard 3 10-13-2005 04:47 AM
windows and viewpoints hotspur1 Vizard 6 08-25-2003 03:36 PM


All times are GMT -7. The time now is 11:36 AM.


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