Results 1 to 3 of 3

Thread: I can't see anything

  1. #1
    Junior Member Newbie
    Join Date
    Jan 2014

    I can't see anything

    Hello to all

    I am a french beginner with a bad English

    I try to show a file dae in a html file, via three.js and ColladaLoader.
    Unfortunately I see only an empty page, not even an error message.
    I probably forgot something.
    I used OpenCollada export under max 2012.
    I'm using Firefox

    Thank you so much for your help

    Here's the code:
    HTML Code:
    	<meta charset="utf-8" />  
    		<script type='text/javascript' src="js/three.js"></script>
    		<script type='text/javascript' src="js/ColladaLoader.js"></script>
     <div id="container"></div>
      <script type="text/javascript">
    	var renderer, scene, camera, mesh, result-scene;
    function init(){
        // on initialise le moteur de rendu
        //renderer = new THREE.WebGLRenderer();
        // si WebGL ne fonctionne pas sur votre navigateur vous pouvez utiliser le moteur de rendu Canvas à la place
        renderer = new THREE.CanvasRenderer();
        renderer.setSize( window.innerWidth, window.innerHeight );
        // on initialise la scène
        scene = new THREE.Scene();
        // on initialise la camera que l’on place ensuite sur la scène
        camera = new THREE.PerspectiveCamera(50, window.innerWidth / window.innerHeight, 1, 10000 );
        camera.position.set(0, 0, 1000);
    	var loader = new THREE.ColladaLoader();
    	//loader.options.convertUpAxis = true;
    	loader.load( 'diabolo.dae',function colladaReady( collada ) {
    	model = collada.scene;
    	model_geometry = collada.scene.children[ 0 ].geometry;
    	model_material = collada.scene.children[ 0 ].material;
    	model.scale.set(10.0, 10.0, 10.0);

  2. #2
    Junior Member Newbie
    Join Date
    Jan 2014
    It works exporting .dae from Blender

  3. #3
    Can javaScript create rich interactivity? Can JavaScript create a rich interactive site like animations that when rolled over play out, or an interactive object that can be drug around the screen like a type of video game of sorts? or is Javascript limited to just hover buttons and photo gallery's thing like that?
    supplier garden ~ gardening ~ garden supply

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Proudly hosted by Digital Ocean