From 87b755f4b3ea6c0d91555dabe6bf1c89b6c663a7 Mon Sep 17 00:00:00 2001 From: Pete Shadbolt Date: Mon, 10 Jul 2017 17:09:58 -0700 Subject: [PATCH] Presentation details. --- abp/static/scripts/editor.js | 4 ++-- abp/static/scripts/gui.js | 2 ++ abp/static/scripts/materials.js | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/abp/static/scripts/editor.js b/abp/static/scripts/editor.js index 9ce4ad7..816dbcf 100644 --- a/abp/static/scripts/editor.js +++ b/abp/static/scripts/editor.js @@ -58,7 +58,7 @@ editor.onClick = function() { if (found) { editor.focus(found); var node=found; - editor.grid.position.copy(abj.node[node].position); + //editor.grid.position.copy(abj.node[node].position); gui.controls.target.copy(abj.node[node].position); node_name.innerHTML = "Node " + node; node_data.className = "visible"; @@ -98,7 +98,7 @@ editor.prepare = function() { mouse.onShiftClick = editor.onShiftClick; mouse.onCtrlClick = editor.onCtrlClick; document.addEventListener("keydown", editor.onKey, false); - editor.makeGrid(); + //editor.makeGrid(); }; editor.onKey = function(evt) { diff --git a/abp/static/scripts/gui.js b/abp/static/scripts/gui.js index 15ba426..247646d 100644 --- a/abp/static/scripts/gui.js +++ b/abp/static/scripts/gui.js @@ -18,6 +18,8 @@ gui.prepare = function() { gui.controls.rotateSpeed = 0.2; gui.controls.userPanSpeed = 0.1; gui.camera.position.set(0, 0, 10); + gui.controls.autoRotate = true; + gui.controls.autoRotateSpeed = 0.1; }; // Someone resized the window diff --git a/abp/static/scripts/materials.js b/abp/static/scripts/materials.js index d0ee18d..90f55f6 100644 --- a/abp/static/scripts/materials.js +++ b/abp/static/scripts/materials.js @@ -1,7 +1,7 @@ var materials = {}; var curveProperties = { - splineDensity: 1, + splineDensity: 10, curvature: 20 }; @@ -16,7 +16,7 @@ materials.prepare = function() { }); materials.edge.depthTest = false; materials.qubit = new THREE.PointsMaterial({ - size: 0.3, + size: 0.6, map: ballSprite, alphaTest: 0.5, transparent: true,