Skip to content
Snippets Groups Projects
Commit 927eda4c authored by Amanda Ghassaei's avatar Amanda Ghassaei
Browse files

eod

parent 32f7979f
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,13 @@
(function () {
var cellGeometry = new THREE.OctahedronGeometry(30);
var cellGeometry = new THREE.OctahedronGeometry(30/Math.sqrt(2));
cellGeometry.applyMatrix(new THREE.Matrix4().makeRotationZ(-3*Math.PI/12));
cellGeometry.applyMatrix(new THREE.Matrix4().makeRotationX(Math.asin(2/Math.sqrt(2)/Math.sqrt(3))));
cellGeometry.applyMatrix(new THREE.Matrix4().makeTranslation(0,-30/Math.sqrt(3)/2,30/2));
var cellMaterials = [new THREE.MeshNormalMaterial(), new THREE.MeshBasicMaterial({color:0x000000, wireframe:true})];
function Cell() {
......
......@@ -19,7 +19,7 @@ function ThreeModel(){
camera.position.z = 165;
camera.up.set(0,0,1);//set z axis as "up"
scene.fog = new THREE.FogExp2(0xcccccc, 0.002);
scene.fog = new THREE.FogExp2(0xcccccc, 0.001);
// lights
var light = new THREE.DirectionalLight(0xffffff);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment