Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for direct-to-camera rendering in URP #33

Open
BitBarrel opened this issue Apr 8, 2024 · 4 comments
Open

Support for direct-to-camera rendering in URP #33

BitBarrel opened this issue Apr 8, 2024 · 4 comments

Comments

@BitBarrel
Copy link

BitBarrel commented Apr 8, 2024

Currently, direct-to-camera rendering in Unity URP is not supported when using RiveScreen.cs. The build-in pipeline will be phased out eventually.

Starting points:

https://docs.unity3d.com/Packages/[email protected]/manual/post-processing/post-processing-custom-effect-low-code.html

https://github.com/Cyanilux/URP_BlitRenderFeature

@pjarnfelt
Copy link

URP is working. Make sure to check the correct documentation and also the URP example project. Also, potentially search the issue list before posting. There are other posts about URP where this confusion has been addressed.

@BitBarrel
Copy link
Author

BitBarrel commented Apr 8, 2024

Thank you for your answer. I used the search function in both google and on this github page and nothing showed up.

The documentation page on the rive-unity github. Both https://help.rive.app and https://rive.app/community/ do not give any search result when typing in URP.

The URP example doesn not draw the texture to the camera like RiveScreen.cs does.

Would you be so kind to point me to the correct documentation page or a project where it explains how to draw directly to the camera?

@pjarnfelt
Copy link

Yeah. The documentation is a bit of a mess. They're also moving things to a new site it seems, and a lot of the discussion was on discord which they deleted. But here is an example of rive working on URP. https://github.com/rive-app/rive-unity-examples/tree/main/minion-head-tracking-urp
In the URP method you cannot use a command buffer on the camera, but must rather call submit and advance on the renderer in the update method
private void Update() { m_riveRenderer.Submit(); if (m_stateMachine != null) { m_stateMachine.Advance(Time.deltaTime); } }

@BitBarrel
Copy link
Author

Thanks, much appreciated.

I re-worded the issue post a bit to make it more clear that it is about direct-to-camera rendering.

@BitBarrel BitBarrel changed the title Support for URP Support for direct-to-camera rendering in URP Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants