最終更新:
rt_3dcg_tips 2020年09月25日(金) 16:51:23履歴
法線は表向きなのに見た目が裏返っている
逆にMAYA上の見た目は正常なのに実機やゲームエンジンに出したら裏返っていたという問題です。
![](https://image02.seesaawiki.jp/r/g/realtime3dcg/AqQPQe5BgU.jpg)
こんな感じです。
逆にMAYA上の見た目は正常なのに実機やゲームエンジンに出したら裏返っていたという問題です。
![](https://image02.seesaawiki.jp/r/g/realtime3dcg/AqQPQe5BgU.jpg)
こんな感じです。
string $all_shape[] = `ls -type "geometryShape"`; for($shape in $all_shape){ if(`attributeExists "opposite" $shape` == 1){ if(`getAttr($shape + ".opposite")` == 1){ //setAttr($shape + ".doubleSided", 0); setAttr($shape + ".opposite", 0); print($shape + " : done\n"); } } }
import maya.cmds as cmds all_shape = cmds.ls(type="geometryShape") for shape in all_shape: all_attr = cmds.listAttr(shape) if "opposite" in all_attr: if (cmds.getAttr(shape + ".opposite")): #cmds.setAttr(shape + ".doubleSided", 0) cmds.setAttr(shape + ".opposite", 0) print (shape + " : done")
タグ
コメントをかく