Replies: 2 comments
-
I have added some code to test, here is my result:
But, when I got Texture in TALVideoPlayerSurface.OnFrameAvailable, and then I set it to MyMaterialSource1.Texture, my Sphere1 show nothing, it just changed from black ( no picture) to white. |
Beta Was this translation helpful? Give feedback.
-
update: After I change the color of ViewPort3D to black, and when the video is playing, I can see some white strings on the 3D control. |
Beta Was this translation helpful? Give feedback.
-
I have learned the code of TALAndroidVideoPlayer. The player show video by this code:
TCustomCanvasGpu(Canvas).DrawTexture
here, it is a TalTexture.
The Canvas is from TALRectangle.
A 3D TShpere I just know that set a TTextureMaterialSource to it, and load a bitmap into TTextureMaterialSource can show this bitmap on TShpere. But how to show a TalTexture on a TSphere?
Please show some method. Thanks.
Beta Was this translation helpful? Give feedback.
All reactions