 stats = null
 console.log TrackballControls
 console.log THREE
-useTestData = true
+useTestData = false
 testImages = []
 init = () ->
 	console.log JSON.stringify(config)

	scene.add camera

	cameraControls = new THREE.TrackballControls(camera)
animate = () ->
	requestAnimationFrame(animate)
	dreams.update()

	dreams.init(dreamsData.dreams, scene, camera)
	console.log dreams
	animate()
onWindowResize = () ->
	camera.aspect = window.innerWidth / window.innerHeight;
	camera.updateProjectionMatrix();
	renderer.setSize( window.innerWidth, window.innerHeight );
createScene = () ->
	renderer = new THREE.CSS3DRenderer()
	renderer.setClearColor(0x000000,1)
