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
1
Question by vizitechusa · Aug 28, 2018 at 03:29 PM · vrshadersrenderernvidiafluid

NVidia Flex VR Shader rendering issue

I am working with NVidia Flex for a fluid simulation, using the FlexDrawFluid2 shader, which is working great. However, I am running into an issue when I add Vive VR to my scene. The fluid simulation is rendering in two locations in the HMD. In an attempt to resolve the issue, I also implemented NVidia VRWorks, but the SPS and LMS modes did not help like I was hoping they would.

After looking around, I am very sure that the FLEX shader I am using is not setup to work in VR, but I am not very familiar with shader programming to understand how some of the suggested fixes could resolve my issue.

Has anyone else had this issue and successfully resolved it with a fluid shader that will run in VR? If so, I would appreciate any assistance in implementing a fix.

Thanks in advance for the help!

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

1 Reply

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by vizitechusa · Sep 10, 2018 at 08:13 PM

After researching other efforts around this sort of issue, I found a work around solution to this issue. Create an empty under SteamVRObjects. I called it FluidVRCameras. Under that, create two new camera objects, LeftCamera and RightCamera. Set each camera setting to render "Only Left" and "Only Right" instead of "Both." Also, add the Steam VR_Camera script from the SDK to each camera.


DO NOT make these new camera's children of the default VRCamera (eye) object. This will cause double translation to effect your cameras. Actually, it does not seem I need the VRCamera (eye) object any more and I deleted it from the hierarchy and replaced the Hmd Transforms public gameobject with my FluidVRCameras object. Seems to be working well so far.


I am able to see the FlexFluid shader, in SteamVR in Unity 2917.4. I have not worked on optimizing it yet, so there still might be issues, but it is a big step in the right direction for me.


From reading various posts, etc, I suspect that there is a much more economical solution to solve the screen space rendering issues of the shader. I am not a shader expert, but it seems like there is a way to get the fluid shader to output a render to the left eye and right eye directly. Then you would not need to create a camera rig like I mentioned above and just use the standard SteamVR setup, I believe.


If someone reads this and is successful at creating a fix for the FlexDrawFluid2 shader, I would really appreciate sharing it here.

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

122 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

I get weird bug when i use scene depth node in shader graph (lwrp) in VR Oculus rift. 0 Answers

Fuse objects visually when close to each other Shader/ Effect 2 Answers

BlackScreen on build Android VR, After LWRP install 1 Answer

Universal Render is stuck applying Cyan 1 Answer

Single pass rendering + Custom fragment shader with lightmaps & reflection probes? 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