PDA

View Full Version : .dae object following camera


Aweless
06-22-2011, 12:04 PM
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: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
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: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.