Author Topic: Cel Shading...  (Read 5219 times)

Offline Xargonis

  • byte
  • *
  • Posts: 1
    • View Profile
Cel Shading...
« on: December 27, 2006, 09:26:54 pm »
I've been watching the forums for a little bit as well as the LWJGL ones as well.  Haven't posted anything before, but there is something that has my curiosity...

First, let me thank you for a decent API with jPCT.  It's wonderful!

But now, I'm curious, is there any plans for cel-shading, or has it been implemented or a way to do it while I had a blind eye turned?

Thanks in advance,
ive a man some fire and he'll be warm for a day...
Light a man on file and he'll be warm for the rest of his life...

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11777
    • View Profile
    • http://www.jpct.net
Cel Shading...
« Reply #1 on: December 28, 2006, 01:37:18 pm »
Currently, there is no cell-shading implemented nor are there any plans to add it, i'm afraid.

Offline theFALCO

  • byte
  • *
  • Posts: 39
    • View Profile
Cel Shading...
« Reply #2 on: December 28, 2006, 02:55:57 pm »
and are there any plans to add anything? :D (could use some new stuff)

Offline cyberkilla

  • float
  • ****
  • Posts: 413
    • View Profile
    • http://futurerp.net
Cel Shading...
« Reply #3 on: December 28, 2006, 07:32:47 pm »
My personal view is that it does all it needs.

When you keep adding stuff, this is when you get too much complexity.
http://futurerp.net - Text Based MMORPG
http://beta.rpwar.com - 3D Isometric MMORPG

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11777
    • View Profile
    • http://www.jpct.net
Cel Shading...
« Reply #4 on: January 05, 2007, 01:18:00 am »
Quote from: "theFALCO"
and are there any plans to add anything?

Yes, a post processing bloom effect (for OpenGL renderer only) as a kind of pseudo-hdr. Eats up some fillrate and looks like this:

No bloom:


Bloom:

Offline cyberkilla

  • float
  • ****
  • Posts: 413
    • View Profile
    • http://futurerp.net
Cel Shading...
« Reply #5 on: January 05, 2007, 04:48:17 am »
Wow, now that is beautiful. I could use that myself:P.

Still, im sure you understand what I was attempting to say;).
http://futurerp.net - Text Based MMORPG
http://beta.rpwar.com - 3D Isometric MMORPG

Offline theFALCO

  • byte
  • *
  • Posts: 39
    • View Profile
Cel Shading...
« Reply #6 on: January 05, 2007, 06:25:58 pm »
if(bloom.getMeaning()=="darkness also gets bloom") {
  Voter.setVote("bloom", "NO");
}
// if this "bloom" will be like this: take the render, apply gaussian blurr (or some other blurr), apply it to the main render with alpha blend ("half-transparen") then please don't do it, it will cause shadows and other darkness to cause bloom while it shouldn't... or just tell me that it won't cause such nasty effect

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11777
    • View Profile
    • http://www.jpct.net
Cel Shading...
« Reply #7 on: January 05, 2007, 07:30:12 pm »
It does work this way, but that's only half the truth. It doesn't apply the blur to the main render but to a self-multiplied version (multiple times) of it. That way, bright areas are still bright while darker areas are almost black (in the blurred version). The result is added to the actual render. So bright areas are getting a halo and dark areas remain as there were, because something+0 is still something.
It's an optional effect anyway, so if you don't like it, don't use it.

Offline AGP

  • quad
  • ******
  • Posts: 1526
    • View Profile
Cel Shading...
« Reply #8 on: January 05, 2007, 09:13:02 pm »
Egon, I was actually going to suggest a glow effect. Nice to see you were ahead of me. How fast is your method (sounds fairly intense)? By what I understood it will render the same frame a few times before applying the result to the original render.

Offline theFALCO

  • byte
  • *
  • Posts: 39
    • View Profile
Cel Shading...
« Reply #9 on: January 05, 2007, 09:38:08 pm »
will there be a "power" (how intense the bloom will be) setting?

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11777
    • View Profile
    • http://www.jpct.net
Cel Shading...
« Reply #10 on: January 05, 2007, 10:03:40 pm »
@AGP: It stresses fillrate but it renders only one time. The rest is just simple 2D post processing. There is a performance penalty depending on the choosen settings but on current hardware, it should be fast enough.

@theFALCO: Yes. You'll be able to adjust some settings to tweak the effect.

Offline theFALCO

  • byte
  • *
  • Posts: 39
    • View Profile
Cel Shading...
« Reply #11 on: January 05, 2007, 10:07:49 pm »
cool then :D