You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm always frustrated when streaming screen capture video to my Unity WebRTC project the texture looks pixelated if viewed from far:
Describe the solution you'd like
It would be great if we could enable mipmaps on the texture returned by VideoStreamTrack.OnVideoReceived:
Describe alternatives you've considered
I have tried to make changes to the package but I only managed to get the first mip level populated (I am not very familiar with low level graphics commands, maybe someone more experimented have an idea where I am wrong)
VideoStreamTrack.CreateRenderTexture():
var tex = new RenderTexture(width, height, 0, format);
tex.useMipMap = true;
tex.autoGenerateMips = false;
tex.Create();
VideoStreamTrack.OnVideoFrameResizeInternal():
var format = WebRTC.GetSupportedGraphicsFormat(SystemInfo.graphicsDeviceType);
Texture = new Texture2D(width, height, format, TextureCreationFlags.MipChain);
track.OnVideoFrameResize(Texture);
Is your feature request related to a problem?
I'm always frustrated when streaming screen capture video to my Unity WebRTC project the texture looks pixelated if viewed from far:
Describe the solution you'd like
It would be great if we could enable mipmaps on the texture returned by VideoStreamTrack.OnVideoReceived:
Describe alternatives you've considered
I have tried to make changes to the package but I only managed to get the first mip level populated (I am not very familiar with low level graphics commands, maybe someone more experimented have an idea where I am wrong)
VideoStreamTrack.CreateRenderTexture():
VideoStreamTrack.OnVideoFrameResizeInternal():
VideoDecoderMethods.UpdateRendererTexture():
Additional context
No response
The text was updated successfully, but these errors were encountered: