flame icon indicating copy to clipboard operation
flame copied to clipboard

Ability to render android texture or platformView with Flame3d

Open rohitsangwan01 opened this issue 2 months ago • 2 comments

Problem to solve

Hey can we use textureId or render platformView in flame3d

Proposal

Maybe an option to pass textureId

More information

No response

Other

  • [ ] Are you interested in working on a PR for this?

rohitsangwan01 avatar Oct 29 '25 11:10 rohitsangwan01

Can you elaborate what you mean with textureId here, and also how you envision that platform views would work in Flame 3D?

spydon avatar Oct 31 '25 00:10 spydon

@spydon so when we create a surfaceTexture in native android using flutterRendere, we get a textureId from it, and then we uses that TextureId to render in Flutter with Texture widget, right So i was thinking of a possibility to get those frames from surfaceTexture and render directly in Flame somehow. usecases are: to render videos, webviews etc in Flame

rohitsangwan01 avatar Oct 31 '25 02:10 rohitsangwan01