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

CameraTextureBackground doesn't support Built-in Render Pipeline #311

Closed
Pypow opened this issue Aug 3, 2023 · 4 comments · Fixed by #317
Closed

CameraTextureBackground doesn't support Built-in Render Pipeline #311

Pypow opened this issue Aug 3, 2023 · 4 comments · Fixed by #317
Labels
Android bug Something isn't working Windows

Comments

@Pypow
Copy link

Pypow commented Aug 3, 2023

Environment

  • OS: Windows 11
  • Unity Version: Unity 2021.3.19f1

Describe the bug
When I click on play in the SSD sample Unity Scene, I can see that my webcam is turning on, in the Unity game view I can see solid gray background and objects being detected (Green bounding box with label). I am not getting live camera feed from my webcam.
(I have tried to build it to Android device (Android:13, ARM64), but I experienced the same issue as above)

Steps to reproduce the behavior:

  1. Download this repo and make changes to manifest file as below, delete packages-lock.json.
  2. open SSD Sample Scene.
  3. Play the scene.

Expected behavior
The bounding box of detected objects should appear with the camera live feed as the background.

Screenshots
manifest_update
output

Additional context
Referred to similar issue: #250. Since my scene was getting updated I assumed unity version was not the problem.
Let me know if I have done anything wrong or if you need any additional information.
Great Repo! Thank you for your hard work.

@asus4 asus4 added bug Something isn't working Windows Android labels Aug 31, 2023
@asus4
Copy link
Owner

asus4 commented Sep 5, 2023

I didn't reproduce this. Would you mind uploading a repro project to GitHub or somewhere?

@Pypow
Copy link
Author

Pypow commented Sep 7, 2023

Sure,
Project Repo: https://github.com/Pypow/TFLiteSetUp

When uploading the project to GitHub, I noticed I had a missing script on Main Camera, this may be the cause of my issue,
screenshot missing script

Although I am not able to figure out the name of the missing script, I believe it was due to a compile error related to some missing package?

Here is a screenshot of my Package Manager,
image

Thanks for your help!

@asus4
Copy link
Owner

asus4 commented Sep 11, 2023

@Pypow Thanks for sharing your project.

I figured out the issue. The CameraTextureBackground.cs supports only URP by adding CameraTextureBackgroundRendererFeature in the Renderer Feature config. And it didn't support the Built-in Render Pipeline. I'll add support for the Built-in Render Pipeline.

@asus4 asus4 changed the title Not Getting Camera Feed in SSD Sample Scene CameraTextureBackground doesn't support Built-in Render Pipeline Sep 11, 2023
@asus4
Copy link
Owner

asus4 commented Sep 11, 2023

@Pypow, this issue should have been fixed in #317. Please check it out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Android bug Something isn't working Windows
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants