由 johngalliano » 8日 10月 2003年, 18:12
I can just see GIJoe for maya4.5, dunno if it's ok for 5.0.
If u want to use GIJoe because u want to have environment lighting, then u can try to use colorAtPoint command(undocumented b4 5.0) to instruct ur lights to lookup a color from a texture. Convert the lights positions (on a virtual unit sphere centred at the origin, for example)to a uv value and use the value in the colorAtPoint command. For example:
$lightpos = unit($lightpos);
$u = (-atan($lightpos.x, $lightpos.z) + PI) / (2*PI);
$v = 1-acos($lightpos.y)/PI;
$lookedupcolor = `colorAtPoint -u $u -v $v -o RGB texNodeName`;
As I remember, the author of GIJoe (Emmanuel Campin )used quite a lot of (in fact, the same as the no. of lights) closestPointOnSurface nodes that make GIJoe very slow. But I'm not sure about this in the newest version.