Hi Fredrik,
I think you can use a Pfx brush to achieve this.
Hope this helps,Lars
---Enjoy our new website:�www.sequenz.com!
Am 02.03.2011 um 11:03 schrieb Fredrik Averpil:
Hey all,
I've got a tricky one; I need to render out an objects contour as a dashed line. It's an unusual job for a patent registration which needs to follow certain rules.
Any ideas on how to do this?We have tried the vector renderer as well as mental ray's contour shader.
I'm starting to think of writing a custom shader... but this takes far too much time as we haven't done this before � and of course this has to be done by Friday.
// Fredrik
One can assign the brush “toonDash.mel” to a Maya Toon line for a dotted line effect, which will render as pfx in the maya sw renderer( create toon line, select brush in visor then toon:assignBrush). To render it in Mental Ray you can convert the toon to poly. However the checker transparency texture assigned to the shader created when converting to poly doesn’t work (I think it is a uv sample size issue… the checker texture attempts to filter to the sample size). Instead one can replace the checker texture with a simple black/white bar ramp texture. The density of the uvs can be reduce by lowering the tex uniformity on the brush. For dots instead of dashes simply use a circular ramp instead of a bar.
Note that the settings on the dotted line brush result in toon to poly making a view facing flat ribbon instead of a tube. This is better for texturing a dotted line.
Duncan
From: maya...@googlegroups.com [mailto:maya...@googlegroups.com]
On Behalf Of Stefan Albertz
Sent: Wednesday, March 02, 2011 6:07 AM
To: maya...@googlegroups.com
Subject: Re: [maya_he3d] Render countour as dashed line
yes, and its currently the only way (until cebas releases finaltoon for maya .. ). I´ve tried the very same on sunday with mayavector, mayatoon and mr contours. Only with toon you can achieve that using an attached paintfx shader. And yes, in theory mental ray contours should be able to do this also, but as soon as you use the custom contour shaders, you´ll experience the wonders of bad implementation: when you try to texture the line width (something i tried for making the dashed lines) you get the mid-color of the texture assigned as width. Even more interesting: if you use a 3d texture, its evaluated per render-bucket .. so if you use a bucket size of 1 you get the texture corretly assigned .. and wait years for your rendering ..
;)
Am 02.03.2011 11:13, schrieb SEQUENZ | Lars Gerstenmaier:
Hi Fredrik,
I think you can use a Pfx brush to achieve this.
Hope this helps,
Lars
---
Enjoy our new website: www.sequenz.com!
Am 02.03.2011 um 11:03 schrieb Fredrik Averpil:
Hey all,
I've got a tricky one; I need to render out an objects contour as a dashed line. It's an unusual job for a patent registration which needs to follow certain rules.
Any ideas on how to do this?
We have tried the vector renderer as well as mental ray's contour shader.
I'm starting to think of writing a custom shader... but this takes far too much time as we haven't done this before – and of course this has to be done by Friday.
// Fredrik
I found a workaround for that checker texture problem… just make the RepeatV on the toonDash brush slightly non-zero and converting the toon to poly should have no problems.
Duncan