Reputation: 67
Hi has anyone been able to make a portal type thing in ThreeJS?
I want to play with impossible architecture for my thesis on VR, I've been trying to make for example a small square house that when you look through the door you see that inside the house is an impossibly large hallway that couldn't possible fit in the house.
I wanted to do it by making a 'portal' on the door that connects to another scene, and I tried doing it with rending a camera on to a texture like this example ( http://stemkoski.github.io/Three.js/Camera-Texture.html ) and by using .setViewOffset to try to crop into it, but I'm just getting very lost. and it isn't working...
Any help would greatly be appreciated; http://sanschaise.com/thesis is what I currently have..
Upvotes: 2
Views: 1428
Reputation: 4494
Just wanted to let you know, for the portals I did the rendering also with the camera to texture demo from Stemkoski.
I dont understand your exact problem or what you experienced, but its totally do-able:
Also the portals are actually working and teleporting the player :)
Upvotes: 1