Page 2 of 7

Re: Pixel art with GLSL cel shade lighting concept

Posted: Thu Sep 27, 2012 2:02 pm
by GarbagePillow
Boolsheet: Good advice. Unfortunately I have an ATI card. I looked for ATI pragmas but I couldn't find any. :(
Nixola wrote:I have no problems with an Nvidia GTX 560 Ti. Awesome effects!
Good to know. And thank you. :)
Patalo wrote:Seriously great. The way the contour stay black really adds something.

How does the AO works? It's the last pic of pithos.png that indicate the amount of light?

Now with multiple lights? :3 (well, I haven't found a way to send array yet, so might be difficult).

Sort of reminded me the visuals of chroma ( https://www.youtube.com/watch?v=OIR6L9FTvlc )
The AO is just another alpha map that I'm currently storing in the red channel of the third image. After I calculate the light levels at a pixel I just multiply them by the ambient occlusion. The AO map is generated from the same simple 3d model that I get the normal maps from.

Yeah, I really want to do multiple lights soon (perhaps with colors!).

I haven't seen Chroma before but it looks good. I like being able to run up the shadows. :)

Re: Pixel art with GLSL cel shade lighting concept

Posted: Thu Sep 27, 2012 2:57 pm
by kikito
I'm going to stop trying to understand what goes on here and just enjoy the coolness.

Hats off to you, sir.

Re: Pixel art with GLSL cel shade lighting concept

Posted: Thu Sep 27, 2012 4:42 pm
by GarbagePillow
kikito wrote:I'm going to stop trying to understand what goes on here and just enjoy the coolness.

Hats off to you, sir.
Much appreciated. :)

Re: Pixel art with GLSL cel shade lighting concept

Posted: Thu Sep 27, 2012 9:41 pm
by Ensayia
This is incredibly superb. For some reason, your first example reminds me of Zelda: LTTP.

Re: Pixel art with GLSL cel shade lighting concept

Posted: Fri Sep 28, 2012 12:37 am
by GarbagePillow
Ensayia wrote:This is incredibly superb. For some reason, your first example reminds me of Zelda: LTTP.
Ha! That is because I modeled the tree stump after the tree stump in A Link to the Past. I really love the style of that game, in particular the fake perspective of walls and cliffs.

Re: Pixel art with GLSL cel shade lighting concept

Posted: Fri Sep 28, 2012 12:50 am
by slime
This is really great. I've wanted to try this sort of technique for a while but never actually got around to doing it, I'm glad it looks very good. :)

Re: Pixel art with GLSL cel shade lighting concept

Posted: Fri Sep 28, 2012 1:45 am
by GarbagePillow
slime wrote:This is really great. I've wanted to try this sort of technique for a while but never actually got around to doing it, I'm glad it looks very good. :)
Thank you. :)

Here's a version with multiple colored lights. Unfortunately as it is now I think it moves too far away from cel shading in the way the lights blend together, but maybe I'll be able to figure out a better way later. Please let me know if the GLSL doesn't work.
4c9Gt.png
4c9Gt.png (8.9 KiB) Viewed 459 times

Re: Pixel art with GLSL cel shade lighting concept

Posted: Fri Sep 28, 2012 2:06 am
by GarbagePillow
Okay, just figured out a better way:
Rkzfn.png
Rkzfn.png (8.25 KiB) Viewed 460 times

Re: Pixel art with GLSL cel shade lighting concept

Posted: Fri Sep 28, 2012 7:12 am
by dreadkillz
Pretty. I don't know how any of this works but the power of shaders really makes a lot of things possible since 0.8.0.

Re: Pixel art with GLSL cel shade lighting concept

Posted: Fri Sep 28, 2012 8:16 am
by kikito
Unfortunately none of the multi-lighted examples seem to work on my machine (Mac Book Air 2012 13')

The sprites look like random color noise:
screenshot.png
screenshot.png (12.8 KiB) Viewed 6551 times
The first two examples (with only one light source) looked great though.