db&w Support Forum
Welcome, Guest. Please login or register.
Did you miss your activation email?
March 11, 2010, 03:14:35 AM
2465 Posts in 440 Topics by 800 Members
Latest Member: icersteet
Home Help Search Calendar Login Register
db&w Support Forum  |  shaderMeister  |  shaderMeister Presets  |  Creating a HV Pass using shaderMeister 0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: Creating a HV Pass using shaderMeister  (Read 1680 times)
lightwolf
infiniMap / exrTrader / shaderMeister developer
Administrator
*****
Offline Offline

Posts: 1227


Obfuscated SDK Hacker


WWW
Creating a HV Pass using shaderMeister
« on: October 12, 2009, 02:21:23 PM »

Hello there,

this is an example of how to use shaderMeister to create a Hypervoxels pass for Hypervoxels that either refract or reflect the surroundings.

Traditionally one renders one pass with the HVs set to be unseen by rays to get a pass for the geometry.
The other pass usually has all objects set to matte objects (using the item properties) and their shadow options to black.
This has the disadvantage of the items also showing up as black in the reflections and refractions of the render.

[ Attachment: You are not allowed to view attachments ]
This is the basic scene that is attached to illustrate the problem. And no, it's not meant to be pretty, only illustrative Wink

[ Attachment: You are not allowed to view attachments ]
This image is the render with all items set as matte objects (which isn't what we want).

[ Attachment: You are not allowed to view attachments ]
This is the first pass: The scene is rendered as normal, the items that are rendered as Hypervoxels are set to be Unseen by Camera (as you can see the HVs still cast a shadow).

[ Attachment: You are not allowed to view attachments ]
This is the pass that we actually want to have. Only the Hypervoxels are visible, but they still reflect and refract the complete scene.

[ Attachment: You are not allowed to view attachments ]
First, all items in the scene have their item properties changed to render a black alpha.
This allows you to comp the HV pass on top of the basic geometry pass.

[ Attachment: You are not allowed to view attachments ]
Since we want the surfaces to show we will not touch the item matte properties. Instead, shaderMeister is applied to all surfaces.
A global override is applied that will keep the surfaces as they are if the current level of recursion (Bounces) is more than 0, otherwise they are set to be black.
Since rays with a bounce of 0 are bound to be from the camera, this will effectively render the object surfaces as black when seen from the camera and keep them as they are when seen from another source (such as a ray spawned due to reflection or refraction).

I've also attached the sample scene including a content preset for shaderMeister.

If there's any questions, please feel free to ask here.

Cheers,
Mike

« Last Edit: October 12, 2009, 02:48:04 PM by lightwolf » Logged

Optimism is an occupational hazard of programming: feedback is the treatment. (Kent Beck)

skype: lupus_lux
Visit us on facebook: http://www.facebook.com/dbw.finest.plugins
MrWyatt
Kilo Pixel Renderer
**
Offline Offline

Posts: 94

infiniMap User


WWW
Re: Creating a HV Pass using shaderMeister
« Reply #1 on: October 13, 2009, 10:08:52 AM »

that is a nice one. thanks Mike. I always struggled over rendering my HV's in a separate pass and have refractions and reflections render properly.
this will be really helpful.
 Grin
Logged

lightwolf
infiniMap / exrTrader / shaderMeister developer
Administrator
*****
Offline Offline

Posts: 1227


Obfuscated SDK Hacker


WWW
Re: Creating a HV Pass using shaderMeister
« Reply #2 on: October 13, 2009, 11:30:57 AM »

that is a nice one. thanks Mike.
Well, I just can't let only you come up with useful presets, can I? Cheesy
this will be really helpful.
Great Smiley

Cheers,
Mike
Logged

Optimism is an occupational hazard of programming: feedback is the treatment. (Kent Beck)

skype: lupus_lux
Visit us on facebook: http://www.facebook.com/dbw.finest.plugins
MrWyatt
Kilo Pixel Renderer
**
Offline Offline

Posts: 94

infiniMap User


WWW
Re: Creating a HV Pass using shaderMeister
« Reply #3 on: October 13, 2009, 11:54:53 AM »

Well, I just can't let only you come up with useful presets, can I? :DGreat Smiley

Cheers,
Mike

 Grin
hihi.
I guess you can't.
Logged

John F Wiederhirn
Pixlet
*
Offline Offline

Posts: 1


Re: Creating a HV Pass using shaderMeister
« Reply #4 on: January 19, 2010, 02:52:45 AM »

Wow, was looking for a way to do precisely that with HVs the other day, using SM didn't occur to me.  This is great, guess I should be watching these forums more closely.

Thanks!
Logged
lightwolf
infiniMap / exrTrader / shaderMeister developer
Administrator
*****
Offline Offline

Posts: 1227


Obfuscated SDK Hacker


WWW
Re: Creating a HV Pass using shaderMeister
« Reply #5 on: January 19, 2010, 08:51:47 AM »

Wow, was looking for a way to do precisely that with HVs the other day, using SM didn't occur to me.  This is great, guess I should be watching these forums more closely.
It's one of those things I guess. I can be surprisingly useful the more you use it.

I'm certainly surprised, and I coded it Wink

Cheers,
Mike
Logged

Optimism is an occupational hazard of programming: feedback is the treatment. (Kent Beck)

skype: lupus_lux
Visit us on facebook: http://www.facebook.com/dbw.finest.plugins
Pages: [1] Go Up Print 
« previous next »
Jump to: