WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 06-22-2011, 01:04 PM
Aweless Aweless is offline
Member
 
Join Date: May 2011
Posts: 3
.dae object following camera

I used sketchUp to create a level and I exported the level as a .dae file. The level loads just fine, but if I move the camera the entire loaded level moves with it. All I did was viz.add(.dae). I have no clue why a loaded .dae file would do this.
Reply With Quote
  #2  
Old 06-23-2011, 11:36 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Does it also turn with the camera, or just move? If it's only moving, then it sounds like the scale of the model is very large. In this case try scaling it down. You can also try adding the following line of code before adding the model:
Code:
viz.setOption('viz.model.apply_collada_scale',1)
.
.
.
viz.add('file.dae')
This will automatically scale the collada model to meters if the model units are specified within the dae file.
Reply With Quote
  #3  
Old 06-23-2011, 12:17 PM
Aweless Aweless is offline
Member
 
Join Date: May 2011
Posts: 3
Quote:
Originally Posted by farshizzo View Post
Does it also turn with the camera, or just move? If it's only moving, then it sounds like the scale of the model is very large. In this case try scaling it down. You can also try adding the following line of code before adding the model:
Code:
viz.setOption('viz.model.apply_collada_scale',1)
.
.
.
viz.add('file.dae')
This will automatically scale the collada model to meters if the model units are specified within the dae file.

Thank you this solves my problem. It seems the scale was out of whack.
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 render a texture of the transparent object and then blur it whj Vizard 1 09-25-2012 04:15 PM
Camera distance problem CRI Vizard 0 07-28-2010 11:58 AM
rotate camera about an object dwaik Vizard 2 02-09-2010 02:06 AM
retrieve Object names Geoffrey Vizard 11 12-11-2009 05:26 AM
rotate to object jargon Vizard 1 08-08-2005 01:20 PM


All times are GMT -7. The time now is 08:54 PM.


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