noizfactory
This is something that came up during an unrelated discussion on the arnold mailing list where I was pointed to a sketch by Dreamworks on "Simplified Tree Lighting Using Aggregate Normals". I found another one later by Lucas Films which also had a similar implementation.

So I've managed to recreate that workflow using SOuP nodes and think its working pretty well so far. This method simplifies lighting of high frequency and complex objects like trees where each leaf or branch gets lit as per its geometry normals which could create in many cases, problems with anti-aliasing especially when the objects are really small in screen space. Instead by collecting the normals of a simplified shell representation of the geometry and using this to shade the objects you can achieve a simpler lighting solution. In more complex setups this even reduces the render time (as the normals are more simplified this time).

For this example I have just used a Visor pfx tree and half a sphere as the shell mesh. You could even generate an isomesh of the complex geo and use that as the shell. You can also blend between the geometry normal and the shell normal with the blendArray node (that would essentially "wrap" the lighting). Its amazing how I could simply easily achieve this with standard SOuP nodes without going into any custom stuff at all. And the advantage with SOuP being that I can view the result in the viewport itself. Hope this interests you.

Maya File
soup_aggregateNormals.jpg
Reply 0 0
pshipkov
Very nice man. You keep surprising us with fancy stuff. Thanks for sharing it. I am checking your scene now.
Reply 0 0
JeremyR
yeah thats really impressive - so simple but well thought out. More stuff like this please. I think we could do with a few examples in the download archive too && the examples page.

Would be good to get some speed tests if you have the time.
Reply 0 0
noizfactory
Sure, thanks guys. I'll post some renders when I set up a decent scene. Although now I'm realizing that the purpose of this method, more than reducing render time is to simplify and enhance foliage lighting.
Reply 0 0
JeremyR
Yes, I think its far more effective lighting especially for distant objects. Im wondering if having many instances will make MR shine.
Reply 0 0
Pizzaman
If you want a advanced way of doing this, you can emit blobby particle from your leaves position and extract the isomesh to be used as the source of your pointonmeshinfo. Depending on the radius of your blobby, you'll get a softer or sharper lighting model.

Here is the technical paper about this technique, and in realtime :
http://www.inf.uni-konstanz.de/gk/pubsys/publishedFiles/LuBaDe07.pdf

I've also tried to get this working, but I'm stuck with the fact I'm using instanced leaves on my trees. And I can't get different normals on different instances of the same geometry... too bad.
Reply 0 0
noizfactory
Yeah I've tried this with instances in mental ray and it was working pretty decently.
And yes, blobby particles would be a good way to generate the isomesh (but due to the dense mesh I'm dealing with, I'm not even attempting that in Maya. Instead Houdini's isooffset node is what I'm experimenting with). As far as instances is concerned, you can instance the lores blobby mesh, uninstance that and then combine that as a single mesh. You can then transfer normals from that onto per instance. Although you'll have to deal with shading the instance with this normal yourself.
Reply 0 0
Pizzaman
Yep, as I'm working with Arnold render, I don't have the knowledges to code a shader that grab the normal of the source mesh at render time. And the problems keep rising when you're instancing trees with instanced leaves... the transforms are stacking and it becomes difficult to get the normals in world space...
Reply 0 0
Reply