Author Topic: Major fixes to gles2rice plugin  (Read 19540 times)

Offline Paul

  • Administrator
  • double
  • *****
  • Posts: 3496
  • Developer
    • View Profile
    • PaulsCode.Com
Major fixes to gles2rice plugin
« on: November 01, 2013, 11:22:12 PM »
Gillou68310 has done a lot of work on the gles2rice video plugin, and I thought I would post a build for folks to try out on different devices and games.  Things that are addressed are some black texture issues, multi-texturing (such as Link's shield), and fog.  Please note any improvements, problems that are fixed, or regressions:

Gles2rice, various fixes (Update: added fog option in video settings)


This second build has a fix specifically for the missing heart in Zelda OOT and MM.  We need to test to make sure it doesn't break something else, though.  (I built this one before adding the fog option, so don't worry about that)  If you notice a problem with this build, do a comparison with the first build above to see if it is specific to this fix:

Gles2rice, missing heart fix (no fog option in this build)

Gkes2rice, missing heart fix, BUILD #2 (latest fog update also in this build)
« Last Edit: November 19, 2013, 08:50:27 PM by Paul »
Device: Samsung Galaxy Nexus i515
CPU: TI OMAP4460, 1.2 GHz (dual core, ARM Cortex-A9)
GPU: PowerVR SGX540, 307 MHz
RAM: 1 GB
Resolution: 720 x 1280
Rom: omni-4.4.4-20141014-toro-FML KitKat 4.4.4, rooted

Device: Eee PC 1015PEM
CPU: Intel Atom N550, 1.5 GHz (dual core, x86)
GPU: Intel GMA 3150, 200 MHz (dual core)
RAM: 2GB
Resolution: 1024 x 600
Rom: android-x86-4.3-20130725 Jelly Bean 4.3, rooted

Offline Paul

  • Administrator
  • double
  • *****
  • Posts: 3496
  • Developer
    • View Profile
    • PaulsCode.Com
Re: Major fixes to gles2rice plugin
« Reply #1 on: November 02, 2013, 11:21:10 AM »
Only issue on my Galaxy Nexus I've noticed so far is the fog being too thick.  So far it seems to affect all the games I've tried which have fog.











Next I'm going to do some comparisons on my wife's Droid Razr and on my netbook Android 4.3 partition.

Also, I haven't looked at the missing heart fix build yet -- will do some comparisons on it as well to try and find any problems.
« Last Edit: November 02, 2013, 12:15:05 PM by Paul »
Device: Samsung Galaxy Nexus i515
CPU: TI OMAP4460, 1.2 GHz (dual core, ARM Cortex-A9)
GPU: PowerVR SGX540, 307 MHz
RAM: 1 GB
Resolution: 720 x 1280
Rom: omni-4.4.4-20141014-toro-FML KitKat 4.4.4, rooted

Device: Eee PC 1015PEM
CPU: Intel Atom N550, 1.5 GHz (dual core, x86)
GPU: Intel GMA 3150, 200 MHz (dual core)
RAM: 2GB
Resolution: 1024 x 600
Rom: android-x86-4.3-20130725 Jelly Bean 4.3, rooted

Offline Mikhail

  • long
  • ***
  • Posts: 127
    • View Profile
Re: Major fixes to gles2rice plugin
« Reply #2 on: November 02, 2013, 02:18:21 PM »
Pole Position 64 (E) (M3) gets stuck at the language selection screen and doesn't
respond to any pad input, switching from glide to rice in-game also causes it to hang.
gln64 doesn't apply any textures so all 3d models appear gray.

Offline Paul

  • Administrator
  • double
  • *****
  • Posts: 3496
  • Developer
    • View Profile
    • PaulsCode.Com
Re: Major fixes to gles2rice plugin
« Reply #3 on: November 02, 2013, 03:05:05 PM »
Is this a regression? (i.e. did Pole Position work in a previous version?)
Device: Samsung Galaxy Nexus i515
CPU: TI OMAP4460, 1.2 GHz (dual core, ARM Cortex-A9)
GPU: PowerVR SGX540, 307 MHz
RAM: 1 GB
Resolution: 720 x 1280
Rom: omni-4.4.4-20141014-toro-FML KitKat 4.4.4, rooted

Device: Eee PC 1015PEM
CPU: Intel Atom N550, 1.5 GHz (dual core, x86)
GPU: Intel GMA 3150, 200 MHz (dual core)
RAM: 2GB
Resolution: 1024 x 600
Rom: android-x86-4.3-20130725 Jelly Bean 4.3, rooted

Offline Paul

  • Administrator
  • double
  • *****
  • Posts: 3496
  • Developer
    • View Profile
    • PaulsCode.Com
