WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 04-15-2016, 05:23 AM
jelly jelly is offline
Member
 
Join Date: Feb 2016
Posts: 38
1st person perspective using an object?

Dear all,

I am working on a little project where I have a virtual environment, a room, and an object, an arrow that moves around the room. I have programmed it as a function with a series of "moveTo" actions.

What is the best way to link the main viewpoint to the arrow head, so as to look as a1st person perspective. Indeed, I won't be needing the arrow. It is just a placeholder that should elicit the impression of 1st person.

I tried using link = viz.link( viz.MainView, arrow) but this somehow overwrites my actions. What starts to happen is that the dart starts to move upwards (basically into the sky), apparently indefinetely. I do think this has to do with linking the object to the viewpoint (because ebery viewpoint has a head and body position and orientation).

Does anyone have any other idea how to achieve the 1st person perspective using an object?

Thank you very much in advance!
Reply With Quote
  #2  
Old 04-15-2016, 06:10 AM
Erikvdb Erikvdb is offline
Member
 
Join Date: May 2013
Posts: 63
Linking should be done in the right order, so: viz.link(parent, child). In your sample, you've linked the arrow to the viewport instead of the other way around.
Also if you don't need actually need the arrow, just replace it with an empty node like so:
Code:
viewNode = viz.addGroup()
viewLink = viz.link(viewNode, viz.MainView)
Reply With Quote
  #3  
Old 04-16-2016, 11:30 AM
jelly jelly is offline
Member
 
Join Date: Feb 2016
Posts: 38
Thank you very much!
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
Hand Grab and Object Action rmcconnell11 Vizard 2 04-30-2014 06:51 AM
Rotate object around mainView? performlabrit Vizard 3 12-19-2013 06:31 AM
How to render a texture of the transparent object and then blur it whj Vizard 1 09-25-2012 03:15 PM
retrieve Object names Geoffrey Vizard 11 12-11-2009 04:26 AM
rotate to object jargon Vizard 1 08-08-2005 12:20 PM


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


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