Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • 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
2
Question by MementoMori000 · Jun 18, 2016 at 10:43 AM · unity 5oculus

Scale VR by changing the rig, not the scene content

When asked how to scale a VR experience, people suggest to scale the actual scene content. That may be fine for a simple test scene, but for complex production ones is really not a viable option.

Take a complex scene, with terrain, trees, particle emitters, lights etc. I started investigating what scaling such a scene would mean, but it looks like a huge pain. Terrain has its own scale. Trees instances would have to be scaled as well. DetailPrototypes (grass, bushes) would need a more drastic solution where you change their min/max sizes (affecting the project content, not just the scene). Then there is particle emitters that need adjustment. Then lights, etc.

Now, it looks much less of a work to just change the VR rig, which to my understanding means: - Scale the eye separaion - Scale the tracking data

I'm using Unity 5.3.5 without any external plugin/package. Do you have suggestions how I can achieve this?

Comment
Add comment · Show 1
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 petey · Jun 25, 2017 at 01:08 AM 0
Share

hey @mementomori000 just wondering, did you ever figure out a way to do this nicely?

1 Reply

· Add your reply
  • Sort: 
avatar image
-1

Answer by phxvyper · Jun 18, 2016 at 10:45 AM

Have a single GlobalScalar GameObject centered at (0, 0, 0) that you parent over everything that you want to scale.

If you want everything to scale together, then keep them all under the GlobalScalar object and scale the GlobalScalar object.

If you want to scale groups of items, then have GameObjects as children under the GlobalScalar for groups. E.g, have a Trees GameObject with all of your trees, then scale the Trees GameObject whenever you need to.

Don't worry about the performance of scaling so many objects at once with a global object. Unity does this in a non-recursive method (when they render it, they just multiply the individual object's localScale with its parent's localScale, instead of recursively setting a scale).

Here's a quick profile of scaling 1000 cubes at once using this method.

Comment
Add comment · Show 1 · 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 MementoMori000 · Jun 29, 2016 at 09:07 PM 0
Share

Thanks, but this is not what I'm looking for.

Unity terrain and trees system does not inherit the transform of the parent, so you cannot scale it like that. Same story for the particles and lights settings.

I can build some helper scripts to address all these different cases, but to be honest, it would be much better to just scale the VR rig.

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.

Follow this Question

Answers Answers and Comments

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

OVRCameraRig export Depth Map 0 Answers

Position sensor of Oculus Rift 0 Answers

Unity Build not running on Oculus DK2 3 Answers

How do you use the Gear VR touchpad to let the player walk around? 0 Answers

Mirror Hands with Leap Motion in VR 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