Rsvfx icon indicating copy to clipboard operation
Rsvfx copied to clipboard

Update to 2020?

Open bryanrtboy opened this issue 4 years ago • 16 comments

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.

bryanrtboy avatar Jan 08 '21 01:01 bryanrtboy

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

keijiro avatar Jan 08 '21 01:01 keijiro

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

bryanrtboy avatar Jan 08 '21 06:01 bryanrtboy

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

keijiro avatar Jan 08 '21 09:01 keijiro

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

masternader avatar Jan 08 '21 16:01 masternader

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.

Drumaddict182 avatar Mar 12 '21 14:03 Drumaddict182

@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

keijiro avatar Mar 13 '21 02:03 keijiro

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 avatar Mar 14 '21 13:03 Drumaddict182

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 !

Drumaddict182 avatar Mar 15 '21 18:03 Drumaddict182

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

getarobo avatar Mar 17 '21 08:03 getarobo

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

Thank you.

Drumaddict182 avatar May 05 '21 14:05 Drumaddict182

@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.

Drumaddict182 avatar May 22 '21 22:05 Drumaddict182

Has anyone managed to find a fix for this yet?

harryw123545 avatar Oct 05 '22 11:10 harryw123545

@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.

Drumaddict182 avatar Oct 06 '22 08:10 Drumaddict182

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

harryw123545 avatar Oct 06 '22 09:10 harryw123545

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.

Drumaddict182 avatar Oct 06 '22 15:10 Drumaddict182

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

harryw123545 avatar Oct 06 '22 15:10 harryw123545