Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (Akow, TipmyPip, tomaslolo), 788 guests, and 11 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19055 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Cel shader scene lighting #82338
07/20/06 09:26
07/20/06 09:26
Joined: Nov 2003
Posts: 1,659
San Francisco
JetpackMonkey Offline OP
Serious User
JetpackMonkey  Offline OP
Serious User

Joined: Nov 2003
Posts: 1,659
San Francisco
Hi,

I'm playing aroung with cel shaders in my project, but one thing I'm unsure of is how to light a cel shaded scene-- is lighting even necessary? I've been sniffing around but really only been able to find the cel/toon shader on the wiki, with technical information on cel shading, but not a lot of much use for the art side of it.

Does anyone here have any tips for using the cel shader in general? like lighting, what the texture on the models should be like in complexity, tips for speedier cel shading, etc etc?

Merci,

Re: Cel shader scene lighting [Re: JetpackMonkey] #82339
07/20/06 09:42
07/20/06 09:42
Joined: Apr 2002
Posts: 4,801
Richmond B.C., Canada
Captain_Kiyaku Offline

Dichotomic
Captain_Kiyaku  Offline

Dichotomic

Joined: Apr 2002
Posts: 4,801
Richmond B.C., Canada
cell shading doesnt really use real light sources. theres sometimes only the sun, and maybe torches in caves. the torches will through a round, hard shadow, and the sun often makes a smooth super soft shadow for the environment. the characters and items have hard shadows too, and doesnt really get brighter with a lightsource. They often have 100% lighting anyway.

look at those screens:



you can see that the torch makes a hard light, but the sun doesnt:

http://www.take2.co.za/covers/ss/big/zelda_windwaker_gc_4.jpg

the objects outside even have almost no shadow sometimes.

and at night its the same, the windows doesnt produce light at all:

http://www.dreamstation.cc/reviews/gamec...d_waker_005.jpg

the textures always have the same brightnes.

thats why i prefer cellshading, its easier with lighting


My Blog

"Tag und Nacht schrei ich mich heiser,
Wind weht alle Worte fort,
Tag und Nacht schrei ich mein Krähenwort!"

Subway To Sally - Krähenkönig
Re: Cel shader scene lighting [Re: Captain_Kiyaku] #82340
07/20/06 09:53
07/20/06 09:53
Joined: Oct 2002
Posts: 8,939
planet.earth
ello Offline
Senior Expert
ello  Offline
Senior Expert

Joined: Oct 2002
Posts: 8,939
planet.earth
imho, the textures should be as simple as they are allowed to be. for example a leave could have one basecolor, some veins and maybe some dried out browns. thats it. skin should have one base color and if you need a tattoo or blood another color for that. wood should have some basic structure consisting of two or three colors...

for the lighting i guess best would be if it reacts to all lights possible, just because you may wish to have torches, explosions, other light effects aside the sun/moon light

btw, there are ways to create toonscenery as a postprocess

Re: Cel shader scene lighting [Re: ello] #82341
07/20/06 10:04
07/20/06 10:04
Joined: Apr 2002
Posts: 4,801
Richmond B.C., Canada
Captain_Kiyaku Offline

Dichotomic
Captain_Kiyaku  Offline

Dichotomic

Joined: Apr 2002
Posts: 4,801
Richmond B.C., Canada
yes the textures in cellshading are really simple. they exactly only have one base color, and the details comes with shadows and highlights on it, nothing more, nothing less.


My Blog

"Tag und Nacht schrei ich mich heiser,
Wind weht alle Worte fort,
Tag und Nacht schrei ich mein Krähenwort!"

Subway To Sally - Krähenkönig
Re: Cel shader scene lighting [Re: Captain_Kiyaku] #82342
07/20/06 10:52
07/20/06 10:52
Joined: Nov 2003
Posts: 1,659
San Francisco
JetpackMonkey Offline OP
Serious User
JetpackMonkey  Offline OP
Serious User

Joined: Nov 2003
Posts: 1,659
San Francisco
Quote:

