WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 01-18-2013, 07:03 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
To scale the robot, but not the movement, you can apply the scale to the head/body parts: For example, to double the size try the following code:
Code:
robot.head.setScale([2,2,2])
robot.body_root.setScale([2,2,2])
You can apply an offset to the tracker, to center with the eye height:
Code:
robot.setTracker(viz.link(tracker,viz.NullLinkable,offset=[0,-0.2,0]))
Reply With Quote
  #2  
Old 01-19-2013, 01:13 PM
tokola tokola is offline
Member
 
Join Date: Nov 2012
Posts: 67
Red face Some more detail please!

Farshizzo,
thanks for your reply however I had 33% success! The scale worked fine but I still have the other two problems:
1) You didn't respond on how to deactivate collision of the robot with the viewpoint on each window. Although the robot is not rendered in its own window, it still collides with the viewpoint. Why? Eventually, the view is pushed to ~2.32m instead of the default 1.82m, just between body and head, due to this collision.
2) You need to be a little more detailed about your second response because I am still an amateur Vizard user! What's the tracker gonna be in this case? I am using the setTracker to manipulate the robot as mentioned in the examples, updating the matrix on every frame:
Code:
robot.setTracker(view._player_matrix)
Inserting a second call to this method just ignores the first one and the robot is not following the viewpoint. I've tried these two option separately:
Code:
robot.setTracker(viz.link(robot.body, viz.NullLinkable,offset=[0,-0.2,0]))
robot.setTracker(viz.link(robot.head, viz.NullLinkable,offset=[0,-0.2,0]))
What else can act as a tracker in your provided solution? And of course, when this is implemented correctly the viewpoint will collide with the robot's head (going back to problem 1)!

Excuse my -probably- naive question but I am trying to understand and learn.
Thanks,
tokola
Reply With Quote
  #3  
Old 01-28-2013, 10:59 AM
tokola tokola is offline
Member
 
Join Date: Nov 2012
Posts: 67
Problems still unresolved!

Farshizzo,
could you please share your knowledge on the issues mentioned above, and clarify things? I still couldn't overcome the collision and view offset problems, and it's rather imperative to make these robots behave as described.

Thanks a lot,
--Panagiotis
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
multiple views durf Vizard 3 05-07-2009 12:26 PM
Problems with making multiple objects from one .wrl? mjabon Vizard 3 07-10-2007 02:23 PM


All times are GMT -7. The time now is 02:34 PM.


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