Cel shading

Discuss programming topics for any language, any source base. If it is programming related but doesn't fit in one of the below categories, it goes here.
toneddu2000
Posts: 1395
Joined: Tue Feb 24, 2009 4:39 pm
Location: Italy

Re: Cel shading

Post by toneddu2000 »

Ace12GA wrote: Wow, does that deferred shadow stuff ever kill my frame rates.
Really? I tested with a simple test map and I didn't find any performance gap, but maybe because my map was just a cube!
I'll experiment more, even because I didn't find it so "cartoonish" as I thought
Meadow Fun!! - my first commercial game, made with FTEQW game engine
SimplySerenity
Posts: 23
Joined: Sun Apr 15, 2012 12:03 am

Re: Cel shading

Post by SimplySerenity »

Ace12GA wrote:What version of DP does this work with?

EDIT: Never mind, downloaded the latest autobuild, and its there. Wow, does that deferred shadow stuff ever kill my frame rates.
What's your computer specs? :o It's not too bad on mine. ^.^
Ace12GA
Posts: 56
Joined: Sat Jan 28, 2012 12:08 am

Re: Cel shading

Post by Ace12GA »

Athlon II X4 640
8GB Ram (DDR3 1600)
AMD 6790 1GB
1920x1080 panel
Running on Fedora 16 with Catalyst 12.2

I go from 60 fps (vsync) to 30 fps with the deferred shadow enabled in many areas. I will have to try it on my Windows box with an Nvidia GTX460, as it could be an AMD card in Linux issue.

Here are two screenshots, one with, and without the celshading active. The drop is at least 20fps in these shots.

http://evan.action-web.ca/misc/darkplaces/celshaded.jpg
http://evan.action-web.ca/misc/darkplac ... shaded.jpg

Also, for the effect to work, you need new textures. I replaced the detailed textures on some of my weapon models with flat textures, and the effect is much better in those cases.
Ace12GA
Posts: 56
Joined: Sat Jan 28, 2012 12:08 am

Re: Cel shading

Post by Ace12GA »

Performed testing on the following system:

AMD Phenom II X4 965
8GB DDR3 1600
Nvidia GTX460 1GB, driver 285.62
1680x1050 Panel
Windows 7 x64 up to date as of this morning.

I see the same thing, with r_shadow_deferred 1 set, the performance takes a roughly 50fps hit. I tested without vsync to really see the hit.

http://evan.action-web.ca/misc/darkplac ... ded-02.jpg
http://evan.action-web.ca/misc/darkplac ... not-02.jpg
http://evan.action-web.ca/misc/darkplac ... ded-03.jpg
http://evan.action-web.ca/misc/darkplac ... not-03.jpg

It would seem that cel shading is pretty costly on performance with DP.
SimplySerenity
Posts: 23
Joined: Sun Apr 15, 2012 12:03 am

Re: Cel shading

Post by SimplySerenity »

Yeah I think you're right. It is a little intensive. I go from around 200 fps to about 100 fps. Your spec's are better than mine everywhere except the graphic's card.

Mine are: Nvidia GTX 550ti 2gb
AMD Athlon II X2 220
3gb ddr3
1600 x 1200
with all setting's maxed, and software up to date.
I have the feeling that if i had a better processor it wouldn't be as bad though. :P
Post Reply