Skip to content

Add a camera feed demo in misc #1225

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

shiena
Copy link

@shiena shiena commented Jun 26, 2025

This is a demo project for camera feed and camera server.

Supported Platforms

  • Linux
  • Android (4.5 or later)

Limitations

Pull requests have been proposed for Windows, iOS and Web.

macOS and iOS are incomplete due to bugs.

Support CameraServer.feeds_updated signal.

Preview

camera_feed

@shiena shiena force-pushed the feature/camerafeed-demo branch from 32d07e5 to d7aa707 Compare June 26, 2025 21:29
@shiena shiena force-pushed the feature/camerafeed-demo branch from d7aa707 to 31daada Compare June 26, 2025 22:12
Copy link
Member

@Calinou Calinou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that the demo requires 4.5 (even on unsupported platforms), as it references the monitoring_feeds property which doesn't exist on 4.4.1. This is not essential to fix to merge (it's fine for this demo to be 4.5+), but I thought I'd mention nonetheless.

Some feedback:

  • The demo should be switched to the Compatibility rendering method if it doesn't use features exclusive to Forward+/Mobile.
  • The demo's folder should be renamed from camerafeed to camera_feed.
  • application/run/low_processor_mode should be enabled in the Project Settings to reduce CPU/GPU utilization when idle.

@shiena shiena force-pushed the feature/camerafeed-demo branch 2 times, most recently from 95f148b to 7c11b39 Compare June 27, 2025 08:46
@shiena
Copy link
Author

shiena commented Jun 27, 2025

@Calinou
Updated based on review feedback:

  • Add require 4.5
  • Switch to the Compatibility rendering
  • Rename from camerafeed to camera_feed
  • Enable application/run/low_processor_mode

@Calinou
Copy link
Member

Calinou commented Jun 27, 2025

The demo should use a lower window size on desktop platforms. Otherwise, on a 1080p display, it'll look like this when run from the editor with game window embedding enabled:

image

You can do this by changing Window Width Override and Window Height Override to 480 and 854 respectively. This will allow it to fit on a 1080p display. (The setting is ignored on mobile platforms.)

@shiena shiena force-pushed the feature/camerafeed-demo branch from 7c11b39 to c48aa42 Compare June 27, 2025 18:23
@shiena
Copy link
Author

shiena commented Jun 27, 2025

  • Changed Window Width Override and Window Height Override

@shiena shiena requested a review from Calinou June 27, 2025 18:28
@shiena shiena force-pushed the feature/camerafeed-demo branch 9 times, most recently from bea0171 to aea91ff Compare July 4, 2025 10:11
@shiena shiena force-pushed the feature/camerafeed-demo branch from aea91ff to 292547b Compare August 10, 2025 11:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants