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

Update to 2020? #40

Open
bryanrtboy opened this issue Jan 8, 2021 · 16 comments
Open

Update to 2020? #40

bryanrtboy opened this issue Jan 8, 2021 · 16 comments
Assignees
Labels
question Further information is requested

Comments

@bryanrtboy
Copy link

Any chance of updating this project to 2020 or 2021? This is the only project with SRP that I can run in Unity. The intel sample project only runs on much older versions of Unity.

@keijiro keijiro self-assigned this Jan 8, 2021
@keijiro keijiro added the question Further information is requested label Jan 8, 2021
@keijiro
Copy link
Owner

keijiro commented Jan 8, 2021

I think you can run it on 2020/2021. Did you find any issue?

@bryanrtboy
Copy link
Author

bryanrtboy commented Jan 8, 2021

I get an error ARBackgroundRenderer does not exist in the RsARBackgroundRenderer.cs script. To fix this, I have to comment out the references to it. Importing ARFoundation does not work.

You're right though, most scenes will run with that commented out, except for the Capture scene that uses the SDK directly on the CombinedDriver.cs script. The error is the camera isn't recognized "ExternalException: rs2_pipeline_start_with_config"

Using Windows 10 and 2020.2, but the same error showed up in 2021 beta

@keijiro
Copy link
Owner

keijiro commented Jan 8, 2021

Uh-oh. Okay, there is a compatibility issue on the SDK side. I should look into it.

@masternader
Copy link

Same error (although I did not know other scenes are still functional with RsARBackgroundRenderer refs commented out) with capture scene.

@Drumaddict182
Copy link

Hi keijiro, first thank you for your crazy work. I'm really interested of using Rsvfx but it doesn't work with 2020 unity. Is there a version of unity which can still run Rsvfx ?

Arigato gozaimasu.

@keijiro
Copy link
Owner

keijiro commented Mar 13, 2021

@Drumaddict182 I'm pretty sure that it runs on Unity 2019.2 or 2019.3. You can download them from https://unity3d.com/get-unity/download/archive

@Drumaddict182
Copy link

Thanks you. I can open the project without error with Unity 2019.2.5. But when I load a scene and press play, the screen is all black, no video is displayed. Do you know what can be the reason ? I have a D415 Camera.

Arigato gozaimasu.

@Drumaddict182
Copy link

Thanks you. I can open the project without error with Unity 2019.2.5. But when I load a scene and press play, the screen is all black, no video is displayed. Do you know what can be the reason ? I have a D415 Camera.

Arigato gozaimasu.

Ok so now it works and i didn't' change anything. Niiice !

@getarobo
Copy link

Had similar issue on Unity 2020, I had set Occlusion Removal of RsProcessingProfile of Point Cloud to on or off.

@Drumaddict182
Copy link

Hi everyone. Did someone find a way to run this project on Unity 2020 ?

Thank you.

@Drumaddict182
Copy link

@bryanrtboy I'm trying to run this project on Unity 2020 but i have the same ARBackgroundRenderer issue. You say that you can fix this problem by comment out the references to it. But i don't understand which lines in the ARBackgroundRenderer.cs script i have to comment out... I'm not a developer. Any help would be very appreciated. Thanks a lot.

@harryw123545
Copy link

Has anyone managed to find a fix for this yet?

@Drumaddict182
Copy link

@harryw123545 I have managed to make it work with Unity 2021. It's the ARBackgroundRenderer.cs scipt that is the problem. I can share my project with you if you want. But you can not use the latest Realsense SDK with it, there is an other error. But it works fine with the Realsense SDK 2.3.

@harryw123545
Copy link

@Drumaddict182 If you could share that would be very appreciated thank you!

@Drumaddict182
Copy link

Maybe the faster way is to give you the 2 scripts i have modified to make it work. Et voilà :
Rsvfx_Scripts_Unity2021.zip
Juts switch this two scripts with the ones in the Rsvfx original project.
I'm using the 2021.3.3 version of Unity. I hope it will work for you. Tell me if you have any trouble.

@harryw123545
Copy link

@Drumaddict182 Managed to get it working, thanks so much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

6 participants