Home Technical Talk
The BRAWL² Tournament Challenge has been announced!

It starts May 12, and ends Sept 12. Let's see what you got!

https://polycount.com/discussion/237047/the-brawl²-tournament

UT2k3/4 Cel shading tutorial?

CheapAlert
polycounter lvl 20
Offline / Send Message
CheapAlert polycounter lvl 20
Google fails it. frown.gif

I know OrangeCatNinja did it but I unfortunately can't find it anywhere. His site bit the dust i guess?

Replies

  • KDR_11k
    Offline / Send Message
    KDR_11k polycounter lvl 20
    It's easy:

    <font class="small">Code:</font><hr /><pre>Shader
    +->[Diffuse] (or [Self Illumination] if you want it fullbright)
    Combiner (set to multiply)
    +->[Source 1]
    | Your Texture goes here
    +->[Source 2]
    Envmap (aligned to camera space)
    +->A Cubemap with a black backside and perhaps some grey on one side
    </pre><hr />

    The shader is necessary so the lighting gets applied to the result after the cubemap blending, without it the lighting is applied to the source texture and the multiply will darken it from there but washed out colour won't return.

    Or there's this version, combiner set to blend using mask alpha:
    materialtree.gif

    (this won't produce an outline but you could combine it with OCN's shader if you remove the shadow part from its cubemap to get that outline or do the shell trick. I didn't use the outline for Sion since it's not noticeable ingame, anyway)
  • acc
    Offline / Send Message
    acc polycounter lvl 20
    This thread has OCN's original tutorial and the tweak to make it work in recent engine versions.
  • CheapAlert
    Offline / Send Message
    CheapAlert polycounter lvl 20
    Ooh, thanks guys, got it to work.
Sign In or Register to comment.