Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 shodanjr_gr · Nov 04, 2011 at 10:17 PM · stereocave

Possible to manually control buffer swapping (for side-by-side distributed 3D Stereo)?

I am investigating using Unity for a 5-wall CAVE system. Our system uses side-by-side (horizontal span) stereo along with frame locking NVIDIA GSync Framelocking and soft-lock via "swap buffer" packets over the network (as in, the vertical sync signals are linked to the shutter glass system via GSync but the applications themselves swap buffers when receiving packets from the head node).

I am wondering if it is possible to accomplish something similar in Unity. I know side-by-side stereo is possible (dual camera, RTT arrangement) but I am not positive about the manual buffer swapping aspect. I am aware of WaitForEndOfFrame() which claims to trigger just before the frame appears on the screen) but, with my limited Unity-specific knowledge, I can not deduce whether this truly serves the purpose that I have (basic having the engine render the scene, then wait until receiving a packet over the network, THEN swapping buffers).

Can anyone confirm/deny whether this behavior is possible?

Comment
Add comment
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
0

Answer by syclamoth · Nov 04, 2011 at 11:18 PM

I've recently answered a question like this, and basically it comes down to using

 camera.Render();

to manually render the screen whenever you recieve the signal to.

I'm not sure about this network-buffer thing- you'd have to make sure it's pretty low-latency if your rendering is dependant on it.

Comment
Add comment · 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
0

Answer by shodanjr_gr · Nov 06, 2011 at 04:24 AM

To my understanding, camera.Render() tells the camera to commence rendering. It gives you no control about when the back-buffer is brought forward when doing double buffering. If all the nodes in the cluster need exactly the same amount of time to render then everything is fine, however, if that is not the case, then you basically end up with unsynchronized rendering (which can be quite bad over multiple displays that are tiled).

That's why I'm looking for the more fine-grained control over glSwapBuffers(); That can be invoked once all nodes have reported that they've completed rendering but have not yet swapped buffers so the only discrepancies in synchronization will be due to network delay (which, in a LAN) is quite small.

Comment
Add comment · 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.

Follow this Question

Answers Answers and Comments

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Using stereo sound 1 Answer

Unity Windowed Resolution Smaller than Chosen Resolution? 2 Answers

Active 3D Stereo / Difference stereoscopic rendering and VR enabled 1 Answer

Is it possible to build caves in the unity terrain? 1 Answer

Shader does not take tiling into account 1 Answer


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