Skip to content
Adalmaer edited this page Jul 15, 2016 · 1 revision

renderer = new THREE.WebGLRenderer({antialias: true, preserveDrawingBuffer : true});

window.open( renderer.domElement.toDataURL( 'image/png' ), 'screenshot' );

function cameraLookDownAt(controls,camera, x, y, z) { camera.position.set(x, y, z); camera.lookAt(new THREE.Vector3(x, 0, z)); controls.target.set( x, 0, z ); }

	function hoch(){			
		if (qY>0)	{
		qY--;
		init2();
		}
	}
	
	function links(){
		if (qX>0)	{
		qX--;
		init2();
		}
	}
	
	function rechts(){
		if (qX<10)	{
		qX++;
		init2();
		}
	}
	
	function runter(){
		if (qY<8)	{
		qY++;
		init2();
		}
	}

Clone this wiki locally