Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Display Modes
  02 February 2005
OS X compile? anybody?
  02 February 2005
Wow. Awesome. Now I can through away my MPR plugin.. Atleast I've got the concepts now.

  02 February 2005

Did you write a zdepth shader,or is that just for reference?
  02 February 2005

very cool stuff ! would be nice that the names get the framepadding from the renderglobals?!

love this bufferstuff !!!
  02 February 2005
Quote: I guessed that you plug a material into the 'render buffer' slot just so you can see it in the render view window, but it doesn't get saved out? At least it didn't for me. Or is that what the 'skip renderregion' control does?

Jozvex the renderbuffer or primary buffer is the standard rgba output.. and it is controlled by the first tab in your renderglobals. instead the skip renderregion just allows you to skip the buffer writing while you're not rendering a full frame (remember also to disable the buffers into the buffer_store.. or mr will takes more time also to render them out while they're not writed out in the final)

Quote: Did you write a zdepth shader,or is that just for reference?

if you enable the depth buffer in your camera->mentalray settings, you'll get an automatic depth pass with no additional render time.. the buffer_write will recognize this and will output the file.. also supported are the motion and normal buffers. however take care that these buildin buffers will not interpolate the output so you'll get jagged edges on the silhouette. you should use your custom shader and the buffer_store to get interpolated results (about this.. do not enable manually the userframebuffer under the renderglobals(maya65).. you'll get uninterpolated results.. instead just play with the buffer.range to get enabled your buffers in the right way... it tooks me more time to hack this than actually write both the shaders...).. I will add some more explicit ctrls in the future.

Quote: would be nice that the names get the framepadding from the renderglobals?!
I also thought about this.... along with a way to take the name directly from the buffer_store.


Last edited by francescaluce : 02 February 2005 at 02:49 PM.
  02 February 2005
Is it possible to get ths shader to output all shadows in a separate pass?
Or maybe fb's don't work that way?
  02 February 2005
Originally Posted by zkanal: Is it possible to get ths shader to output all shadows in a separate pass?
Or maybe fb's don't work that way?

You must understand that framebuffers are just used to output multiples images from a single render. Framebuffers are not a "pass system", except if you layer your shaders (diffuse, spec, refl, ... in separate shaders, mixed with a mixlayer ie) and then output these shaders to differents framebuffers. So you can output a shadow pass if you make a shadow shader

PS: Zdepth and others specials things (available in the main framebuffer in maya render globals) are used by mr by default and can be outputed directly
  02 February 2005
Ok, I *thought* it worked like that, but one cannot know without asking
Thanks for your reply.
  02 February 2005
I got some pms asking for explanations.. what can I add in that direction is just that each
buffer when enabled (buffer.range) from the buffer_write is really empty and waiting for
the buffer_store to write to it while rendering.. this means that you can actually use n
buffer_store to write all to the same buffers... if you decide that ie the channel1 will be
specular.. you can attach to each mat you'll need on that channel a buffer_store with a
specular shader plugged to the buffer1.. mr will collect that infos and write them to a
separate image. but you could use also your buffers to make some sorts of alphas or objs
matting.. just plug the full material to a 'reserved' buffer and not to the render.buffer..
the rendered image will show black while your obj will be on a separate img.. or in the
same manner you could just collect a group of obj to get their own pass. the same thing
happens for example also for lights.. you only need a shader that can link from the
hypershade the lights it needs.. if you plain to output separate imgs for each light
contribution to be composed later you'll need just a buffer_store and n. identical shaders
each one with its own light attached... here a minimal light study.

the occlusion pass is the standard render output.. really no lights are directly worked out
in the main buffer. here each light has it own channel.. evry mat in the scene will have
the same construction of the above hypershade.. each mib_phong points to one of the
four lights.. plugged into the respective buffer.
  02 February 2005
look great.. i'll test it tomorow and post my feed back..
realy great work.
www.infofillers.tv - Behance
  02 February 2005
got it !!
I was not really happy with the limitation of 7 buffers (8 actually but the first is reserved)
.. well, I removed that. I acces directly the options block through mentalray api using
a geometry shader. fu*k you alias ! we have now unlimited buffers for real productions
(I have limited them to 16 for now). forget about that crap framebuffer options in the
renderglobals.. create a dummy object that will not be rendered and simply attach the
buffer_api to its mentalray->geometry.shader, set there your buffer number and also the
output type.. like interpolated.rgba(+rgba) and so on.. you can still ctrl your revamped
options block while mentalray starts (mentalray RC)..

the other things remain the same.
here the final output with the verbose from ctrl.buffers.


EDITED:: buffer_api removed. it brings instability to maya.

Last edited by francescaluce : 02 February 2005 at 05:43 PM.
  02 February 2005
must.....get....linux.....version....or....life... ..will....have...no....meaning....anymore....ughhh hh.
Colin Strause
  02 February 2005
must....first...finish...the...shader....I...wanna ...include..a..multilayer.openexr..support..

Last edited by francescaluce : 02 February 2005 at 01:31 AM.
  02 February 2005
Hehe, great work again!

~ Jared Martin

Maya, 3Delight, mentalray, Maxwell Render, ZBrush
Photoshop, Fusion, Vegas Pro, Syntheyes
Thread Closed share thread

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Society of Digital Artists

Powered by vBulletin
Copyright ©2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 12:46 PM.

Powered by vBulletin
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.