I'm trying to imitate http://threejs.org/examples/canvas_geometry_cube.html via using a 3d.obj file with a texture mapping.
But i keep receiving the following error plus the rotation is totally off.
Uncaught TypeError: Cannot read property 'rotation' of undefined
Full demo is here http://wunderfauks.com/test/examples/test.html
Where you assign the value for
groupthe code for loading has not executed yet andobjdoes not have a value. Move those 10 lines of code inside your loading function.