javascript - Three.js cubeCamera envmap not working -


hey got 2 problems cubecamera three.js plugin.

everytime when setup cubecamera

cubecamera = new three.cubecamera( 1, 100000, 256, 128 ); //cubecamera.rendertarget.minfilter = three.linearmipmaplinearfilter; cubecamera.doublesided = true; scene.add( cubecamera );  var cubetarget = cubecamera.rendertarget; 

as enter scene.add( cubecamera ); script crashes , outputs:
“uncaught typeerror: cannot read property 'length' of undefined”

i searched tried everything. managed make work not how should work.

i never added cubecamera in render function did following:

cubecamera.position.z = 100; cubecamera.position.x = 200; cubecamera.position.y = 0; cubecamera.updatecubemap( renderer, scene ); 

and got following output:

http://i.stack.imgur.com/iexb9.png

so doing wrong? , why can't write line scene.add( cubecamera ); ??

thanks in advance, bram

finally found answer!

just had update three.js script r47 r49..

now works, had change other things collada loader ;)

so next time, check if date (a).


Comments

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -