PDA

View Full Version : Renderman Shave & haicut pass


MegaCortex
05-31-2012, 12:32 AM
hello all

I try to render Shave and Haircut with maya and RMS
if i do not pass. It`s ok, I press render ans I see the hair

but if I made AOV i can`t see them in the pass (i have a set of light and a set of obj)

I read the doc from Joseph Alter,

but I `ve always this message // Error: Syntax error //
in the scrip editor


Generating Hair Into Pixar’s
Renderman (RAT)

Prman is a popular render used through out the animation industry which has published
standard for its input format (RIB) and shaders. There are also many ‘workalike’ renders
published which conform to the same standard, so it is a convenient format for many studios to
render from.

For your convenience we’ve included a Shave.sl and a Shave.slo – for prman, just drop the .slo
into your shader path, for other renders you’ll have to recompile from the .sl. These can be found
in joeAlter/shaveHaircut/maya8.5/plug-ins/prman. To insert this shader into the rib stream, we
now default Shave Globals->renderman->rib text to be :
surface “Shave”
If you don’t want to use our shader, you’ll want to change that. This is also a generic way to
insert a line of text above all the shavenodes. If you like to insert one that’s specific to a node,
there’s a similar box in the shaveNode attributes.

To facilitate rib generation from shave, we have a mel command called shaveWriteRib. The
syntax for this command is:


shaveWriteRib -h; Å to obtain the following usage
// Usage: shaveWriteRib [flags] ["ribFileName"]
//
// where [flags] are:
// -b/-binary - output file as binary rather than text.
// -cln/-cleanup - don't dump any RIBs but instead delete the files
// generated by a previous dump. You must specify
// all the same parameters as the dump you want to
// clean up.
// -f/-frame frame - number of frame to output. If not specified then
// the current frame is used.
// -fp/-fullPaths - use in conjunction with -voxels. If this flag
// is present then the main RIB file will refer to
// the per-voxel RIB files using full pathnames. If
// not present then just the filename will be used,
// with no path.
// -gz/-gzip - compress the output file using 'gzip' format.
// Only valid with '-b'.
// -h/-help - display this help message.
// -isg/-ignoreShaveGlobals - ignore any defaults set in Shave Globals and
// only use those flags and values which are
// explicitly specified on the command line.
// -mb/-motionBlur - write motion blur info to the file.
// -n/-normals - for instance geometry, output surface normals
// for each vertex of each instance.
// -opa/-opacities - write opacities ('Os' parameter).
// -rf/-restoreFrame yes|no - if this flag is set to 'no' then when motion
// blur is enabled the current time will be left at
// the shutter close time rather than being
// restored to the time at the start of the
// command. This is useful for scripts which are
// processing a series of frames and wish to avoid
// redundant frame changes. The default is 'yes'.
// -rtc/-rootTipColors - write root and tip colors.
// -sn/-surfaceNormals - for each hair generate an 'N_srf' parameter
// which is the normal of the growth surface at the
// root of the hair.
// -so/-shutterOpen time - when motion blur is enabled, use this as the
// exact shutter open time.
// -soo/-shutterOpenOffset offset
// - same as '-shutterOpen' except this is an offset
// which is added to the frame time. If both this
// and -shutterOpen are given the latter will be
// used.
// -sc/-shutterClose time - when motion blur is enabled, use this as the
// exact shutter close time.
// -sco/-shutterCloseOffset offset
// - same as '-shutterClose' except this is an offset
// which is added to the frame time. If both this
// and -shutterClose are given the latter will be
// used.
// -tu/-timeUnits frames|seconds
// - the units to be used when writing times to the
// RIB file, for example in MotionBegin statements.
// "frames" uses Maya frame numbers, which is the
// default, "seconds" converts frame numbers to
// seconds using the currently specified frame
// rate. Note that this does not change the units
// used by other command flags, such as
// -shutterClose: those continue to be in frames.
// -uv/-uvSet uvSetName - write texture coords for the given uv set.
// -vc/-vertexColors - write vertex colors ('Cs' parameter).
// -vox/-voxels - if present, the hair for each shaveHairShape
// will be divided into several voxels and each
// voxel will be written to a numbered file. The
// main output file will then load them as delayed
// read archives.
// -wc/-wCoords - write 'w' texture coords, which give the
// parametric length along each hair.
//
// ribFileName - file to send output to. Must be in quotes.
// If not specified then output will be written
// to the console.
//
// Note that most settings will default to those specified in Shave Globals
// unless the -isg/-ignoreShaveGlobals flag is used.
for example :
shaveWriteRib –vc –b –gz –f 10 “c:\\somedir\\test.10.rib”;


And I read this web site (http://sivakumarpadala.blog.com/) too look like similar to the Doc from Joseph Alter (http://sivakumarpadala.blog.com/)

but I `ve always this message // Error: Syntax error // in the scrip editor


I try that found her
(http://objectmix.com/graphics/146972-shavewriterib-problems.html)
//Shave Rib Exporter: exports all ribs to the root of C:
//type shaveEp ribname startframe endframe
//if you should modify this script (make it better plz!)
//send it to me
global proc shaveEp(string $name, int $start, int $end)

{


string $pathvar = ("C:\\");

int $i;

string $fullname;


float $ct = `currentTime -q`;

for ($i = $start; $i <= $end; $i++) {

currentTime $i;

shaveWriteRib -vc -rtc -wc -mb -b -gz ($pathvar + $name + "." + $i +
".rib");

}

};






anyone have an idea or a track please

thank you

CGTalk Moderation
05-31-2012, 12:32 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.