Forum Discussion
arharvey
10 years agoHonored Guest
Reusing a rendered background image for both eyes
Hi there, I'm just getting into VR development with Unity 5.2...
In the game I'm writing my world's background (i.e; the far distance) is procedural and rendered using a native C++ plugin. Since the background is far way it should appear the same for both eyes. It's rather wasteful doing the same expensive render twice so I'd like to render once and reuse the image for each eye.
Does anyone have any ideas or links that may prove useful?
From my Googling it seems I should create a camera and link it to a render texture. Question is, how do I ensure Unity renders this camera before the left and right eyes?
Many thanks!
In the game I'm writing my world's background (i.e; the far distance) is procedural and rendered using a native C++ plugin. Since the background is far way it should appear the same for both eyes. It's rather wasteful doing the same expensive render twice so I'd like to render once and reuse the image for each eye.
Does anyone have any ideas or links that may prove useful?
From my Googling it seems I should create a camera and link it to a render texture. Question is, how do I ensure Unity renders this camera before the left and right eyes?
Many thanks!
2 Replies
Replies have been turned off for this discussion
- cyberealityGrand ChampionYeah, I think setting a camera to use a render texture and placing that on a quad will do what you need.
- arharveyHonored GuestCool - I'll give that a go...
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 1 year ago
- 2 years ago