Introduction to Maya - Modeling Fundamentals Vol 1
This course will look at the fundamentals of modeling in Maya with an emphasis on creating good topology. We'll look at what makes a good model in Maya and why objects are modeled in the way they are.
# 1 16-09-2003 , 10:17 AM
Registered User
Join Date: Jul 2003
Posts: 28

how to convert a selected subregions to a .mi file

i have a script within maya,which allows to render sub regions within,mayarenderer;
which works fine, as long as ther's no gi ,nor fg or caustics (generated by mr2maya)


from within, maya script editor:


global proc get_RenderRegions( int $x_res, int $y_res,
int $x_reg, int $y_reg,
string $image, string $file )
{
int $x_step = floor( (float)$x_res/(float)$x_reg );
int $y_step = floor( (float)$y_res/(float)$y_reg );

if( $x_res % 2 != 0 ) {
error( "X resolution must be even" );
}
if( $y_res % 2 != 0 ) {
error( "Y resolution must be even" );
}

int $x, $y;
int $image_index = 0;
for( $x=0; $x<$x_res; $x+=$x_step )
{
for( $y=0; $y<$y_res; $y+=$y_step )
{
string $command = "Render";
$command += " -x "+$x_res+" -y "+$y_res;
$command += " -xl "+$x+" -xr "+($x+$x_step-1);
$command += " -yl "+$y+" -yh "+($y+$y_step-1);
$command += " -im "+$image+"_"+$image_index;
$command += " "+$file;

print( $command+"\n" );

$image_index++;
}
}
} get_RenderRegions( 10000, 10000, 2, 2, "pane", "C:\\temp\\essaicube.mb" );

then, i get 4 panes, that i can render from a dos prompt:

Render -x 10000 -y 10000 -xl 0 -xr 4999 -yl 0 -yh 4999 -im pane_0 C:\temp\essaicube.mb
Render -x 10000 -y 10000 -xl 0 -xr 4999 -yl 5000 -yh 9999 -im pane_1 C:\temp\essaicube.mb
Render -x 10000 -y 10000 -xl 5000 -xr 9999 -yl 0 -yh 4999 -im pane_2 C:\temp\essaicube.mb
Render -x 10000 -y 10000 -xl 5000 -xr 9999 -yl 5000 -yh 9999 -im pane_3 C:\temp\essaicube.mb

so, as i said it works without fg....gi..
so, how could i save these four panes,individually ,as a.mi file,to allows mrstandalone
to render???
i,ve tried within mrstandalone render subregions;
but, i,m very ennoyed with these darks areas,especially with extremly large frame buffer§§
i want to have nregions ,extremly large res,that i,ll fix after within phsp!
hope you understand!

Posting Rules Forum Rules
You may not post new threads | You may not post replies | You may not post attachments | You may not edit your posts | BB code is On | Smilies are On | [IMG] code is On | HTML code is Off

Similar Threads