Jump to content

Toon Ink Shader Possible?


Recommended Posts

Hello everyone,

I have been experimenting with some toon shading ideas myself, although i'm not much into shader writting (yet) i'm trying hard to understand how it works. Here's what i got so far.

I know the fill color sucks and the shader only uses external contour lines, the way i did this was by picking P and moving it along a given distance along it's normal, then used rayhittest() from the camera to the new P and set rayhittest() scope to getobjectname() so it will check for itself at the new coordinate and if it can't find it it will be shaded as outline, otherwise it will be shaded naturally.

This is not actually very practical but simply a test, you can also notice the outlines would require quite a bit of antialiasing and the fill color REALLY needs a lot of work, anyway just wanted to show my weird approach.

P.S - Sorry it was working when i posted, it is now attached.

Cheers,

post-1076-1148376909_thumb.jpg

Link to comment
Share on other sites

  • 1 year later...
Guest Swann

Hey Sybarrick,

I got some info from Andz that you are the autor of this function:

Could you explain this funtion:

$dangle = max(abs(Du($x))+abs(Dv($x)), $MINFILTER);

You just taked this function from somehere or it's all your Idea ?

InlineVOP takes inputs name from every $something from our function, right ?

So I can name it $whatever if it only follow function syntax, right or unsure.gif not ? If yes, why when I change name it show error ?

Or maybe it shows error because MINFILTER is function not name you think up from nowhere, so it has to be named like this ? But it shows error even if I change x to something else.

Or maybe I make error somewhere in my thinking ?

Thanks

Link to comment
Share on other sites

I don't recall if it was me or not but that looks suspiciously like something from the Advanced Renderman book, probably just converted to Mantra vex code.

You are correct about the inline sop and the $ notation.

I think $MINFILTER is a global variable it is set externally to be a small float value so if you change that it will break, you can change it to another float value but I can't predict what the results will be.

Hope that helps

Link to comment
Share on other sites

Guest Swann
I don't recall if it was me or not but that looks suspiciously like something from the Advanced Renderman book, probably just converted to Mantra vex code.

You are correct about the inline sop and the $ notation.

I think $MINFILTER is a global variable it is set externally to be a small float value so if you change that it will break, you can change it to another float value but I can't predict what the results will be.

Hope that helps

I too Hope :unsure:

Thanks

Link to comment
Share on other sites

  • 3 months later...
Hi,

I'm new :ph34r:

I wish something like "jot" would be available in Houdini

http://jot.cs.princeton.edu/index.php

Check out the demo here:

http://www.cs.princeton.edu/gfx/pubs/Kalni...3_CSS/index.php

If someone makes something similar in houdini he gets a cookie from me.

Cheers

blazej

Someone feel like writing a SOHO exporter for it? ;)

Looking at the technical paper on jot, I wish they'd used an established geometry format - but I guess they wanted to tag creases and such.

An example here: http://forums.odforce.net/index.php?showtopic=6405

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...