I just finished coding in javascript and now I have an object displayed on my screen.
Below is the javascript code I used:
if ( ! Detector.webgl ) Detector.addGetWebGLMessage();
var SCREEN_HEIGHT = window.innerHeight;
var SCREEN_WIDTH = window.innerWidth;
var container;
var camera, scene, renderer, mesh, directionalLight;
var parent, meshes = [], clonemeshes = [];
var p;
//rest of the existing code....
composer.render( 0.01 );
}
I am looking to rotate the object imported through the script (txtS.json) using the mouse. How can I achieve that? Any assistance would be greatly appreciated.