AlvinfromDiaspar
AlvinfromDiaspar

Reputation: 6834

How to make Three.js example work?

Not sure why this isn't working for me as it should be quite trivial. I am trying to run an example from three.js http://threejs.org/examples/#webgl_interactive_buffergeometry

I have copied the Three.min.js, Detector.js, and stats.min.js. When I run it I get an error about THREE.PerspectiveCamera.

Indeed I do see that the PerspectiveCamera is not defined in the three.min.js. Also, after digging around, I do see that there is a Cameras/PerspectiveCamera.js, though not part of the standard three.js library.

Upvotes: 0

Views: 86

Answers (1)

leota
leota

Reputation: 1756

Maybe you're using an older build of three.js. That example is using the last build (r75), and THREE.PerspectiveCamera is defined.

You can find last build here

Upvotes: 1

Related Questions