Re: ListBoxItem is out of ListBox's bounds in UE4 Android Platform.
Hi, just a quick update to let you know that I've purchased a new device of the same maker with a similar SoC that will hopefully allow me to reproduce this issue, but it won't arrive until Monday.
Until then, could you let me know which version of Android you have installed? Is it the latest vendor update?
Thank you for your patience.
Until then, could you let me know which version of Android you have installed? Is it the latest vendor update?
Thank you for your patience.
Re: ListBoxItem is out of ListBox's bounds in UE4 Android Platform.
My phone's system is the latest vendor update.Hi, just a quick update to let you know that I've purchased a new device of the same maker with a similar SoC that will hopefully allow me to reproduce this issue, but it won't arrive until Monday.
Until then, could you let me know which version of Android you have installed? Is it the latest vendor update?
Thank you for your patience.
More detail to see below picture.
Re: ListBoxItem is out of ListBox's bounds in UE4 Android Platform.
Hi ride_wind,
I figured out what the problem is.
The last render pass, in which the UI is drawn, is drawn to the default OpenGL framebuffer. The buffers attached to this framebuffer are provided by EGL. By default, Unreal doesn't require a minimum number of stencil bits. The driver on my original device was choosing a pixel format with stencil buffer, but on the new one it was picking one with no stencil.
The way to fix it is to request at least 8 bits of stencil buffer. You can do this by changing the value of the variable EGLMinStencilBits in Engine/Source/Runtime/OpenGLDrv/Private/Android/AndroidEGL.cpp from the current value of 0 to 8.
I think this is a bug in Unreal, because there's no easy way to change that (no setting in the editor or console variable or anything) and they use the stencil buffer for clipping UMG too in some circumstances. But it doesn't seem like the OpenGL code is a priority for them. In any case, this should solve your problem.
Please, let us know if the issue persists.
I figured out what the problem is.
The last render pass, in which the UI is drawn, is drawn to the default OpenGL framebuffer. The buffers attached to this framebuffer are provided by EGL. By default, Unreal doesn't require a minimum number of stencil bits. The driver on my original device was choosing a pixel format with stencil buffer, but on the new one it was picking one with no stencil.
The way to fix it is to request at least 8 bits of stencil buffer. You can do this by changing the value of the variable EGLMinStencilBits in Engine/Source/Runtime/OpenGLDrv/Private/Android/AndroidEGL.cpp from the current value of 0 to 8.
I think this is a bug in Unreal, because there's no easy way to change that (no setting in the editor or console variable or anything) and they use the stencil buffer for clipping UMG too in some circumstances. But it doesn't seem like the OpenGL code is a priority for them. In any case, this should solve your problem.
Please, let us know if the issue persists.
Re: ListBoxItem is out of ListBox's bounds in UE4 Android Platform.
Hi hcpizzi,Hi ride_wind,
I figured out what the problem is.
The last render pass, in which the UI is drawn, is drawn to the default OpenGL framebuffer. The buffers attached to this framebuffer are provided by EGL. By default, Unreal doesn't require a minimum number of stencil bits. The driver on my original device was choosing a pixel format with stencil buffer, but on the new one it was picking one with no stencil.
The way to fix it is to request at least 8 bits of stencil buffer. You can do this by changing the value of the variable EGLMinStencilBits in Engine/Source/Runtime/OpenGLDrv/Private/Android/AndroidEGL.cpp from the current value of 0 to 8.
I think this is a bug in Unreal, because there's no easy way to change that (no setting in the editor or console variable or anything) and they use the stencil buffer for clipping UMG too in some circumstances. But it doesn't seem like the OpenGL code is a priority for them. In any case, this should solve your problem.
Please, let us know if the issue persists.
This way perfect solved my problem.
Very thanks.
-
sfernandez
Site Admin
- Posts: 2983
- Joined:
Re: ListBoxItem is out of ListBox's bounds in UE4 Android Platform.
Great news, I'll mark this thread as solved.
Who is online
Users browsing this forum: Ahrefs [Bot], Google [Bot] and 100 guests