mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 11:58:37 +02:00
disable boundaries
This commit is contained in:
parent
baa030b7b0
commit
b0cb4b7199
1 changed files with 248 additions and 265 deletions
|
@ -5,7 +5,7 @@
|
||||||
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
||||||
//
|
//
|
||||||
|
|
||||||
var version = 1100;
|
var version = 1112;
|
||||||
var cellLayout;
|
var cellLayout;
|
||||||
var baseLocation = "https://hifi-content.s3.amazonaws.com/DomainContent/CellScience/";
|
var baseLocation = "https://hifi-content.s3.amazonaws.com/DomainContent/CellScience/";
|
||||||
|
|
||||||
|
@ -112,7 +112,7 @@ var scenes = [{
|
||||||
y: 0,
|
y: 0,
|
||||||
z: 0
|
z: 0
|
||||||
},
|
},
|
||||||
radius: 450,
|
radius: 500,
|
||||||
number: 10,
|
number: 10,
|
||||||
userData: JSON.stringify({
|
userData: JSON.stringify({
|
||||||
entryPoint: locations.cellLayout[1],
|
entryPoint: locations.cellLayout[1],
|
||||||
|
@ -151,267 +151,253 @@ var scenes = [{
|
||||||
skybox: "cosmos_skybox_blurred"
|
skybox: "cosmos_skybox_blurred"
|
||||||
},
|
},
|
||||||
instances: [{
|
instances: [{
|
||||||
model: "translation",
|
model: "translation",
|
||||||
dimensions: {
|
dimensions: {
|
||||||
x: 10,
|
x: 10,
|
||||||
y: 16,
|
y: 16,
|
||||||
z: 10
|
z: 10
|
||||||
|
},
|
||||||
|
offset: {
|
||||||
|
x: 0,
|
||||||
|
y: 0,
|
||||||
|
z: 0
|
||||||
|
},
|
||||||
|
radius: 300,
|
||||||
|
number: 7,
|
||||||
|
userData: JSON.stringify({
|
||||||
|
grabbableKey: {
|
||||||
|
grabbable: false
|
||||||
},
|
},
|
||||||
offset: {
|
target: locations.ribosome[1],
|
||||||
x: 0,
|
location: locations.ribosome[0],
|
||||||
y: 0,
|
baseURL: baseLocation
|
||||||
z: 0
|
}),
|
||||||
|
script: "zoom.js?" + version,
|
||||||
|
visible: true
|
||||||
|
}, {
|
||||||
|
model: "vesicle",
|
||||||
|
dimensions: {
|
||||||
|
x: 60,
|
||||||
|
y: 60,
|
||||||
|
z: 60
|
||||||
|
},
|
||||||
|
randomSize: 10,
|
||||||
|
offset: {
|
||||||
|
x: 0,
|
||||||
|
y: 0,
|
||||||
|
z: 0
|
||||||
|
},
|
||||||
|
radius: 1000,
|
||||||
|
number: 22,
|
||||||
|
userData: JSON.stringify({
|
||||||
|
grabbableKey: {
|
||||||
|
grabbable: false
|
||||||
|
}
|
||||||
|
}),
|
||||||
|
visible: true
|
||||||
|
}, { //golgi vesicles
|
||||||
|
model: "vesicle",
|
||||||
|
dimensions: {
|
||||||
|
x: 10,
|
||||||
|
y: 10,
|
||||||
|
z: 10
|
||||||
|
},
|
||||||
|
randomSize: 10,
|
||||||
|
offset: {
|
||||||
|
x: -319,
|
||||||
|
y: 66,
|
||||||
|
z: 976
|
||||||
|
},
|
||||||
|
radius: 140,
|
||||||
|
number: 10,
|
||||||
|
userData: JSON.stringify({
|
||||||
|
grabbableKey: {
|
||||||
|
grabbable: false
|
||||||
|
}
|
||||||
|
}),
|
||||||
|
script: "",
|
||||||
|
visible: true
|
||||||
|
}, { //golgi vesicles
|
||||||
|
model: "vesicle",
|
||||||
|
dimensions: {
|
||||||
|
x: 15,
|
||||||
|
y: 15,
|
||||||
|
z: 15
|
||||||
|
},
|
||||||
|
randomSize: 10,
|
||||||
|
offset: {
|
||||||
|
x: -319,
|
||||||
|
y: 66,
|
||||||
|
z: 976
|
||||||
|
},
|
||||||
|
radius: 115,
|
||||||
|
number: 7,
|
||||||
|
userData: JSON.stringify({
|
||||||
|
grabbableKey: {
|
||||||
|
grabbable: false
|
||||||
|
}
|
||||||
|
}),
|
||||||
|
visible: true
|
||||||
|
}, {
|
||||||
|
model: "vesicle",
|
||||||
|
dimensions: {
|
||||||
|
x: 50,
|
||||||
|
y: 50,
|
||||||
|
z: 50
|
||||||
|
},
|
||||||
|
randomSize: 10,
|
||||||
|
offset: {
|
||||||
|
x: 0,
|
||||||
|
y: 0,
|
||||||
|
z: 0
|
||||||
|
},
|
||||||
|
radius: 600,
|
||||||
|
number: 15,
|
||||||
|
userData: JSON.stringify({
|
||||||
|
grabbableKey: {
|
||||||
|
grabbable: false
|
||||||
|
}
|
||||||
|
}),
|
||||||
|
script: "",
|
||||||
|
visible: true
|
||||||
|
}, { //outer vesicles
|
||||||
|
model: "vesicle",
|
||||||
|
dimensions: {
|
||||||
|
x: 60,
|
||||||
|
y: 60,
|
||||||
|
z: 60
|
||||||
|
},
|
||||||
|
randomSize: 10,
|
||||||
|
offset: {
|
||||||
|
x: 0,
|
||||||
|
y: 0,
|
||||||
|
z: 0
|
||||||
|
},
|
||||||
|
radius: 1600,
|
||||||
|
number: 22,
|
||||||
|
userData: JSON.stringify({
|
||||||
|
grabbableKey: {
|
||||||
|
grabbable: false
|
||||||
|
}
|
||||||
|
}),
|
||||||
|
script: "",
|
||||||
|
visible: true
|
||||||
|
}, { //outer vesicles
|
||||||
|
model: "vesicle",
|
||||||
|
dimensions: {
|
||||||
|
x: 40,
|
||||||
|
y: 40,
|
||||||
|
z: 40
|
||||||
|
},
|
||||||
|
randomSize: 10,
|
||||||
|
offset: {
|
||||||
|
x: 0,
|
||||||
|
y: 0,
|
||||||
|
z: 0
|
||||||
|
},
|
||||||
|
radius: 1400,
|
||||||
|
number: 22,
|
||||||
|
userData: JSON.stringify({
|
||||||
|
grabbableKey: {
|
||||||
|
grabbable: false
|
||||||
|
}
|
||||||
|
}),
|
||||||
|
visible: true
|
||||||
|
}, { //outer vesicles
|
||||||
|
model: "vesicle",
|
||||||
|
dimensions: {
|
||||||
|
x: 80,
|
||||||
|
y: 80,
|
||||||
|
z: 80
|
||||||
|
},
|
||||||
|
randomSize: 10,
|
||||||
|
offset: {
|
||||||
|
x: 0,
|
||||||
|
y: 0,
|
||||||
|
z: 0
|
||||||
|
},
|
||||||
|
radius: 1800,
|
||||||
|
number: 22,
|
||||||
|
userData: JSON.stringify({
|
||||||
|
grabbableKey: {
|
||||||
|
grabbable: false
|
||||||
|
}
|
||||||
|
}),
|
||||||
|
visible: true
|
||||||
|
}, {
|
||||||
|
model: "hexokinase",
|
||||||
|
dimensions: {
|
||||||
|
x: 3,
|
||||||
|
y: 4,
|
||||||
|
z: 3
|
||||||
|
},
|
||||||
|
randomSize: 10,
|
||||||
|
offset: {
|
||||||
|
x: 236,
|
||||||
|
y: 8,
|
||||||
|
z: 771
|
||||||
|
},
|
||||||
|
radius: 80,
|
||||||
|
number: 7,
|
||||||
|
userData: JSON.stringify({
|
||||||
|
grabbableKey: {
|
||||||
|
grabbable: false
|
||||||
},
|
},
|
||||||
radius: 300,
|
target: locations.hexokinase[1],
|
||||||
number: 7,
|
location: locations.hexokinase[0],
|
||||||
userData: JSON.stringify({
|
baseURL: baseLocation
|
||||||
grabbableKey: {
|
}),
|
||||||
grabbable: false
|
script: "zoom.js?" + version,
|
||||||
},
|
visible: true
|
||||||
target: locations.ribosome[1],
|
}, {
|
||||||
location: locations.ribosome[0],
|
model: "pfructo_kinase",
|
||||||
baseURL: baseLocation
|
dimensions: {
|
||||||
}),
|
x: 3,
|
||||||
script: "zoom.js?" + version,
|
y: 4,
|
||||||
visible: true
|
z: 3
|
||||||
}, {
|
},
|
||||||
model: "vesicle",
|
randomSize: 10,
|
||||||
dimensions: {
|
offset: {
|
||||||
x: 60,
|
x: 236,
|
||||||
y: 60,
|
y: 8,
|
||||||
z: 60
|
z: 771
|
||||||
|
},
|
||||||
|
radius: 60,
|
||||||
|
number: 7,
|
||||||
|
userData: JSON.stringify({
|
||||||
|
grabbableKey: {
|
||||||
|
grabbable: false
|
||||||
},
|
},
|
||||||
randomSize: 10,
|
target: locations.hexokinase[1],
|
||||||
offset: {
|
location: locations.hexokinase[0],
|
||||||
x: 0,
|
}),
|
||||||
y: 0,
|
script: "zoom.js?" + version,
|
||||||
z: 0
|
visible: true
|
||||||
|
}, {
|
||||||
|
model: "glucose_isomerase",
|
||||||
|
dimensions: {
|
||||||
|
x: 3,
|
||||||
|
y: 4,
|
||||||
|
z: 3
|
||||||
|
},
|
||||||
|
randomSize: 10,
|
||||||
|
offset: {
|
||||||
|
x: 236,
|
||||||
|
y: 8,
|
||||||
|
z: 771
|
||||||
|
},
|
||||||
|
radius: 70,
|
||||||
|
number: 7,
|
||||||
|
userData: JSON.stringify({
|
||||||
|
grabbableKey: {
|
||||||
|
grabbable: false
|
||||||
},
|
},
|
||||||
radius: 1000,
|
target: locations.hexokinase[1],
|
||||||
number: 22,
|
location: locations.hexokinase[0],
|
||||||
userData: JSON.stringify({
|
}),
|
||||||
grabbableKey: {
|
script: "zoom.js?" + version,
|
||||||
grabbable: false
|
visible: true
|
||||||
}
|
}],
|
||||||
}),
|
|
||||||
visible: true
|
|
||||||
}, { //golgi vesicles
|
|
||||||
model: "vesicle",
|
|
||||||
dimensions: {
|
|
||||||
x: 10,
|
|
||||||
y: 10,
|
|
||||||
z: 10
|
|
||||||
},
|
|
||||||
randomSize: 10,
|
|
||||||
offset: {
|
|
||||||
x: -319,
|
|
||||||
y: 66,
|
|
||||||
z: 976
|
|
||||||
},
|
|
||||||
radius: 140,
|
|
||||||
number: 10,
|
|
||||||
userData: JSON.stringify({
|
|
||||||
grabbableKey: {
|
|
||||||
grabbable: false
|
|
||||||
}
|
|
||||||
}),
|
|
||||||
script: "",
|
|
||||||
visible: true
|
|
||||||
}, { //golgi vesicles
|
|
||||||
model: "vesicle",
|
|
||||||
dimensions: {
|
|
||||||
x: 15,
|
|
||||||
y: 15,
|
|
||||||
z: 15
|
|
||||||
},
|
|
||||||
randomSize: 10,
|
|
||||||
offset: {
|
|
||||||
x: -319,
|
|
||||||
y: 66,
|
|
||||||
z: 976
|
|
||||||
},
|
|
||||||
radius: 115,
|
|
||||||
number: 7,
|
|
||||||
userData: JSON.stringify({
|
|
||||||
grabbableKey: {
|
|
||||||
grabbable: false
|
|
||||||
}
|
|
||||||
}),
|
|
||||||
visible: true
|
|
||||||
}, {
|
|
||||||
model: "vesicle",
|
|
||||||
dimensions: {
|
|
||||||
x: 50,
|
|
||||||
y: 50,
|
|
||||||
z: 50
|
|
||||||
},
|
|
||||||
randomSize: 10,
|
|
||||||
offset: {
|
|
||||||
x: 0,
|
|
||||||
y: 0,
|
|
||||||
z: 0
|
|
||||||
},
|
|
||||||
radius: 600,
|
|
||||||
number: 15,
|
|
||||||
userData: JSON.stringify({
|
|
||||||
grabbableKey: {
|
|
||||||
grabbable: false
|
|
||||||
}
|
|
||||||
}),
|
|
||||||
script: "",
|
|
||||||
visible: true
|
|
||||||
}, { //outer vesicles
|
|
||||||
model: "vesicle",
|
|
||||||
dimensions: {
|
|
||||||
x: 60,
|
|
||||||
y: 60,
|
|
||||||
z: 60
|
|
||||||
},
|
|
||||||
randomSize: 10,
|
|
||||||
offset: {
|
|
||||||
x: 0,
|
|
||||||
y: 0,
|
|
||||||
z: 0
|
|
||||||
},
|
|
||||||
radius: 1600,
|
|
||||||
number: 22,
|
|
||||||
userData: JSON.stringify({
|
|
||||||
grabbableKey: {
|
|
||||||
grabbable: false
|
|
||||||
}
|
|
||||||
}),
|
|
||||||
script: "",
|
|
||||||
visible: true
|
|
||||||
}, { //outer vesicles
|
|
||||||
model: "vesicle",
|
|
||||||
dimensions: {
|
|
||||||
x: 40,
|
|
||||||
y: 40,
|
|
||||||
z: 40
|
|
||||||
},
|
|
||||||
randomSize: 10,
|
|
||||||
offset: {
|
|
||||||
x: 0,
|
|
||||||
y: 0,
|
|
||||||
z: 0
|
|
||||||
},
|
|
||||||
radius: 1400,
|
|
||||||
number: 22,
|
|
||||||
userData: JSON.stringify({
|
|
||||||
grabbableKey: {
|
|
||||||
grabbable: false
|
|
||||||
}
|
|
||||||
}),
|
|
||||||
visible: true
|
|
||||||
}, { //outer vesicles
|
|
||||||
model: "vesicle",
|
|
||||||
dimensions: {
|
|
||||||
x: 80,
|
|
||||||
y: 80,
|
|
||||||
z: 80
|
|
||||||
},
|
|
||||||
randomSize: 10,
|
|
||||||
offset: {
|
|
||||||
x: 0,
|
|
||||||
y: 0,
|
|
||||||
z: 0
|
|
||||||
},
|
|
||||||
radius: 1800,
|
|
||||||
number: 22,
|
|
||||||
userData: JSON.stringify({
|
|
||||||
grabbableKey: {
|
|
||||||
grabbable: false
|
|
||||||
}
|
|
||||||
}),
|
|
||||||
visible: true
|
|
||||||
}, {
|
|
||||||
model: "hexokinase",
|
|
||||||
dimensions: {
|
|
||||||
x: 3,
|
|
||||||
y: 4,
|
|
||||||
z: 3
|
|
||||||
},
|
|
||||||
randomSize: 10,
|
|
||||||
offset: {
|
|
||||||
x: 236,
|
|
||||||
y: 8,
|
|
||||||
z: 771
|
|
||||||
},
|
|
||||||
radius: 80,
|
|
||||||
number: 7,
|
|
||||||
userData: JSON.stringify({
|
|
||||||
grabbableKey: {
|
|
||||||
grabbable: false
|
|
||||||
},
|
|
||||||
target: locations.hexokinase[1],
|
|
||||||
location: locations.hexokinase[0],
|
|
||||||
baseURL: baseLocation
|
|
||||||
}),
|
|
||||||
script: "zoom.js?" + version,
|
|
||||||
visible: true
|
|
||||||
}, {
|
|
||||||
model: "pfructo_kinase",
|
|
||||||
dimensions: {
|
|
||||||
x: 3,
|
|
||||||
y: 4,
|
|
||||||
z: 3
|
|
||||||
},
|
|
||||||
randomSize: 10,
|
|
||||||
offset: {
|
|
||||||
x: 236,
|
|
||||||
y: 8,
|
|
||||||
z: 771
|
|
||||||
},
|
|
||||||
radius: 60,
|
|
||||||
number: 7,
|
|
||||||
userData: JSON.stringify({
|
|
||||||
grabbableKey: {
|
|
||||||
grabbable: false
|
|
||||||
},
|
|
||||||
target: locations.hexokinase[1],
|
|
||||||
location: locations.hexokinase[0],
|
|
||||||
}),
|
|
||||||
script: "zoom.js?" + version,
|
|
||||||
visible: true
|
|
||||||
}, {
|
|
||||||
model: "glucose_isomerase",
|
|
||||||
dimensions: {
|
|
||||||
x: 3,
|
|
||||||
y: 4,
|
|
||||||
z: 3
|
|
||||||
},
|
|
||||||
randomSize: 10,
|
|
||||||
offset: {
|
|
||||||
x: 236,
|
|
||||||
y: 8,
|
|
||||||
z: 771
|
|
||||||
},
|
|
||||||
radius: 70,
|
|
||||||
number: 7,
|
|
||||||
userData: JSON.stringify({
|
|
||||||
grabbableKey: {
|
|
||||||
grabbable: false
|
|
||||||
},
|
|
||||||
target: locations.hexokinase[1],
|
|
||||||
location: locations.hexokinase[0],
|
|
||||||
}),
|
|
||||||
script: "zoom.js?" + version,
|
|
||||||
visible: true
|
|
||||||
}
|
|
||||||
// {
|
|
||||||
// model:"NPC",
|
|
||||||
// dimensions:{x:20,y:20,z:20},
|
|
||||||
// randomSize: 10,
|
|
||||||
// offset:{x:208.593693,y:6.113100222,z:153.3202277},
|
|
||||||
// radius:520,
|
|
||||||
// number:25,
|
|
||||||
// userData: "",
|
|
||||||
// script:"",
|
|
||||||
// visible:true
|
|
||||||
// }
|
|
||||||
|
|
||||||
|
|
||||||
],
|
|
||||||
boundary: {
|
boundary: {
|
||||||
radius: locations.cellLayout[2],
|
radius: locations.cellLayout[2],
|
||||||
center: locations.cellLayout[0],
|
center: locations.cellLayout[0],
|
||||||
|
@ -573,7 +559,7 @@ function ImportScene(scene) {
|
||||||
|
|
||||||
CreateZone(scene);
|
CreateZone(scene);
|
||||||
CreateInstances(scene);
|
CreateInstances(scene);
|
||||||
CreateBoundary(scene);
|
// CreateBoundary(scene);
|
||||||
|
|
||||||
// print("done " + scene.name);
|
// print("done " + scene.name);
|
||||||
|
|
||||||
|
@ -797,11 +783,9 @@ function CreateInstances(scene) {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function CreateIdentification(name, position, rotation, dimensions, showDistance, parentID) {
|
function CreateIdentification(name, position, rotation, dimensions, showDistance) {
|
||||||
//print ("creating ID for " + name);
|
//print ("creating ID for " + name);
|
||||||
if (parentID === undefined) {
|
|
||||||
parentID = "{00000000-0000-0000-0000-000000000000}";
|
|
||||||
}
|
|
||||||
Entities.addEntity({
|
Entities.addEntity({
|
||||||
type: "Sphere",
|
type: "Sphere",
|
||||||
name: "ID for " + name,
|
name: "ID for " + name,
|
||||||
|
@ -810,7 +794,6 @@ function CreateIdentification(name, position, rotation, dimensions, showDistance
|
||||||
green: 0,
|
green: 0,
|
||||||
blue: 0
|
blue: 0
|
||||||
},
|
},
|
||||||
parentID: parentID,
|
|
||||||
dimensions: dimensions,
|
dimensions: dimensions,
|
||||||
position: position,
|
position: position,
|
||||||
rotation: rotation,
|
rotation: rotation,
|
||||||
|
|
Loading…
Reference in a new issue