WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 07-22-2013, 07:56 AM
mape2k mape2k is offline
Member
 
Join Date: Mar 2013
Posts: 60
I am still trying to figure out what the cause of the reduced movement speed in our experiments is.

Jeff, what exactly is the 'Update' time of the renderer? This is the only value that varies during the test runs and also seems to be dependent on the collision:

In the test model of the minimum example I provided, I get update times up to 2 when I enable collision and the movement is slower than it is supposed to be. It stays at 0.1 if I disable collision and the movement speed is correct.
In a standard vizard model (like the one in the minimum example), it is well below 0.3, regardless of collision on or off and the movement speed is correct.
Reply With Quote
  #2  
Old 07-23-2013, 03:38 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
If you're updating the viewpoint every frame, try:
Code:
viz.getFrameElapsed() * SPEED
instead of:
Code:
viz.elapsed() * SPEED
Reply With Quote
  #3  
Old 07-24-2013, 12:02 AM
mape2k mape2k is offline
Member
 
Join Date: Mar 2013
Posts: 60
Hello Jeff,

thank you very much! That solved the problem. The movement speed of the viewport is now consistent throughout all of our environments.

What do you think was the problem? Is there a variation in frame draw times that depends on the current environment? If I am using viz.elapsed(), than I would not take this deviation into account, right?
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
Temporal delay on movement westbyb Vizard 5 05-23-2013 06:06 PM
Varying rotation speed with spinTo mape2k Vizard 2 03-22-2013 07:48 AM
Object + InteriaCube + Viewport problem Gekitatsu Vizard 1 02-22-2012 10:55 AM
random speed and associated coding Saz Vizard 1 05-20-2010 04:03 AM
Calculating Speed with sensor durf Vizard 1 03-13-2009 10:25 AM


All times are GMT -7. The time now is 01:16 AM.


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