Author Topic: State of OpenGL ES2.0 support  (Read 20676 times)

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11748
    • View Profile
    • http://www.jpct.net
Re: State of OpenGL ES2.0 support
« Reply #45 on: June 30, 2011, 10:46:38 pm »
I'll postpone the first alpha release until i've added the option to assign additional vector data to an Object3D to allow (for example) for proper tangent vectors. Right now, i'm playing around with parallax mapping...


Simple normal mapping


The same thing with parallax mapping

Offline Thomas.

  • double
  • *****
  • Posts: 833
    • View Profile
Re: State of OpenGL ES2.0 support
« Reply #46 on: July 01, 2011, 03:04:02 pm »
looks nice, good work! :) ... how much time takes these shader demos on screenshots (render time)?
« Last Edit: July 01, 2011, 03:52:54 pm by Thomas. »

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11748
    • View Profile
    • http://www.jpct.net
Re: State of OpenGL ES2.0 support
« Reply #47 on: July 01, 2011, 04:24:46 pm »
The upper left number is the fps counter. However, my phone tends to clock down if cpu load is low (which it is in these demos), so the frame rate in an actual game might be better.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11748
    • View Profile
    • http://www.jpct.net
Re: State of OpenGL ES2.0 support
« Reply #48 on: July 02, 2011, 12:18:12 am »
Must...stop...creating...more...test cases....anyway, tangent vector calculation works fine now, but has to be optimized a little bit before release.

Parallax mapping can look cool:


Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11748
    • View Profile
    • http://www.jpct.net
Re: State of OpenGL ES2.0 support
« Reply #49 on: July 03, 2011, 12:02:27 am »
Made a small video of that one: http://www.youtube.com/watch?v=5Zgn1OCDIus

Offline Thomas.

  • double
  • *****
  • Posts: 833
    • View Profile
Re: State of OpenGL ES2.0 support
« Reply #50 on: July 03, 2011, 12:52:06 am »
woooow, it is very nice :) I looking forward to public release :)

Offline raft

  • quad
  • ******
  • Posts: 1966
    • View Profile
    • http://www.aptalkarga.com
Re: State of OpenGL ES2.0 support
« Reply #51 on: July 03, 2011, 04:46:56 pm »
very impressive ;D

Offline aur8l

  • byte
  • *
  • Posts: 6
    • View Profile
Re: State of OpenGL ES2.0 support
« Reply #52 on: July 03, 2011, 10:33:19 pm »
Anybody listening with too much time and a NVidia Tegra based device?
I meet these two requirements if it is still needed.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11748
    • View Profile
    • http://www.jpct.net
Re: State of OpenGL ES2.0 support
« Reply #53 on: July 03, 2011, 10:43:13 pm »
Yes, it is!  ;D Could your please download this apk: www.jpct.net/download/tmp/An3DBenchXL.apk!?

Then run it once using ES 1.1 and once using ES 2.0. The main question is, if the 2.0 version runs at all and if it looks similar to the 1.1 version. The benchmark results for both modes are interesting too, of course.

Offline Thomas.

  • double
  • *****
  • Posts: 833
    • View Profile
Re: State of OpenGL ES2.0 support
« Reply #54 on: July 03, 2011, 11:23:55 pm »
I am very curious, so I also had to try this app :) ... result is same as on your device... but lenses looks differently in 1.1 and 2.0

1.1

2.0
« Last Edit: July 04, 2011, 11:04:10 am by Thomas. »

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11748
    • View Profile
    • http://www.jpct.net
Re: State of OpenGL ES2.0 support
« Reply #55 on: July 04, 2011, 08:18:37 am »
.. but lenses looks differently in 1.1 an 2.0
I've never noticed that...i'll have a look. Thanks for trying.

Edit: Lousy bug, that one. It's fixed now, but i won't update the benchmark's apk.
« Last Edit: July 04, 2011, 05:21:00 pm by EgonOlsen »

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11748
    • View Profile
    • http://www.jpct.net
Re: State of OpenGL ES2.0 support
« Reply #56 on: July 12, 2011, 09:52:05 pm »
Ok, here you go: http://www.jpct.de/download/net/jpct-ae_124_alpha.zip

It includes the OpenGL ES 2.0 support in it's current state but lacks some documentation. It also includes the APK shown in the video as an Eclipse project to get you started with ES 2.0.

If you want to fiddle around with the default shaders: They are included in the jar. You can simply extract and modify them for your own purpose if you like. Please keep in mind that they are pretty ugly to make them run on Adreno (i.e. unrolled loops and such).

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11748
    • View Profile
    • http://www.jpct.net
Re: State of OpenGL ES2.0 support
« Reply #57 on: July 17, 2011, 10:24:12 pm »
With OpenGL ES 2.0, anti-aliasing becomes possible. This shows the difference (magnified by 2x):

Without AA:


With 2xAA:


I'll add a custom config chooser to the util-package to ease usage.

Offline Thomas.

  • double
  • *****
  • Posts: 833
    • View Profile
Re: State of OpenGL ES2.0 support
« Reply #58 on: July 18, 2011, 02:42:59 pm »
I am very curious about what effect it will have on performance :) ... note, tegra 2 does not support anti-aliasing
« Last Edit: July 18, 2011, 02:44:41 pm by Thomas. »

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11748
    • View Profile
    • http://www.jpct.net
Re: State of OpenGL ES2.0 support
« Reply #59 on: July 18, 2011, 04:13:15 pm »
Tegra 2 supports CSAA instead if MSAA...i can't test it for obvious reasons but it should be supported.

Edit: Performance impact depends on the gpu. On my Nexus S, performance is quite good. However, it doesn't really look like plain multi-sampling to me, because it also shows some effect on texture content (i.e. it somehow blurs transparent edges (fps counter) for example), which multi-sampling alone shouldn't do.
« Last Edit: July 18, 2011, 04:25:40 pm by EgonOlsen »