Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle 360_CUBE projection #86

Merged
merged 5 commits into from
May 23, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Handle 360_CUBE projection
  • Loading branch information
dillontiner committed May 12, 2018
commit 31badfd3fdf0c14a72726985d385095f4d5d42ec
2 changes: 0 additions & 2 deletions src/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,6 @@ class VR extends Plugin {
this.scene.add(this.movieScreen);

} else if (projection === '360_CUBE') {
// Currently doesn't work - need to figure out order of cube faces
// CubeGeometry is legacy name, refers to BoxGeometry
this.movieGeometry = new THREE.BoxGeometry(256, 256, 256);
const face1 = [new THREE.Vector2(0, 0.5), new THREE.Vector2(0.333, 0.5), new THREE.Vector2(0.333, 1), new THREE.Vector2(0, 1)];
const face2 = [new THREE.Vector2(0.333, 0.5), new THREE.Vector2(0.666, 0.5), new THREE.Vector2(0.666, 1), new THREE.Vector2(0.333, 1)];
Expand Down