Re: Major fixes to gles2rice plugin
« Reply #4 on: November 02, 2013, 03:52:05 PM »
I mentioned this on github, but for those who aren't on there, the thick-fog problem affects both my Galaxy Nexus and my wife's Droid Razr (both have the PowerVR SGX540 GPU).  Fog renders perfectly on my netbook's Android 4.3 partition.

Gillou68310 is having a different issue on his device in which the fog has pixelated edges rather than transitioning smoothly.  He posted a screenshot here:

https://db.tt/Tx6vHawV

Would be interesting to see how the fog does on average across a wide variety of devices (testing with Zelda OOT in the forest would be a good point of comparison).  I'll try and get some more testers involved so we can get more data.
Device: Samsung Galaxy Nexus i515
CPU: TI OMAP4460, 1.2 GHz (dual core, ARM Cortex-A9)
GPU: PowerVR SGX540, 307 MHz
RAM: 1 GB
Resolution: 720 x 1280
Rom: omni-4.4.4-20141014-toro-FML KitKat 4.4.4, rooted

Device: Eee PC 1015PEM
CPU: Intel Atom N550, 1.5 GHz (dual core, x86)
GPU: Intel GMA 3150, 200 MHz (dual core)
RAM: 2GB
Resolution: 1024 x 600
Rom: android-x86-4.3-20130725 Jelly Bean 4.3, rooted

Offline Mikhail

  • long
  • ***
  • Posts: 127
    • View Profile
Re: Major fixes to gles2rice plugin
« Reply #5 on: November 02, 2013, 06:30:42 PM »
Is this a regression? (i.e. did Pole Position work in a previous version?)

I can't remember sorry, the NUS-NHGE-USA version plays fine though with rice,
 it just seems to be a problem with the NUS-NHGP-EUR  version using rice, haven't tried
NUS-NHGJ-JPN

Offline xperia64

  • Moderator
  • double
  • *****
  • Posts: 591
    • View Profile
    • My Apps
Re: Major fixes to gles2rice plugin
« Reply #6 on: November 02, 2013, 08:04:41 PM »
On my Nexus 7 2013, the fog seems to be a bit too distant. On a side note, the Sharpen More and HQ4X texture filters are handled pretty well.
Fog:

(sorry for giant picture)  Paul: No problem, I fixed it :P
Also any chance at custom device profiles being added to the main branch?
« Last Edit: November 02, 2013, 08:15:00 PM by Paul »

Offline Paul

  • Administrator
  • double
  • *****
  • Posts: 3496
  • Developer
    • View Profile
    • PaulsCode.Com
Re: Major fixes to gles2rice plugin
« Reply #7 on: November 02, 2013, 08:16:15 PM »
By custom device profiles, you are talking about importable/ sharable settings, correct?
Device: Samsung Galaxy Nexus i515
CPU: TI OMAP4460, 1.2 GHz (dual core, ARM Cortex-A9)
GPU: PowerVR SGX540, 307 MHz
RAM: 1 GB
Resolution: 720 x 1280
Rom: omni-4.4.4-20141014-toro-FML KitKat 4.4.4, rooted

Device: Eee PC 1015PEM
CPU: Intel Atom N550, 1.5 GHz (dual core, x86)
GPU: Intel GMA 3150, 200 MHz (dual core)
RAM: 2GB
Resolution: 1024 x 600
Rom: android-x86-4.3-20130725 Jelly Bean 4.3, rooted

Offline xperia64

  • Moderator
  • double
  • *****
  • Posts: 591
    • View Profile
    • My Apps
Re: Major fixes to gles2rice plugin
« Reply #8 on: November 02, 2013, 08:22:21 PM »
Those would be nice too, but I'm talking about the Flicker reduction profile. A while back I made a quick n dirty mod that allowed me to set a custom bias.

Offline Paul

  • Administrator
  • double
  • *****
  • Posts: 3496
  • Developer
    • View Profile
    • PaulsCode.Com
Re: Major fixes to gles2rice plugin
« Reply #9 on: November 02, 2013, 08:29:56 PM »
the Flicker reduction profile. A while back I made a quick n dirty mod that allowed me to set a custom bias.
Oh, right.  Sure I'll add that tomorrow after I finish publishing the 2.4.0 update.  Think that should be a text input, or some type of slider?

