WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   .dae object following camera (https://forum.worldviz.com/showthread.php?t=3810)

Aweless 06-22-2011 12:04 PM

.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.

farshizzo 06-23-2011 10:36 AM

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.

Aweless 06-23-2011 11:17 AM

Quote:

Originally Posted by farshizzo (Post 12731)
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.


All times are GMT -7. The time now is 05:06 AM.

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