Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

render OBJ file using THREE.OBJLoader

How to render OBJ file using THREE.OBJLoader method, I've a sample OBJ format but it won't render anything nor I see error in chrome dev tool

like image 654
Harshal Damle Avatar asked Jun 04 '12 21:06

Harshal Damle


1 Answers

Check out the OBJLoader usage sample at https://github.com/mrdoob/three.js/blob/master/examples/webgl_loader_obj.html#L75

(In action http://mrdoob.github.com/three.js/examples/webgl_loader_obj.html )

var loader = new THREE.OBJLoader();
loader.load( objURL, function ( object ) {
  scene.add( object );
} );
like image 114
Ilmari Heikkinen Avatar answered Oct 12 '22 10:10

Ilmari Heikkinen