Update app.py
Browse files
app.py
CHANGED
@@ -609,11 +609,11 @@ async(c, o, p, d, n, m)=>{
|
|
609 |
BABYLON.Engine.LastCreatedScene.ambientColor = new BABYLON.Color4(255,255,255,255);
|
610 |
//BABYLON.Engine.LastCreatedScene.autoClear = false;
|
611 |
//BABYLON.Engine.LastCreatedScene.autoClearDepthAndStencil = false;
|
612 |
-
for (var i=0; i<BABYLON.Engine.LastCreatedScene.getNodes().length; i++) {
|
613 |
if (BABYLON.Engine.LastCreatedScene.getNodes()[i].material) {
|
614 |
BABYLON.Engine.LastCreatedScene.getNodes()[i].material.pointSize = Math.ceil(Math.log2(Math.PI/document.getElementById("zoom").value));
|
615 |
}
|
616 |
-
}
|
617 |
BABYLON.Engine.LastCreatedScene.getAnimationRatio();
|
618 |
//BABYLON.Engine.LastCreatedScene.activeCamera.inertia = 0.0;
|
619 |
});
|
@@ -981,7 +981,6 @@ with gr.Blocks(css=css, js=js) as demo:
|
|
981 |
evt.initEvent(\"click\", true, false);
|
982 |
document.getElementById(\"reset_cam\").dispatchEvent(evt);
|
983 |
}
|
984 |
-
BABYLON.Engine.LastCreatedScene.getNodes()[parseInt(document.getElementById(\"fnum\").getElementsByTagName(\"input\")[0].value)+1].material.pointSize = Math.ceil(Math.log2(Math.PI/this.value));
|
985 |
BABYLON.Engine.LastCreatedScene.activeCamera.fov = this.value;
|
986 |
this.parentNode.childNodes[2].innerText = BABYLON.Engine.LastCreatedScene.activeCamera.fov;
|
987 |
|
@@ -995,7 +994,6 @@ with gr.Blocks(css=css, js=js) as demo:
|
|
995 |
}
|
996 |
}
|
997 |
BABYLON.Engine.LastCreatedScene.activeCamera.radius = 0;
|
998 |
-
BABYLON.Engine.LastCreatedScene.getNodes()[parseInt(document.getElementById(\"fnum\").getElementsByTagName(\"input\")[0].value)+1].material.pointSize = Math.ceil(Math.log2(Math.PI/document.getElementById(\"zoom\").value));
|
999 |
BABYLON.Engine.LastCreatedScene.activeCamera.metadata.pipeline.samples = 4;
|
1000 |
BABYLON.Engine.LastCreatedScene.activeCamera.fov = document.getElementById(\"zoom\").value;
|
1001 |
BABYLON.Engine.LastCreatedScene.activeCamera.metadata.pipeline.imageProcessing.contrast = document.getElementById(\"contrast\").value;
|
|
|
609 |
BABYLON.Engine.LastCreatedScene.ambientColor = new BABYLON.Color4(255,255,255,255);
|
610 |
//BABYLON.Engine.LastCreatedScene.autoClear = false;
|
611 |
//BABYLON.Engine.LastCreatedScene.autoClearDepthAndStencil = false;
|
612 |
+
/*for (var i=0; i<BABYLON.Engine.LastCreatedScene.getNodes().length; i++) {
|
613 |
if (BABYLON.Engine.LastCreatedScene.getNodes()[i].material) {
|
614 |
BABYLON.Engine.LastCreatedScene.getNodes()[i].material.pointSize = Math.ceil(Math.log2(Math.PI/document.getElementById("zoom").value));
|
615 |
}
|
616 |
+
}*/
|
617 |
BABYLON.Engine.LastCreatedScene.getAnimationRatio();
|
618 |
//BABYLON.Engine.LastCreatedScene.activeCamera.inertia = 0.0;
|
619 |
});
|
|
|
981 |
evt.initEvent(\"click\", true, false);
|
982 |
document.getElementById(\"reset_cam\").dispatchEvent(evt);
|
983 |
}
|
|
|
984 |
BABYLON.Engine.LastCreatedScene.activeCamera.fov = this.value;
|
985 |
this.parentNode.childNodes[2].innerText = BABYLON.Engine.LastCreatedScene.activeCamera.fov;
|
986 |
|
|
|
994 |
}
|
995 |
}
|
996 |
BABYLON.Engine.LastCreatedScene.activeCamera.radius = 0;
|
|
|
997 |
BABYLON.Engine.LastCreatedScene.activeCamera.metadata.pipeline.samples = 4;
|
998 |
BABYLON.Engine.LastCreatedScene.activeCamera.fov = document.getElementById(\"zoom\").value;
|
999 |
BABYLON.Engine.LastCreatedScene.activeCamera.metadata.pipeline.imageProcessing.contrast = document.getElementById(\"contrast\").value;
|