Results 1 to 7 of 7

Thread: Writing a hand-drawn cel-shader

  1. #1
    Junior Member Newbie
    Join Date
    Apr 2008
    Posts
    4

    Writing a hand-drawn cel-shader

    I'm not sure if this is the right section to post this question, but here goes:

    I want to write, using GLUT, a cel-shader to render my models with a hand-drawn look. Something along the lines of this:
    http://matthieu3d.free.fr/TutoVira2/tut_images/AO.jpg

    While I can find resources on cel-shading in OpenGL, I have yet to find anything about making it look hand-drawn or sketch-looking. Anyone know good resources on these?

    Thank you!

  2. #2
    Member Newbie
    Join Date
    Apr 2008
    Location
    Germany
    Posts
    38

    Re: Writing a hand-drawn cel-shader

    The image you refer to is actually part of a tutorial. If you don't speak french, the author actually provides an english version too. Or you could try to google online translate it to a language of your choice.

    If that has not been the problem or leaves any questions - feel free to ask.

  3. #3
    Junior Member Newbie
    Join Date
    Apr 2008
    Posts
    4

    Re: Writing a hand-drawn cel-shader

    I know. I got the idea of making a hand-drawn cel-shader from that tutorial. The tutorial, however, says how to render a model in such a style in Blender. What I'm interested in, is actually WRITING a renderer that does such a style.

  4. #4
    Member Newbie
    Join Date
    Apr 2008
    Location
    Germany
    Posts
    38

    Re: Writing a hand-drawn cel-shader

    There is nothing blender can do, what can't be done in opengl (because blender itself uses opengl in the end, right ? ).

    You need to understand which steps are taken to produce the given result, so you can reproduce them in opengl.

    At a first glance i would suggest:
    - the input images (shadow, edge, ambient occlusion*) can be rendered-to-texture.
    - the effect textures (wood, cloud) can be pre-computed and loaded from file (alternatively implemented procedurally on gpu)
    - all the images combining work can be done by a shader

    * that one will most likely become the performance bottleneck

    I hope this is of any help to you.

  5. #5
    Super Moderator OpenGL Lord
    Join Date
    Dec 2003
    Location
    Grenoble - France
    Posts
    5,574

    Re: Writing a hand-drawn cel-shader

    Quote Originally Posted by S.Seegel
    There is nothing blender can do, what can't be done in opengl (because blender itself uses opengl in the end, right ? ).
    Yes and no. Yes, with GLSL, a bunch of texture, render to texture, oversampling, you can do almost everything blender does.
    No, blender does not use GLSL for its rendering. It is pure CPU only. The realtime views actually use OpenGL but in a very basic way, this is being improved thanks to the game based on the Bick Buck Bunny movie, some hints here : http://apricot.blender.org/?page_id=14


    For inspiration, here is some very nice realtime hand-drawn-like cell shading, from the Sega game "Valkyria Chronicles" aka. "Valkyrie of the Battlefield" :

  6. #6
    Junior Member Newbie
    Join Date
    Apr 2008
    Posts
    4

    Re: Writing a hand-drawn cel-shader

    Here's my current plan:
    Given an OBJ file, I want to render it with traditional toon shading, but outlines will be drawn "artistically". I found this site: http://www.dgp.toronto.edu/~todd/isophote/ that talks about one way to have artistic lines. I'm actually pressed for time because it's a class project due in a week. Don't know if this is doable.

  7. #7
    Junior Member Newbie
    Join Date
    Apr 2008
    Posts
    4

    Re: Writing a hand-drawn cel-shader

    Here's my current plan:
    Given an OBJ file, I want to render it with traditional toon shading, but outlines will be drawn "artistically". I found this site: http://www.dgp.toronto.edu/~todd/isophote/ that talks about one way to have artistic lines. I'm actually pressed for time because it's a class project due in a week. Don't know if this is doable.

Similar Threads

  1. Making hour hand and minute hand rotate(Clock)
    By nadeera in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 03-16-2017, 01:30 AM
  2. Texture not being drawn, UV Coordinates not being passed into shader.
    By Dooskington in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 06-11-2013, 03:23 PM
  3. Replies: 3
    Last Post: 11-08-2004, 04:23 AM
  4. Replies: 3
    Last Post: 03-26-2004, 05:20 AM
  5. Replies: 3
    Last Post: 09-16-2001, 09:59 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean