Open GoogleCodeExporter opened 9 years ago
I could solve it.
If anybody comes with this problem, change above example code to:
viewer1.onmousedown = function () {
var meshes = viewer1.getScene().getChildren();
var newScene = new JSC3D.Scene();
for (var i = 0; i < meshes.length; i++) {
newScene.addChild(meshes[i]);
}
mainViewer.replaceScene(newScene);
mainViewer.setParameter('InitRotationX', 0);
mainViewer.setParameter('InitRotationY', 0);
mainViewer.setParameter('InitRotationZ', 0);
mainViewer.setParameter('RenderMode', 'texturesmooth ');
mainViewer.setParameter('MipMapping', 'on');
mainViewer.setParameter('ProgressBar', 'on');
mainViewer.setParameter('Renderer', 'webgl');
mainViewer.update();
};
Moreover, replace the previous
mainViewer.setParameter('InitRotationX', 0);
mainViewer.setParameter('InitRotationY', 0);
mainViewer.setParameter('InitRotationZ', 0);
mainViewer.setParameter('RenderMode', 'texturesmooth');
mainViewer.setParameter('MipMapping', 'on');
mainViewer.setParameter('ProgressBar', 'on');
mainViewer.setParameter('Renderer', 'webgl');
mainViewer.init();
mainViewer.update();
with only
mainViewer.init();
Original comment by iberterr...@gmail.com
on 28 Jul 2015 at 3:51
Original issue reported on code.google.com by
iberterr...@gmail.com
on 27 Jul 2015 at 8:43