repo: janusweb
action: commit
revision: 
path_from: 
revision_from: 4b464f857288f52da252c3c4ad36254fc6261646:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit 4b464f857288f52da252c3c4ad36254fc6261646
Author: James Baicoianu 
Date:   Mon Apr 11 02:14:03 2016 -0700

    ou3d support

diff --git a/scripts/image.js b/scripts/image.js
index 6963b69a8aee6f49d9f51c70a1ad1f65e4099664..
index ..6af36277b5e5d3081159b0d71670f6d1530c0746 100644
--- a/scripts/image.js
+++ b/scripts/image.js
@@ -43,6 +43,7 @@ elation.require(['engine.things.generic'], function() {
         image_id: { type: 'string' },
         color: { type: 'color', default: 0xffffff },
         sbs3d: { type: 'boolean', default: false },
+        ou3d: { type: 'boolean', default: false },
         reverse3d: { type: 'boolean', default: false },
         lighting: { type: 'boolean', default: true },
       });
@@ -67,6 +68,7 @@ elation.require(['engine.things.generic'], function() {
         aspect = this.texture.image.height / this.texture.image.width;
       }
       if (this.properties.sbs3d) aspect *= 2;
+      if (this.properties.ou3d) aspect /= 2;
       var box = new THREE.BoxGeometry(2, 2 * aspect, thickness);
       box.applyMatrix(new THREE.Matrix4().makeTranslation(0, 0, thickness / 2));
       return box;

-----END OF PAGE-----