topical media & game development
mobile-query-three-plugins-flamethrower-examples-step10.htm / htm
<!--
load model
where to get the model
download it
load it
scale it down
-->
<!doctype html>
<title>Flying to the moon
</title>
<script src="../../../build/tquery-bundle-require.js">
</script>
<script src="vendor/tquery/ColladaLoader.js">
</script>
<body><script>
require([], function(){
// init world
var world = tQuery.createWorld().boilerplate().start();
world.tCamera().position.z = -30;
// HERE >>>>>>>
// create the container for the comboemitter
var container = tQuery.createObject3D().addTo(world)
// load the rockets
var loader = new THREE.ColladaLoader();
loader.options.convertUpAxis = true;
var url = "./models/TINTINROCKET/models/TIN TIN ROCKET.dae"
loader.load(url, function( collada ){
tQuery(collada.scene).addTo(container)
.scale(1/40)
});
});
</script></body>
(C) Æliens
04/09/2009
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.