5/16/2011

Nuke チュートリアル Grade 1

今回から二回にわたってNukeで最も基本的なカラコレツールであるGradeを紹介します。
今回はそれぞれのプロパティがどのような計算をしているか簡単に解説していきます。

Nukeの勉強法

今回はNukeの勉強法についてですが、自分は最初にCGSocietyのCGWorkshopで学びました。SteveWrightという方が講師のNukeのコースです。

5/11/2011

Nuke チュートリアル バージョン6.0以降でBezierノードを使う

以前のNukeのマスクツールといえばBezierでしたが、バージョン6.0以降RotoPaintにおきかえられました。

Stereoscopicのマスク作業などでBezierの方が使いやすい場合があります。
新しいバージョンのNukeでもBezierはTCLコマンドで呼び出すことができます。

NodeGraph上でXキーでコマンド呼び出しのウィンドウが表示されます。
TCLにチェックして、Bezierと入力。このとき大文字、小文字も区別するので注意してください。

毎回コマンドを呼び出すのは面倒なので、UIに登録してみたいと思います。
menu.pyを開いて以下を入力。

#Adding Bezier command to UI
toolbar.addCommand("Draw/Bezier", "nuke.createNode(\"Bezier\")", icon="Bezier.png")

これでDrawメニューの下にBezierコマンドが追加されます。

5/05/2011

Nuke デフォルトの値を変更する。

 Rotopaintでベジェマスクを描く場合、デフォルトではRGBAの100%whiteのマスクが作成されます。
これをアルファだけにしたい場合、outputをアルファに変更します。

outputのデフォルトをアルファにしたい場合、menu.pyに記してあげればデフォルトの値が変更されます。

nuke.knobDefault('RotoPaint.output', 'alpha') 

Nukeでは様々なデフォルトの値を変更できます。
例えば、プロジェクトのデフォルトの解像度を設定することもできます。

#adding projectA 1920*818 format and make it default
projectA = '1920 818 projectA'
nuke.addFormat(projectA)
nuke.knobDefault('Root.format', projectA)

複数での作業においてはこのようにプロジェクトごとにいろいろなルールを決めておけば
エラーが少なくなります。

4/08/2011

NukeでカスタムLUTViewerを作成してNukeに読み込む方法。

NukeでカスタムLUTViewerを作成してNukeに読み込む方法。
 ColorLookupでカスタムカーブを作成する。
グループ化してGizmoに吐き出す。
init.pyに先ほど作成したGizmoを登録する。

#
# add a custom Viewer Process to init.py
#

nuke.ViewerProcess.register("myLUT", nuke.Node, ("MyLUT", ""))

Nukeを再起動する。

3/28/2011

OpenEXR







Compression methods


There are 3 general types of lossless compression built into OpenEXR, with two different methods of Zip compressing. For most images without a lot of grain, the two Zip compression methods seem to work best, while the PIZ compression algorithm is better suited to grainy images. The following options are available:

None

Disables all compression. Run Length Encoding (RLE)

This is a basic form of compression that is comparable to that used by standard Targa files. Zip (per scanline)

Zip style compression applied to individual scanlines. Zip (16 scanline blocks)

Zip style compression applied to blocks of 16 scanlines at time. This tends to be the most effective style of compression to use with rendered images that do not have film grain applied. PIZ (wavelet compression)

This uses a new combined wavelet / Huffman compression. This form of compression is quite effective when dealing with grainy images, and will often surpass any of the other options under grainy conditions. PXR24 (24 bit data conversion then zipped compression)

This form of compression from Pixar converts data to 24 bit then uses Zip compression. It is lossless for half and 32bit integer data and slightly lossy for 32bit float data. B44

This form of compression is lossy for half data and stores 32bit data uncompressed. B44A

An extension to B44 where areas of flat color are further compressed. Regular B44 compresses uniformly regardless of image content.

http://en.wikipedia.org/wiki/OpenEXR


PIZ. PIX, ZIP, ZIPS and RLEについてはロスレス圧縮


オリジナルの素材はフィルムの2Kスキャンのためフィルムグレインは多い。

Original DPX(Cineon) 1.19GB


Datatypeはすべて16bithalf

1. Zip1 1.56GB

2. Zip16 1.46GB

3. PIZ 988.9MB

4. RLE 1.77GB

5. B44 798MB

6. None 1.78GB






これを見る限り粒状性の多い素材に関してファイル容量について言えばPIZが優れている。

合成する場合の伸長などの速度など実際の運用面については検証する必要がある。

B44については非可逆圧縮のためデイリーなどのプレビュー向きである。

3/24/2011

Firefox4でbookmark toolbarのアイコンを消す

firefox4.0の評判がよさげなのでバージョンアップしてみました。
確かにスピードは早くなってるような感じです。
ブックマークツールバーにいろいろ並べているのですが、4.0にしたところテキストとともにfaviconも表示されてしまい以前に比べて3分の2ぐらいしか表示してくれません。

faviconを消す方法。ちなみにMacです。