www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: MichaelJPCT on March 09, 2021, 08:36:49 pm

Title: AA not working on PowerVR6250
Post by: MichaelJPCT on March 09, 2021, 08:36:49 pm
Hi Egon,
i tested AAConfigChooser.
with my mali450 device, my app works correctly, either using AAConfigChooser or the 'force 4x MSAA' option in OS.
but with my PowerVR6250 device, enabling AAConfigChooser makes the gfx to be very corrupted (no force 4x MSAA option on the device).
is it normal with 6250 hardware?
Title: Re: AA not working on PowerVR6250
Post by: EgonOlsen on March 09, 2021, 11:34:14 pm
Let's put it this way: jPCT-AE's GL-Renderer has a method called isCrappyPowerVR(), which detect PowerVR chips >=6000 either via their code name or their number and in turn enables all kinds of workarounds to make these suckers work at least half decent.

How does it look with AA enabled? I assume as if some wireframe is drawn over everything? If not, can you post a screenshot?
Title: Re: AA not working on PowerVR6250
Post by: MichaelJPCT on March 10, 2021, 10:10:32 am
the 2 screenshots show the correct result and wrong result.
(https://i.ibb.co/qnkGhxY/IMG-20210310-162538.jpg) (https://ibb.co/qnkGhxY) (https://i.ibb.co/xM5mk81/IMG-20210310-162638.jpg) (https://ibb.co/xM5mk81)

problem seems to be that, some part of the screen is not updated, but reverse to older buffered image. when i rotate the camera, part of image is jumping back and forth. the size of unupdated part is not constant.

my app has the machanism that the main scene is rendered into texture then blit the texture on screen. if this is on. AA works correctly. if the scene is rendered directly on screen. AA causes problem.
it is also related to my cloud effect. if the clouds are not drawn, no problem. the clouds are drawn with several passes at different time points and there are some gl state changes, it's quite complicated.
Title: Re: AA not working on PowerVR6250
Post by: EgonOlsen on March 11, 2021, 09:11:18 pm
Yep, that's the exact same issue that I had with these PowerVR chips as well, regardless of using AA. That's why jPCT-AE now defaults to not use VBOs on these chips if detected. That was the only solution that I found that fixed it. Maybe you are enabling VBOs somehow again? Or maybe you are using an older version that doesn't include this fix...are you seeing some PowerVR related setting in Config?
Title: Re: AA not working on PowerVR6250
Post by: MichaelJPCT on March 12, 2021, 05:02:56 am
my version is 1.32 .
there is usePowerVRTweaks in Config, i don't change it. if it's false, my device crashes.
i don't change vbo setting.
Title: Re: AA not working on PowerVR6250
Post by: EgonOlsen on March 12, 2021, 05:41:39 pm
Then it's the same problem that surfaces in some other circumstances (using AA in this case) as well. I don't see what you do about this. These chips suck. The funny thing is, that it actually renders the graphics somehow (I can't remember how I found out about it though), it just fails to display it.