原本我要將已經算出來的occlusion或shading color bake成2D的texture都需要自己兜一堆SLBOX跟RIBBOX,
可是剛剛發現了Bakeable這個好用的shader。
----
It's a trouble for baking calculated occlusion color or some shading color as 2D texture.
I must write some SLBOX and RIBBOX for indicating what I want to baking.
Now, I fund Bakeable for dealing this routine.
在slim中的Color/Utility可以找到Bakeable這個shader,
可以在Color連入想要bake的內容,
然後將Bake Style換成texturemap,
BakeManifold的space設成ST,
render之後就可以在rmantext下找到算出來的ptc檔,
他的命名規則為${BakeAltas}_${FileContext}.ptc,
要bake的東西會存在該ptc檔的_color channel中。
可以用ptrender -size w h foo.ptc _color foo.tif 產生圖片,
簡單吧!!
----
You can find Bakable shader in Slim Color/Utility menu.
Connect the color you want to bake to the "Color" property.
Set "Bake Style" as "texturemap".
Set "BakeManifold / space" as "ST".
After render, baked ptc file will store in remantex fold.
Baking color stores in "_color" channel.
If you want to see picture, render it by ptrender.
example: ptrender -size w h foo.ptc _color foo.tif
See!!! What a easy way.
No comments:
Post a Comment