Hi, I’m new and I have a question:
How to do something like this ( I mean light, shadows, GI, FG etc. ):
http://www.highend3d.com/gallery/character…shaded/357.html
or like this:
http://www.highend3d.com/gallery/216.html
It’s looks simple, but I cannot have this kind of light and GI.
What values put into parameters ?
Please help. ( with details )
joojaa
September 11, 2005, 1:34pm
2
what version of maya? the effect is called ambient occlusion!
Maya 6.0
Where I can find this ? I’m searching but cannot find
I try to put whole scene in big sphere but it is not what I want
And what about background, without “end”, I mean without horizon ?
joojaa
September 11, 2005, 2:28pm
4
okay on 6 this is a bit more involved than it is in 6.5 and 7 (7 even includes a nice boost on this so saying you get this about 2 times a s fast in 7 is sunderstating the fact, you get ita baout 10 as fast in favorable conditions, usualy about 3 times as fast so just rendering a few of theese frames justifies the upgrade)
Okay so you basicaly have 2 options:
you can download teh sub surface scattering apckage form alias, the mi simple occlusion shoudl be part of that package. TOugh some reprots seem to indicate it mayhave been omitted form it at some point or another.
Then after isntall connect the texture to a surface shader and set its spread value to 1.5708 (=pi/2)
2)Apply a white lambert to all textures (and set the diffuse value to 1 too) asign this to all surfaces in the scene.
make a sphere that encompasses the entire scene, assign ist a surface shader thats pure white.
turn enbabe default lights off in renderglobals, and turn fg on!
joojaa
September 11, 2005, 6:10pm
6
paste thi into the script editor and execute:
CODE
{//this will only work in maya 6
file -f -new;
if (!renderer -exists mentalRay){
if( catch (loadPlugin Mayatomr.mll))
error “error loading mr!!”;
}
string $nodesIntersector = stringArrayIntersector;
stringArrayIntersector -edit -intersect listNodeTypes "rendernode/mentalray" $nodesIntersector;
stringArrayIntersector -edit -intersect {“misss_simple_occlusion”} $nodesIntersector;
$array=stringArrayIntersector -query $nodesIntersector;
if (size($array)==1){
print “mi simple occluison shader present\n”;
print “proceeding to build the missversion”;
shadingNode -asShader surfaceShader;
sets -renderable true -noSurfaceShader true -empty -name surfaceShader1SG;
connectAttr -f surfaceShader1.outColor surfaceShader1SG.surfaceShader;
createNode misss_simple_occlusion;
connectAttr -f misss_simple_occlusion1.outValue surfaceShader1.outColor;
setAttr “misss_simple_occlusion1.spread” 1.5708;
setAttr “misss_simple_occlusion1.samples” 64;
nurbsPlane -p 0 0 0 -ax 0 1 0 -w 20 -lr 1 -d 3 -u 1 -v 1 -ch 1;
move -r -os -wd 0 -1 0;
sphere -p 0 0 0 -ax 0 1 0 -ssw 0 -esw 360 -r 1 -d 3 -ut 0 -tol 0.01 -s 8 -nsp 4 -ch 1;
fitPanel -selected;
select -tgl nurbsPlane1;
sets -e -forceElement surfaceShader1SG;
setCurrentRenderer “mentalRay”;
evalDeferred(“setAttr "miDefaultOptions.minSamples" 1”);
evalDeferred(“setAttr "miDefaultOptions.maxSamples" 2”);
evalDeferred(“setAttr "miDefaultOptions.filter" 3”);
evalDeferred(“setAttr "miDefaultOptions.contrastR" 0.05”);
evalDeferred(“setAttr "miDefaultOptions.contrastG" 0.05”);
evalDeferred(“setAttr "miDefaultOptions.contrastB" 0.05”);
evalDeferred(“RenderIntoNewWindow”);
}
else{
print “mi simple occluison not installed! please rechek you sss pakage\n”;
print “proceeding with the fg way”;
nurbsPlane -p 0 0 0 -ax 0 1 0 -w 20 -lr 1 -d 3 -u 1 -v 1 -ch 1;
move -r -os -wd 0 -1 0;
sphere -p 0 0 0 -ax 0 1 0 -ssw 0 -esw 360 -r 1 -d 3 -ut 0 -tol 0.01 -s 8 -nsp 4 -ch 1;
fitPanel -selected;
shadingNode -asShader surfaceShader;
sets -renderable true -noSurfaceShader true -empty -name surfaceShader1SG;
connectAttr -f surfaceShader1.outColor surfaceShader1SG.surfaceShader;
setAttr “surfaceShader1.outColor” -type double3 1 1 1;
sphere -p 0 0 0 -ax 0 1 0 -ssw 0 -esw 360 -r 1000 -d 3 -ut 0 -tol 0.01 -s 8 -nsp 4 -ch 1;
sets -e -forceElement surfaceShader1SG;
setAttr “lambert1.color” -type double3 1 1 1;
setAttr “lambert1.diffuse” 1;
setCurrentRenderer “mentalRay”;
setAttr “defaultRenderGlobals.enableDefaultLight” 0;
evalDeferred(“setAttr "miDefaultOptions.minSamples" 0”);
evalDeferred(“setAttr "miDefaultOptions.maxSamples" 2”);
evalDeferred(“setAttr "miDefaultOptions.filter" 3”);
evalDeferred(“setAttr "miDefaultOptions.contrastR" 0.05”);
evalDeferred(“setAttr "miDefaultOptions.contrastG" 0.05”);
evalDeferred(“setAttr "miDefaultOptions.contrastB" 0.05”);
evalDeferred(“setAttr "miDefaultOptions.finalGather" 1”);
evalDeferred(“setAttr "miDefaultOptions.finalGatherMinRadius" 0.05”);
evalDeferred(“setAttr "miDefaultOptions.finalGatherMaxRadius" 0.5”);
evalDeferred(“RenderIntoNewWindow”);
}
};
Also read the script output.
PS the settings are a tad too high on purpose so you get a smooth result that you want tweaks settings doen for faster rendertimes.
Error: line 11: Invalid type for expression.
joojaa
September 11, 2005, 6:59pm
8
okay yes i dont realy account for a empyt sarray yes your right it wont work.
yes so your missing the sss plugs. yes appaers that either you have the incomplete repackage OE you misinstalled it-
line 11 should read if (size($array)==1){ instead of if b {[/b]
sorry about thet i dint theink what whould happen if the miss is actualy in reality missing and teh array has no size.
ill fix the scrpt in above post for covinence.
joojaa
September 11, 2005, 7:15pm
9
try the script now.
And yes you shoudl track the ss package with ambient occluysion present. andor se if its installed correctly. Tough theres one thing the miss simple occlusion might be renabed to miss amb occlusion isntead, in the final release.
Also be sure to manualy new the scene before running teh script as there ssome residue in the script reset
heres a more universal version that should work even on maya 6.5 and 7
CODE
{//file generator and renderer, wait and se
file -f -new;
if (!renderer -exists mentalRay){
if( catch (loadPlugin Mayatomr.mll))
error “error loading mr!!”;
error “restart the process again!”;
}
string $nodesIntersector = stringArrayIntersector;
stringArrayIntersector -edit -intersect listNodeTypes "rendernode/mentalray" $nodesIntersector;
stringArrayIntersector -edit -intersect {“misss_simple_occlusion”,“mib_amb_occlusion”} $nodesIntersector;
$array=stringArrayIntersector -query $nodesIntersector;
print (size($array));
if (size($array)==1){
print “mi simple occluison shader present\n”;
print “proceeding to build the missversion”;
shadingNode -asShader surfaceShader;
sets -renderable true -noSurfaceShader true -empty -name surfaceShader1SG;
connectAttr -f surfaceShader1.outColor surfaceShader1SG.surfaceShader;
createNode $array[0];
connectAttr -f ($array[0]+“1.outValue”) surfaceShader1.outColor;
setAttr ($array[0]+“1.spread”) 1.5708;
setAttr ($array[0]+“1.samples”) 64;
nurbsPlane -p 0 0 0 -ax 0 1 0 -w 20 -lr 1 -d 3 -u 1 -v 1 -ch 1;
move -r -os -wd 0 -1 0;
sphere -p 0 0 0 -ax 0 1 0 -ssw 0 -esw 360 -r 1 -d 3 -ut 0 -tol 0.01 -s 8 -nsp 4 -ch 1;
fitPanel -selected;
select -tgl nurbsPlane1;
sets -e -forceElement surfaceShader1SG;
setCurrentRenderer “mentalRay”;
pause -sec 2;
evalDeferred(“setAttr "miDefaultOptions.minSamples" 1”);
evalDeferred(“setAttr "miDefaultOptions.maxSamples" 2”);
evalDeferred(“setAttr "miDefaultOptions.filter" 3”);
evalDeferred(“setAttr "miDefaultOptions.contrastR" 0.05”);
evalDeferred(“setAttr "miDefaultOptions.contrastG" 0.05”);
evalDeferred(“setAttr "miDefaultOptions.contrastB" 0.05”);
pause -sec 2;
evalDeferred(“RenderIntoNewWindow”);
}
else{
print “mi simple occluison not installed! please rechek you sss pakage\n”;
print “proceeding with the fg way”;
nurbsPlane -p 0 0 0 -ax 0 1 0 -w 20 -lr 1 -d 3 -u 1 -v 1 -ch 1;
move -r -os -wd 0 -1 0;
sphere -p 0 0 0 -ax 0 1 0 -ssw 0 -esw 360 -r 1 -d 3 -ut 0 -tol 0.01 -s 8 -nsp 4 -ch 1;
fitPanel -selected;
shadingNode -asShader surfaceShader;
sets -renderable true -noSurfaceShader true -empty -name surfaceShader1SG;
connectAttr -f surfaceShader1.outColor surfaceShader1SG.surfaceShader;
setAttr “surfaceShader1.outColor” -type double3 1 1 1;
sphere -p 0 0 0 -ax 0 1 0 -ssw 0 -esw 360 -r 1000 -d 3 -ut 0 -tol 0.01 -s 8 -nsp 4 -ch 1;
sets -e -forceElement surfaceShader1SG;
setAttr “lambert1.color” -type double3 1 1 1;
setAttr “lambert1.diffuse” 1;
setCurrentRenderer “mentalRay”;
pause -sec 2;
setAttr “defaultRenderGlobals.enableDefaultLight” 0;
evalDeferred(“setAttr "miDefaultOptions.minSamples" 0”);
evalDeferred(“setAttr "miDefaultOptions.maxSamples" 2”);
evalDeferred(“setAttr "miDefaultOptions.filter" 3”);
evalDeferred(“setAttr "miDefaultOptions.contrastR" 0.05”);
evalDeferred(“setAttr "miDefaultOptions.contrastG" 0.05”);
evalDeferred(“setAttr "miDefaultOptions.contrastB" 0.05”);
evalDeferred(“setAttr "miDefaultOptions.finalGather" 1”);
evalDeferred(“setAttr "miDefaultOptions.finalGatherMinRadius" 0.05”);
evalDeferred(“setAttr "miDefaultOptions.finalGatherMaxRadius" 0.5”);
pause -sec 2;
evalDeferred(“RenderIntoNewWindow”);
}
};
“mi simple occluison not installed! please rechek you sss pakage”
I’ve checked that package and I don’t know what to do. I install this package correctly ( step by step with instruction ) but it don’t work
Where is the problem ?
Which file is missing ?