2

Three.js is up to v66 and the Gizmo transform controls seemed to have stopped working. See a demo here:

This is the basic code

var geometry = new THREE.CubeGeometry( 200, 200, 200 );
var material = new THREE.MeshBasicMaterial( { color: 0x00ff00 } );
var mesh = new THREE.Mesh( geometry, material );

var control = new THREE.TransformControls( camera, renderer.domElement );
control.addEventListener( 'change', render );
control.attach( mesh );
scene.add( control.gizmo );

http://jsfiddle.net/Hq2Dx/5/

There is no apparent error but they do not appear. I've tried debugging but cannot isolate the issue. Anyone else managed to get it working?

Cheers

3

1 Answer 1

2

change your code.. it will do the trick.. check this fiddle... http://jsfiddle.net/Hq2Dx/7/

var control = new THREE.TransformControls( camera, renderer.domElement );
control.addEventListener( 'change', render );
control.attach( mesh );
scene.add( control);
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.