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

One platform to build and deploy the best data apps

Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Learn more