Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Cel Shaders

Leone Trescothick
Registered User
Join date: 27 Dec 2005
Posts: 9
12-30-2005 12:07
I've seen a couple of buildings that used Cel (aka Toon) Shaders and know of the occasional avatar. I was wondering if anyone had some more info on how this was done in SL. Tutorial maybe? Big hint? It would be much appreciated info!
Chosen Few
Alpha Channel Slave
Join date: 16 Jan 2004
Posts: 7,496
12-30-2005 12:41
Hi Leone. Welcome to SL. :)

The way cell shading is tyipcally done in SL is by a little trick with doubled prims and transparency. Here's the how-to:

1. Create a prim and hollow it. Put a transparent texture on the outside, and a black texture on the inside. This prim will become your "outline".

2. Create a slightly smaller prim of the same type, give it a solid color, and place it inside the first prim.

Because the exterior of the"outline prim" is transparent, you'll be able to see the "color prim" through it. Because the "color prim" is smaller, you'll see the black interior of the "outline prim" all around the edges.


You mentioned buildings. Becsause they are rectangular and they don't move, often cell shading on buildings is much simpler. The above trick is not usually necessary for non-rounded objects. Just create cartoonish textures and apply them directly to the surface.
_____________________
.

Land now available for rent in Indigo. Low rates. Quiet, low-lag mainland sim with good neighbors. IM me in-world if you're interested.
Torley Linden
Enlightenment!
Join date: 15 Sep 2004
Posts: 16,530
12-30-2005 13:24
Once again Chosen hits it home run with a post! :)

Also...

There is a lovely tutorial which Forseti Svarog made called the MERRY DRAFT, which shows you how to do cellshade and others.

If you would like one, free, please IM me inworld, even if I'm offline. That'll prompt and remind me to send ya one Leone. Cheerio!
_____________________
AJ DaSilva
woz ere
Join date: 15 Jun 2005
Posts: 1,993
12-30-2005 16:36
Depending on the effect you want, the inner prim may need to be set to fullbright; if you're using a texture to fake block shading for instance.
_____________________
Zepp Zaftig
Unregistered Abuser
Join date: 20 Mar 2005
Posts: 470
12-30-2005 17:05
To create a one-prim cel shaded sphere follow these instructions(from some notecard I found in-world somewhere)

Create a sphere
Hollow to 95%
Set a blank texture and make the color black(shade color)
Back in the Objects tab, twist B AND E to 180
At the top of the edit window, select "Select texture"
Click the ball once so it selects the outside
Make the color white(main color)
Chosen Few
Alpha Channel Slave
Join date: 16 Jan 2004
Posts: 7,496
12-30-2005 18:42
From: Zepp Zaftig
To create a one-prim cel shaded sphere follow these instructions(from some notecard I found in-world somewhere)

Create a sphere
Hollow to 95%
Set a blank texture and make the color black(shade color)
Back in the Objects tab, twist B AND E to 180
At the top of the edit window, select "Select texture"
Click the ball once so it selects the outside
Make the color white(main color)

Thanks for that, Zepp. When I first read your instructions, I was skeptical, but somehow this really works. I have no idea why, but it does. Great prim saver.
_____________________
.

Land now available for rent in Indigo. Low rates. Quiet, low-lag mainland sim with good neighbors. IM me in-world if you're interested.
Forseti Svarog
ESC
Join date: 2 Nov 2004
Posts: 1,730
12-30-2005 23:22
From: Chosen Few
Thanks for that, Zepp. When I first read your instructions, I was skeptical, but somehow this really works. I have no idea why, but it does. Great prim saver.


heheh yeah ditto

i always wonder how people discover these things... just trying every possible combination? lol

btw torley, can you drop that double loop 1-prim example on me? speaking of "how did they discover that?" examples lol
_____________________
Leone Trescothick
Registered User
Join date: 27 Dec 2005
Posts: 9
12-30-2005 23:51
Heh. After posting I realised that it was probably something like this! That'll teach me to post without trying to problem solve properly :P But I'd definately benefit from ppl's experience so I'll PM/IM and get that info real soon, thanks everyone. But for now it is New Years Eve and I must go get drunk!
Torley Linden
Enlightenment!
Join date: 15 Sep 2004
Posts: 16,530
12-31-2005 19:09
From: Forseti Svarog

btw torley, can you drop that double loop 1-prim example on me? speaking of "how did they discover that?" examples lol


Okeydoke will do so! Look for it soon... :)
_____________________
Torley Linden
Enlightenment!
Join date: 15 Sep 2004
Posts: 16,530
01-01-2006 21:42
Schtuff sent! If anyone else wants, SAY SO! IM me in... Second Life (where else?).
_____________________
Saul Lament
Mean & Evil
Join date: 24 May 2004
Posts: 163
01-02-2006 01:22
From: Zepp Zaftig
To create a one-prim cel shaded sphere follow these instructions(from some notecard I found in-world somewhere)

Create a sphere
Hollow to 95%
Set a blank texture and make the color black(shade color)
Back in the Objects tab, twist B AND E to 180
At the top of the edit window, select "Select texture"
Click the ball once so it selects the outside
Make the color white(main color)



I made that and turned on physics and watched it slow sink into the ground and disappear. Freaky :D
Leone Trescothick
Registered User
Join date: 27 Dec 2005
Posts: 9
01-03-2006 06:45
Finally got around to trying it. That works a treat, though I'd love to have a "show normals" button so I could see how it happened ;) I tried physics and it worked fine for me...I was pushing bright orange cel shaded balls around no problems. Thanks Zepp!
Logan Bauer
Inept Adept
Join date: 13 Jun 2004
Posts: 2,237
01-03-2006 07:08
From: Chosen Few
Thanks for that, Zepp. When I first read your instructions, I was skeptical, but somehow this really works. I have no idea why, but it does. Great prim saver.


Setting the twist beginning and end both to 180, as far as I've come to understand it, turns the object inside-out....