the torches will through a round, hard shadow, and the sun often makes a smooth super soft shadow for the environment. the characters and items have hard shadows too, and doesnt really get brighter with a lightsource. They often have 100% lighting anyway




Thanks guys for your feedback. Windwaker sure does look good! Let me list off a few more questions, if you have answers I'd be very grateful.

1. So about the soft and hard light shadows from different light sources-- can I use dynamic lighting? I am using only MDL geometry (not blocks hence no A6 lightmaps)? Or am I stuck with putting blocks beneath the levels somehow?

2. I have the impression that a lot of background textures might not actually even need the cel shader applied to it, if the cartoon-look is somehow faked and hand painted the textures, e.g. if they already look cartoony enough. Any idea if this has been done in other projects, even like the wind waker? I imagine this could save time.

3. So I just keep the textures as nice solid pieces-- like the hat is just one color of brown, the shirt a solid blue, etc?

I'm mostly concerned about the difference between soft/hard lighting and how to accomplish it (.e.g will dynamic lights work, or must I find some other way?)

Thanks muchly!

Re: Cel shader scene lighting [Re: JetpackMonkey] #82343
07/20/06 11:05
07/20/06 11:05
Joined: Apr 2002
Posts: 4,801
Richmond B.C., Canada
Captain_Kiyaku Offline

Dichotomic
Captain_Kiyaku  Offline

Dichotomic

Joined: Apr 2002
Posts: 4,801
Richmond B.C., Canada
1. i think the normal cellshader from the wiki wont change the shadows with dynamic lights, it only uses the sunlight i think. but every model has its own self shadow with the toonshader, so you should use MDL Geometry to get the shadows on the objects. maybe its possible to rewrite the shader so models will be affected by dynamics light.

2. i know your graphic style and your textures. i actually think you dont need any cellshader. your style is perfect like it is, cause you drew all the details and light effects on the textures. it looks a bit like Kingdom Hearts. They dont use any light source either, they actually just bake the light onto the textures and draw the highlights and shadows.

3. your character has solid colors. with a toonshader, it will create more steps to your color, depending on the shadow steps you use (i prefer using only one shadow step). so for example your shirt is blue, and you have 2 shadow steps, your shirt has a blue, dark blue and darker blue color on it. it will look a lot more detailed than solid colors. so you dont actually need to add details onto the model / Textures when you use the shader.

but let me tell you something. i know your games graphic and i tzhink you should keep it like it is. the textures of the houses, woods, bottom, and so on is allready detailed, and the colors fits so nice. you shouldnt use a cellshader at all. just draw details and shadows onto the texture of your character, and keep the graphic look like it is. then even more people can play it, not everyone has a super good graphics card.


My Blog

"Tag und Nacht schrei ich mich heiser,
Wind weht alle Worte fort,
Tag und Nacht schrei ich mein Krähenwort!"

Subway To Sally - Krähenkönig
Re: Cel shader scene lighting [Re: Captain_Kiyaku] #82344
07/20/06 11:24
07/20/06 11:24
Joined: Nov 2003
Posts: 1,659
San Francisco
JetpackMonkey Offline OP
Serious User
JetpackMonkey  Offline OP
Serious User

Joined: Nov 2003
Posts: 1,659
San Francisco
Wow, thanks for such fast feedback, Kihaku..

Quote:

but let me tell you something. i know your games graphic and i tzhink you should keep it like it is. the textures of the houses, woods, bottom, and so on is allready detailed, and the colors fits so nice. you shouldnt use a cellshader at all. just draw details and shadows onto the texture of your character, and keep the graphic look like it is. then even more people can play it, not everyone has a super good graphics card.




Thanks for the opinion, that makes me glad to hear. Yep I've been thinking about that too-- like, do I really need to do that? In the few instances where I've tried out the shader it's looked a little overdone or kitschy-- my original logic was that it might be a good idea of a way to make it stand out, attract some novelty value since everyone loves shaders these days. Oh well at least I've got a good looking water shader in there

