Drag mouse to rotate
Drag mouse with shift pressed to zoom
var canvas = document.getElementById('cv'); var viewer = new JSC3D.Viewer(canvas); viewer.setParameter('SceneUrl', 'diamond_packed.obj'); viewer.setParameter('InitRotationX', 0); viewer.setParameter('InitRotationY', 0); viewer.setParameter('InitRotationZ', 0); viewer.setParameter('ModelColor', '#CAA618'); viewer.setParameter('BackgroundColor1', '#FFFFFF'); viewer.setParameter('BackgroundColor2', '#383840'); viewer.setParameter('RenderMode', 'texturesmooth'); viewer.setParameter('MipMapping', 'on'); viewer.init(); viewer.update();