Dit zal pagina "Using-SketchUp-Models"
verwijderen. Weet u het zeker?
SketchUp will create a Collada file named your-model.dae
and a folder named your-model
that contains the model's textures.
Make sure you download ColladaLoader
and include it into your project:
<script type="text/javascript" src="Three.js"></script>
<script type="text/javascript" src="ColladaLoader.js"></script>
var loader = new THREE.ColladaLoader();
loader.load( 'path/to/your/model.dae', function ( collada ) {
scene.add( collada.scene );
} );
Note that this won't work locally because it loads the Collada file and the textures using AJAX. Therefore you have to serve the files with HTTP or change your browser's security settings as explained in How to run things locally.
Dit zal pagina "Using-SketchUp-Models"
verwijderen. Weet u het zeker?