comunicationLeap/clientLeap/cube3d.js
clientLeap/cube3d.jsRaw
1/*// set up the sphere vars
2var radius = 50,
3 segments = 16,
4 rings = 16;
5
6// create a new mesh with
7// sphere geometry - we will cover
8// the sphereMaterial next!
9var sphere = new THREE.Mesh(
10
11 new THREE.SphereGeometry(
12 radius,
13 segments,
14 rings),
15
16 sphereMaterial);
17
18// add the sphere to the scene
19scene.add(sphere);*/
20
21var objURL = "models3d/o1.obj";
22var loader = new THREE.OBJLoader();
23loader.load( objURL, function ( object ) {
24 scene.add( object );
25} );