Published
Edited
Jun 12, 2021
2 stars
Insert cell
Insert cell
Insert cell
zUpCont = new THREE.Group()
Insert cell
{
THREE.Object3D.DefaultUp.set(0, 0, 1);
scene.add(zUpCont);
}
Insert cell
Insert cell
Insert cell
{
const pointLight = new THREE.PointLight(0xff0000, 1, 10000);
pointLight.position.set(0, 0, 10);
pointLight.castShadow = true;
zUpCont.add(pointLight);

const helperSize = 1;
const pointLightHelper = new THREE.PointLightHelper(pointLight, helperSize);
scene.add(pointLightHelper);
}
Insert cell
Insert cell
vector = new THREE.Vector3(0, 20, 100)
Insert cell
rotateCoordinates = function(vector) {
var rotateTaitBryan = Vessel.Vectors.rotateTaitBryan;
var rotVector = new THREE.Vector3(-Math.PI / 2, 0, 0);

var newVector = rotateTaitBryan(vector, rotVector);

return newVector;
}
Insert cell
rotateCoordinates(vector)
Insert cell
Vessel.Vectors.rotateTaitBryan
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more