Skip to content

AR mode #2139

Answered by soywiz
RjvPivs asked this question in Q&A
AR mode #2139
Jan 29, 2024 · 1 comments · 5 replies
Discussion options

You must be logged in to vote

Oh I see. No, I didn't meant it was not possible, just that there is nothing specific implemented in KorGE about that.
You can use the camera API for the operating systems you are using and place them into a texture; for example Android and iOS and grab the image sequences and use them in code.
For example: https://developer.android.com/media/camera/camera-deprecated/camera-api

To avoid fetching pixels from the camera, if there is an API to get an OpenGL texture from the camera:
https://stackoverflow.com/questions/57331861/get-the-opengl-texture-handle-from-a-surfacetexture

Then you can use ForcedTexNativeImage:

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@RjvPivs
Comment options

@soywiz
Comment options

@RjvPivs
Comment options

@soywiz
Comment options

Answer selected by RjvPivs
@RjvPivs
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants