Three.js: TypeError: THREE.WebGLRenderer is not a constructor

Created on 26 Jul 2013  路  9Comments  路  Source: mrdoob/three.js

var renderer = new THREE.WebGLRenderer();

this returns the error

TypeError: THREE.WebGLRenderer is not a constructor

i tried an older version and it worked just fine, so the problem is in the current version.

Bug

Most helpful comment

No worries, @thekonz, we've all been there!

All 9 comments

If that was the case, none of the examples here would work.

i am officially stupid.
what i did was: i included src/Three.js
what i should've done was: include build/three.min.js

there are times as a dev, where you just have to use brain.exe

No worries, @thekonz, we've all been there!

I may be stupid, too, but I get the very same error.
It was working with r67, I just downloaded r75 from http://threejs.org/build/three.min.js and included it.
I did not change anything else in my code.
new THREE.UVMapping() fails with THREE.UVMapping is not a constructor

If I console.log(THREE.UVMapping), I get 300 as result. What am I doing wrong?

THREE.UVMapping is no longer a function.

..so I guess the API changed a bit since r67, so I will have to update my applications. Thanks for the hint.

Hi,
Im having same problem here i use r83 of three.js. but i download some example from internet its working fine. problem is when that example add to my project without change anything. its gave this error message and do not load any images. i use this lib for 360 view.

thanks.

Hi,
if UVMapping() is no longer a function, how can we get the same effect of UVMapping()?

Was this page helpful?
0 / 5 - 0 ratings