Hi i've found sl shader on Pixar's site, and i'm trying to convert it to otl:
surface
bake_areas( uniform string filename = “”, displaychannels = “” )
{
normal Nn = normalize(N);
float a, opacity;
a = area(P, “dicing”); // micropolygon area
opacity = 0.333333 * (Os + Os + Os); // average opacity
a *= opacity; // reduce area if non-opaque
if (a > 0)
bake3d(filename, displaychannels, P, Nn, “interpolate”, 1, “_area”, a);
Ci = Cs * Os;
Oi = Os;
}
but when i try to convert it to otl using slo2otl.py i have error:
Fatal Python error: Py_Initialize: can't initialize sys standard streams
File “CPROGRA~1/SIDEEF~1/HOUDIN~1.292/python\lib\encodings\__init__.py”, lin
e 120
raise CodecRegistryError,\
^
SyntaxError: invalid syntax
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
any ideas how can i import slo shaders in other way ?
slo to otl problem
3973 4 2- bareya
- Member
- 31 posts
- Joined: Nov. 2006
- Offline
- junaidcg
- Member
- 11 posts
- Joined: Oct. 2007
- Offline
- nobodyinparticular
- Member
- 73 posts
- Joined: Feb. 2006
- Offline
- junaidcg
- Member
- 11 posts
- Joined: Oct. 2007
- Offline
- nobodyinparticular
- Member
- 73 posts
- Joined: Feb. 2006
- Offline
-
- Quick Links