Author Topic: Is this correct behaviour for jpct-ae?  (Read 2865 times)

Offline jaccunio

  • byte
  • *
  • Posts: 4
    • View Profile
Is this correct behaviour for jpct-ae?
« on: January 29, 2012, 05:19:31 pm »
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.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Is this correct behaviour for jpct-ae?
« Reply #1 on: January 29, 2012, 05:44:11 pm »
And the bad thing is...???

Offline jaccunio

  • byte
  • *
  • Posts: 4
    • View Profile
Re: Is this correct behaviour for jpct-ae?
« Reply #2 on: January 29, 2012, 05:47:13 pm »
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)

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Is this correct behaviour for jpct-ae?
« Reply #3 on: January 29, 2012, 06:09:13 pm »
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.

Offline K24A3

  • long
  • ***
  • Posts: 231
    • View Profile
Re: Is this correct behaviour for jpct-ae?
« Reply #4 on: January 30, 2012, 02:46:45 am »
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.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Is this correct behaviour for jpct-ae?
« Reply #5 on: January 30, 2012, 06:34:42 am »
Sure...i forgot about the dithering switch. You can enable it with Config.glDither=true and see if that helps.