Is this correct behaviour for jpct-ae?

Started by jaccunio, January 29, 2012, 05:19:31 PM

Previous topic - Next topic

jaccunio

Hi, I'm playing a little with jpct, basically I import an obj model, use code from helloworld example and I get this: http://dl.dropbox.com/u/17880002/device-2012-01-29-161636.png
It looks really bad and I'm wondering whether I made a mistake somewhere that's causing this.

EgonOlsen


jaccunio

The shading looks quite bad, it's not smooth, looks more like toon shading. Is there any way to improve it? (I know that custom shader is always the answer, but I can't get opengl 2.0 to work with live wallpapers)

EgonOlsen

It's perfectly fine for a 16bit framebuffer, which is most likely what you are using. If you want smoother gradiants, use 32bit instead (not sure if this is possible for a wallpaper, because i don't know how the color depth of the home screen is handled). However, this usually isn't an issue, because you normally have textures and stuff and you don't show a single tea pot that shades from light to darker grey.

K24A3

You can either enable dithering to smooth out the banding, or use 32bit mode which may impact performance on some devices. 32bit works fine in wallpapers.

EgonOlsen

Sure...i forgot about the dithering switch. You can enable it with Config.glDither=true and see if that helps.