I got a little side-tracked because my Gamestick came in the mail today (probably OUYA's biggest competitor).  I've been reading through the Gamestick SDK documentation (its a very similar deal to the ODK -- you develop in your normal Android NDK+SDK and import a couple JARs)

Anyway.. I am building the 2.4.0 release APKs now, and just need to test them tomorrow morning before publishing.
Device: Samsung Galaxy Nexus i515
CPU: TI OMAP4460, 1.2 GHz (dual core, ARM Cortex-A9)
GPU: PowerVR SGX540, 307 MHz
RAM: 1 GB
Resolution: 720 x 1280
Rom: omni-4.4.4-20141014-toro-FML KitKat 4.4.4, rooted

Device: Eee PC 1015PEM
CPU: Intel Atom N550, 1.5 GHz (dual core, x86)
GPU: Intel GMA 3150, 200 MHz (dual core)
RAM: 2GB
Resolution: 1024 x 600
Rom: android-x86-4.3-20130725 Jelly Bean 4.3, rooted

Offline xperia64

  • Moderator
  • double
  • *****
  • Posts: 591
    • View Profile
    • My Apps
Re: Major fixes to gles2rice plugin
« Reply #10 on: November 02, 2013, 08:47:00 PM »
Definitely text input, forced to double/float input (I know it can be forced to int, but decimal places are needed). The correct values can vary from hundredths to hundreds, so slider probably wouldn't work too well.

Offline littleguy

  • Moderator
  • double
  • *****
  • Posts: 1945
    • View Profile
Re: Major fixes to gles2rice plugin
« Reply #11 on: November 02, 2013, 08:47:33 PM »
the Flicker reduction profile. A while back I made a quick n dirty mod that allowed me to set a custom bias.
Oh, right.  Sure I'll add that tomorrow after I finish publishing the 2.4.0 update.  Think that should be a text input, or some type of slider?

Sorry about that xperia64... I had meant to pull that in a while ago and just got sidetracked and forgot.

Paul - it should be text input because the scales are on different orders of magnitude for different devices e.g. some might tweak near .0001 and others might need to tweak near 0.1.  (I guess you could implement a logarithmic slider, but at this point probably best to keep it simple with a text edit.)

Edit: ninja'd
2012 Nexus 7, rooted stock Lollipop
Samsung Galaxy Victory, rooted stock Jelly Bean
Xperia PLAY, stock Gingerbread
OUYA, retail version

Offline Paul

  • Administrator
  • double
  • *****
  • Posts: 3496
  • Developer
    • View Profile
    • PaulsCode.Com
Re: Major fixes to gles2rice plugin
« Reply #12 on: November 02, 2013, 08:53:37 PM »
Good point -- I was just thinking from a user-friendly perspective, but this is an advanced setting anyway.  Can just make it a text input and give it the correct input type flags to make sure they enter a valid number.
« Last Edit: November 02, 2013, 08:56:40 PM by Paul »
Device: Samsung Galaxy Nexus i515
CPU: TI OMAP4460, 1.2 GHz (dual core, ARM Cortex-A9)
GPU: PowerVR SGX540, 307 MHz
RAM: 1 GB
Resolution: 720 x 1280
Rom: omni-4.4.4-20141014-toro-FML KitKat 4.4.4, rooted

Device: Eee PC 1015PEM
CPU: Intel Atom N550, 1.5 GHz (dual core, x86)
GPU: Intel GMA 3150, 200 MHz (dual core)
RAM: 2GB
Resolution: 1024 x 600
Rom: android-x86-4.3-20130725 Jelly Bean 4.3, rooted

Offline stodag

  • byte
  • *
  • Posts: 31
    • View Profile
Re: Major fixes to gles2rice plugin
« Reply #13 on: November 02, 2013, 09:08:38 PM »
http://postimg.org/image/xr3smowo3/808dc850/

Sorry Paul, I had trouble uploading..:(
anyway this is from adreno 203, my brothers has my other phones till mornin, in UK here so late.. as soon as I wake up I'll post two more on the other GPU :)
I'll be a bit faster next time..
OK, looks perfectly fine for me on the adreno 203 y300, depths seem OK .

Offline Paul

  • Administrator
  • double
  • *****
  • Posts: 3496
  • Developer
    • View Profile
    • PaulsCode.Com
Re: Major fixes to gles2rice plugin
« Reply #14 on: November 02, 2013, 09:11:00 PM »
Sorry Paul, I had trouble uploading..:(

No worries, it is probably a digital signature conflict, since I reused the application package name.  If you want to run the tests, you'll probably have to uninstall the current version to install the test.
Device: Samsung Galaxy Nexus i515
CPU: TI OMAP4460, 1.2 GHz (dual core, ARM Cortex-A9)
GPU: PowerVR SGX540, 307 MHz
RAM: 1 GB
Resolution: 720 x 1280
Rom: omni-4.4.4-20141014-toro-FML KitKat 4.4.4, rooted

Device: Eee PC 1015PEM
CPU: Intel Atom N550, 1.5 GHz (dual core, x86)
GPU: Intel GMA 3150, 200 MHz (dual core)
RAM: 2GB
Resolution: 1024 x 600
Rom: android-x86-4.3-20130725 Jelly Bean 4.3, rooted