Though it is kind of in the same spirit as something that could be right for cel shading. But I think there is already a cartoony balance in there right now which probably doesn't need it.. So it's nice to hear a similar opinion.

I can probably take the cartoony look a little bit further in the game without using the shader anyway-- and have more control over it--plus I noticed I dropped about 10-15 fps when I use it! Yeuch!

I think I might not use cel shading after all, I've just been playing around with the idea and toonshader. It sure looks great in Wind Waker though. I've never seen Kingdom Hearts before, I just found some screenshots-- whoah Bambi and Tron together? Bizarre! But yea I see your point-- it does manage to look cartoony without cel shading, I think in a way it looks better than way.

Thanks a lot for the feedback!

Re: Cel shader scene lighting [Re: JetpackMonkey] #82345
07/20/06 11:34
07/20/06 11:34
Joined: Apr 2002
Posts: 4,801
Richmond B.C., Canada
Captain_Kiyaku Offline

Dichotomic
Captain_Kiyaku  Offline

Dichotomic

Joined: Apr 2002
Posts: 4,801
Richmond B.C., Canada
Kingdom hearts 1+2 are my favorites games and will ever be. the story, the graphic, the animation, the music, the life in it, its so impressive.

yeah your style is cartoony a lot allready. if you really want to increase it, one thing might help. you should try to bright up your textures and objects, like 100% albedo or the other thing (forgot the name, i stoped gamedesign, so i forgot xD). ahh ambient.. was it? whatever. but this might help, it looks more cartoony then too.

and yeah shaders sucks xD i dont really like shaders. i love those shaders without any puixel or vertex version, cause they run almost everwhere. but im too much in love with bloom shader, heat hazard and cell shader. i love it. but i dont really use cell shader often, dont know why. the 3dgs shaders slows down the game a lot (i think it creates a copy of each model, give it a black texture, scall it and flip the normals) but i love the shadows on it, and i always use vector style for pictures so yeah thats why i love cell shading.

but really, keep your graphic style, and try to bright it up when you want it more cartoony, that might help.
anmd use point shadows


My Blog

"Tag und Nacht schrei ich mich heiser,
Wind weht alle Worte fort,
Tag und Nacht schrei ich mein Krähenwort!"

Subway To Sally - Krähenkönig
Re: Cel shader scene lighting [Re: Captain_Kiyaku] #82346
07/20/06 11:40
07/20/06 11:40
Joined: Nov 2003
Posts: 1,659
San Francisco
JetpackMonkey Offline OP
Serious User
JetpackMonkey  Offline OP
Serious User

Joined: Nov 2003
Posts: 1,659
San Francisco
wow we are using the forum nearly in real-time


Yea I think you're right about albedo and ambient-- I've played around with that a lot and it seems to really help. Umumumum I just searched the forum for it, but I can't find anything on point shadows. Could you explain?

Bye!

Re: Cel shader scene lighting [Re: JetpackMonkey] #82347
07/20/06 11:46
07/20/06 11:46
Joined: Apr 2002
Posts: 4,801
Richmond B.C., Canada
Captain_Kiyaku Offline

Dichotomic
Captain_Kiyaku  Offline

Dichotomic

Joined: Apr 2002
Posts: 4,801
Richmond B.C., Canada
lol yeah im bored at work so i press the refresh button thousand times per minute 8D

im glad it helped a bit with the ambient and albedo.

yeah sure. point shadow is just a round, black fading sprite, that you use as shadow for your characters, like in cartoons. they only have a black spot under themself which fades out. just create a round black sprite, and place it on the bottom under your player.use it also for ovbjects like trees, pots, and so on i do it in my game too, so you dont need to use stencil shadows or whatever.


My Blog

"Tag und Nacht schrei ich mich heiser,
Wind weht alle Worte fort,
Tag und Nacht schrei ich mein Krähenwort!"

Subway To Sally - Krähenkönig
Page 1 of 2 1 2

Moderated by  Blink, Hummel, Superku 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1