• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
Question by cadpeople · May 03, 2016 at 02:15 PM · cameravrskybox360-degreesstereoscopic

"Moving" skybox closer, to emulate a smaller room? (VR 360 degree app)

Using a stereoscopic 360 degree 3d render; I'm trying to get a similar experience to the Oculus 360 degree image viewer for the Gear VR. When I use my stereoscopic image in the Oculus app, I have an experience that's close (enough) to being in the room; but when I do the same in my app, the experience is that I'm tiny and floating in the middle of a huge room. It is also hard to focus on close things in my app, while it is a lot easier in the Oculus app.

My current setup is that I have a seperate camera for each eye, with a seperate skybox (Each of the rendered perspectives) for each eye. Any ideas how I can reduce the feeling of being tiny, or another way (Not using skyboxes) to accomplish my goal?

Any, and all ideas appreciated!

Comment

People who like this

0 Show 0
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by cadpeople · May 03, 2016 at 05:03 PM

Okay so I finally had a Eureka moment. Sorry, for wasting your time @coolraiman, thanks any way :) It turns out that the images for the left and right eye were reversed... I foolishly assumed that the left part of the image, was for the left eye, and vice versa. BTW: I tried the whole hollow cube manual skybox thing, but the lighting got kind of weird, even with an unlit shader.

I guess if others ever have the same issue, make sure you were not as moronic as me...

Comment
coolraiman

People who like this

1 Show 0 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image

Answer by coolraiman · May 03, 2016 at 02:43 PM

this is not how a skybox work

A skybox will always be at the horizon no matter what. When your camera render the game, if any pixel of the screen would be empty because of far limit or because there is just nothing, it will render the skybox for that specific pixel depending only on the angle of the camera.

is your skybox the room itself? Maybe you should try to make a physical skybox, create a cube out of 6 planes or quads if you want it to act a little more like a skybox, add a parent to the planes and make sure it is perfectly in the center of that planes cube

Then add a script like that

 using UnityEngine;
 using System.Collections;
 
 public class ManualSkybox: MonoBehaviour {
 
     private Transform camPos;
     private Transform pos;
     // Use this for initialization
     void Start () {
         camPos = Camera.main.transform;
         pos = transform;
     }
 
     private void LateUpdate()
     {
         pos.position = camPos.position;
     }
     
 
 }


It is really important to use LateUpdate instead of update if you want your skybox to be smooth and not dependent of script execution order. (if the skybox update before you move the camera, the skybox will act weird)

Comment
cadpeople

People who like this

1 Show 0 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Update about the future of Unity Answers

Unity Answers content will be migrated to a new Community platform and we are aiming to launch a public beta later in June. Please note, we are aiming to set Unity Answers to read-only mode on the 31st of May in order to prepare for the final data migration.

For more information, please read our full announcement.

Follow this Question

Answers Answers and Comments

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Build windows with stereoscopic camera 2 Answers

Gear VR per eye cameras only one works 1 Answer

2 camera setup in VR for 3D skybox no longer works 1 Answer

360 Video Conversion 0 Answers

How to save position of stereo vrcameras 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges