Andy Moorer is a VFX artist and TD working in the film industry.

Archive for NPR

A discussion about Mudbox and Zbrush-style shading arose on the Softimage mailing list. Their signature look comes from “MatCap” shaders (originally known as lit-spheres.) It’s a popular way to achieve a custom lighting solution from a texture, in realtime, which is particularly useful when modeling – you can get a nice clay or sculpy “look” to geometry in realtime. It’s also useful for creating nonphotorealistic (NPR) looks in realtime, toon shading etc.

As mentioned in an earlier post, the grey-ball shader in mental ray can render litsphere textures, and a user suggested that in the high quality viewport you can get the desired result by plugging the metaSL node “Map_ball” into the environment channel. The problem with this is the result (on my machine, at least) appears in world space. A proper litsphere should be in view space.

But it called my attention to something important – almost all of the metaSL nodes used in Mental Mill are now accessible in the render tree and can be used similarly – meaning for most intents and purposes all softimage users now have Mental Mill. Which is awesome.

But we still needed a solution for matcap functionality in the high quality viewport. So I bit the bullet and wrote a metaSL shader which seems to do the trick. It can be used for both realtime performance in the high quality viewport as well as full renders in mental ray (and any other platform supporting metaSL.)

Update: Daniel Brassard kindly fixed some bugs, the new version is now available below. Thanks Daniel!

Here’s the shader (MetaSL ~2kb): litsphere_v1_1

More examples of the shader:

Categories : 3D Graphics
Comments (1)
Mar
05

Dragon NPR

Posted by: | Comments (0)

A render region capture using a litsphere in Softimage, with a quick vignette slapped on in photoshop. Quick, easy, fun.

Categories : 3D Graphics
Comments (0)

It had been a while since I wrote anything technique-specific for softimage, so I decided to come up with a rendertree setup for “lit sphere” rendering and share it on this blog. I would talk about normals and angles of incidence and it would be completely cool. Well, it’s still cool, but no need for much in the way of discussion…  it turned out to be ridiculously simple.

Have you ever used mudbox or zBrush and noticed how nice their realtime clay-like materials are? That’s what we’re talking about.

A “lit sphere”, or what zBrush users might recognize as a “MatCap” material, is a technique first described (as far as I know) by Bruce and Amy Gooch, Peter Sloan and William Martin in their 2001 paper  “The Lit Sphere – A model for Capturing NPR shading from Art.”

The basic idea is simple: a spherical image can act as a stand-in for the lighting of a more complex surface, by mapping the angle of the surface normal  (as seen from the camera) to XY coordinates of an image, such that the center of the image relates to a surface facing the camera and every other angle of incidence maps to an X (horizontal angles) and Y (vertical) coordinate on the texture.

The result is “lighting” defined for every possible normal via a simple texture, and what’s really cool is that the result can easily approximate various painterly, sketchy or waxy surfaces. Since everything derives from a texture, it’s fast enough for realtime shaders and easy to change and edit.

Ok, so how do we get this result in realtime, and how do we get it in Mental Ray? Well, realtime requires a realtime shader. It’s easy to make a HLSL shader in Mental Mill without any shader programming expertise at all. Here’s an admittedly junky one for use in Maya, which works in Softimage as well.

But if you don’t want realtime display in your viewport, it’s just as simple to render litspheres in Mental Ray, regardless of what package you’re using. Just use the mip_Gray_Ball shader, and feed it a “litsphere” texture. That’s it. Done.

So, while this topic didn’t prove to be a basis for a insightful tour through the rendertree, at least it’s cool in the sense that you just can’t get a more powerful shading tool any simpler than this. If you are looking for an interesting approach to NPR or “Painterly” rendering styles, you want to specifically mimic a sketchy or painterly style of a traditional artist, or you want a good realtime material to model with that has the same feel of lighting you get in mudbox, now you’re set.  Enjoy.

Categories : 2D Graphics, 3D Graphics
Comments (0)
May
11

NPR and procedural sketching in ICE

Posted by: | Comments (0)

(This article is a follow up to a thread on the XSI mailing list, showing some experiments I did a ways back with NPR using softimage ICE…)

 


Comments (0)
Jul
13

Graffiti Analysis

Posted by: | Comments (0)

http://graffitianalysis.com/about/

Grafitti analysis is an interesting project by Evan Roth (and others) where he’s converting graffiti, or more accurately the motions which create graffiti tags, into data, which is then archived into a database and can be displayed as a 3d visualization. There are some interesting applications, but mostly I think it looks cool.

Categories : 3D Graphics
Comments (0)
May
27

Leonardo Predicted Gulf Spill

Posted by: | Comments (0)

It's right there in his notebooks!

Ok, well no…. It’s just me fiddling around with photoshop to loosen up after a break from graphics.

Categories : 2D Graphics
Comments (0)
Mar
25

Testing Mach Studio

Posted by: | Comments (0)

Here’s the result of 1/2 hour (probably less) fiddling around with Mach Studio Pro and  Photoshop to try to see how fast I could produce an acceptable concept image.

I exported the buildings from Maya which took a few minutes, slapped on some materials, threw in an environment light and a spot light. Rendered a frame (which took 0.13 seconds to render) and took it into photoshop where again I just threw some elements together – a sketch filter blended with the CG, some vignetting and color manipulation. It’s not going to win any awards but that’s not the point… I was able to get this image out from start to finish incredibly fast, and that’s despite my being a novice with MSpro.  Very promising…

Categories : 3D Graphics
Comments (0)
Mar
12

Doodling with hypersketch and photoshop

Posted by: | Comments (0)

Hey, it was drawn with a mouse. Sue me.

Comments (0)
Feb
28

XSI toon shader

Posted by: | Comments (0)

Did some more work on a basic realtime toon shader for XSI (and maya, it’s CGFX.) Here’s a sample…

Me. Me me me. Me too.

It's Agent Smith(s), toon style.

Functionality is pretty basic at the moment: Ink threshold, 2 levels of paint and a hard spec hilight, overall color control, a single point light source. I still need to introduce diffusion and spec mapping, possibly some reflections and bump/normal. Remember, if you see an agent, run.

Categories : 3D Graphics
Comments (0)
Feb
26

Playing with NPR

Posted by: | Comments (0)

I’ve been playing around with a little app on my iPhone which creates NPR sketch effects from photos (I gather made by Bruce Gooch, who has done a lot to advance the state of the art in ‘painterly’ and ‘sketchy’ image manipulation.) ToonFX

Two of my dogs

Two of my Great Pyrenees dogs, Frankie and Hutch.

The app is simple but with a little effort and insight you can get some good results.

Categories : 2D Graphics
Comments (0)

Andy Moorer

Copyright © 2010 All Rights Reserved