Bonzai Engine Forum
Bonzai Engine & Tools => Bonzai Engine on Android => Topic started by: Angelo on May 01, 2012, 05:28:04 AM
-
Hi. I tried activating antialiasing in my Android application, changing from
to
But this is what happened: http://dl.dropbox.com/u/14911350/2012-04-28%2000.45.52.jpg (http://dl.dropbox.com/u/14911350/2012-04-28%2000.45.52.jpg)
No antialiasing, and the face normals look flipped.
Any idea of why this happens?
-
Did the weird rendering was also appearing without using DisplayCapabilities ?
Can you try using setDefaultOpenGLs like this:
setDefaultOpenGLs initialize with the default values choosen by android api (ie when not using DisplayCapabilities), and especially the depth buffer which seem broken in your screenshot.
-
I tried. That weird flipped-normal problem was solved, but I still get no antialiasing.
-
Possibly your device (graphic ship) does not support msaa antialising. Which graphic ship (or processor) did you have ?
Nvidia Tegra does not support msaa, and exposes instead their own extension (csaa (http://www.khronos.org/registry/egl/extensions/NV/EGL_NV_coverage_sample.txt)), powervr ship supports msaa, the other shipI don't know.
Edit: Additionally, if your device support msaa, the number of samples is may be too high (try 2).
Let me know if you have tegra ship, I currently adding support for csaa.
-
In fact, I am working on an Acer Iconia Tab A500, which mounts an 1 GHz Nvidia Tegra 250 CPU.
I tried with
but it didn't work either.
I don't know if my CPU supports CSAA. Anyway, how can I try it?
-
Your gpu support csaa, it's a tegra. I've implemented support for csaa yesterday and I will make a new build this evening or tomorrow (once the wip of the editor will be finished).
I'll send you the instruction to use csaa once the build will be made available.
-
Ok. Thank you very much.
-
You can get the build 1.2.5 2012-05-02 which contains support for csaa on android.
Make sure to read the changelog (http://bonzaiengine.com/changelog.php) which contains instruction to use csaa.
Ps: If you're using the editor, this new version is not yet recommended to use.
-
I get caps.isUseNvCsaa() = false. Does that mean that CSAA is not supported by my device?
-
I currently don't have any tegra to test, so the feature is possibly not fully working yet. Tegra 2 has csaa.
How many num samples did you try ?
I will prepare a debug build to dump some informations to know what's going on.
-
I have made a new build which dump some debug informations to know the parameters of DIsplayCapabilities supported on device.
Can you try the build 1.2.5 2012-05-04 (http://bonzaiengine.com/downloads/download.php?id=be-dev&url=BonzaiEngine-1.2.5-04052012.7z) and attach the log here ? The relevant log are EGLConfig logs, you should see them in ddms.
-
Finally I solved this antialiasing problem. I probably was missing something in my code. Thank you.