GameMaker Studio 2 (all)
Icon

GMESCAPI

nkrapivindev

You must be logged in to obtain assets

Description

GMESCAPI is a modification of ESCAPI (Extremely Simple Capture API) by Jari Komppa.

It allows you to capture frames from a webcam into a buffer which you can then write to a surface and do crazy stuff.

buffer_set_surface IS BUGGED IN GM:S 1.4, PLEASE USE THE scr_set_surface SCRIPT INSTEAD!

You can also set camera options such as Hue, Brightness, Color Balance, although keep in mind that some cameras may not support certain attributes!

Documentation: https://github.com/nkrapivin/GMESCAPI/wiki

Source code: https://github.com/nkrapivin/GMESCAPI

FAQ:

Q: What about Linux... or macOS?

A: Porting the existing code itself is not possible, ESCAPI is essentially just a wrapper around Windows Media Foundation. Which is a Windows only API. I do think about making a Linux version, but it won't be ESCAPI anymore. I don't own a Mac so a macOS version is highly unlikely.

Q: How do I get support?

A: While you can drop me a letter on the support email, I don't check email very often, Discord is the preferred way (nik#5351).

Q: So how do I set brightness?

A: Everything is explained in the documentation (link above).

Q: How do I record sound from the webcam's microphone?

A: Webcam mics are usually detected by Windows as regular microphones, just use GM's built-in microphone record functionality. (look for audio_start_recording)

Q: Who made the awesome logo?

A: YAL, check out his extensions too: https://marketplace.yoyogames.com/publishers/866/yellowafterlife

End User Licence Agreement (EULA).

Age Rating: 4+

Versions

GMS2.3 - Version 1.1.1. Published November 11, 2020

Fixed the default focus frames value.

GMS2 - Version 1.1.0. Published November 11, 2020

Fix the default focus frames value.

GMS1 - Version 1.1.3. Published November 12, 2020

Initial release for GM:S 1.4.

buffer_set_surface IS BUGGED IN GM:S 1.4, PLEASE USE THE PROVIDED scr_set_surface SCRIPT INSTEAD!!!

Loading, please wait

Package contents

Loading, please wait

What is the issue?

Loading, please wait

Back to Top