分享

在houdini中导入自己写的3Delight Shaders

 Tech-d 2013-04-23
1. 在终端中调用hython而不是python;

2. sdl2otl的选项:
-v                    Verbose
-l  hdafile       Create a Houdini Digital Asset (HDA) for a single shader
-L otlfile         Add shaders to a library of digital assets (OTL)
-N label         For a single .sdl file, specify the label in the menu
-C icon          For a single .sdl file, specify the name of the icon

3. 将sdl加入到该shader中:
/opt/hfs12.5.316.22/bin/hython /opt/hfs12.5.316.22/bin/sdl2otl.py -v -L rndmanShader_v001.otl dl_constant.sdl
如果有多个sdl想同时加入otl中,将具体名字换成*.sdl

4. 如果在houdini中渲染时出现:
 3DL ERROR S2050 cannot find shader 'shadername', will use 'default'
格式的错误,说明你的sdl所在的路径没有被3delight搜索到,需要修改环境变量$DL_SHADERS_PATH,在其中加入你的sdl文件所在的路径,或者直接修改3delight的环境变量设置文件.3delight_bash,将你的sdl文件路径加入进去。

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多