cglandlogo First Page
   
gallery media job community contentsmall  
  dbrush Blizzardfest 2014
 
[Ʃ丮]HDRI Կ Maya Ȱ!   2005-03-03
HDRI , ׸ Maya  踦  ӻ ִ ׽Ʈ غҴٴ
cgland@cgland.com
к귯 & cgland.com,
Խñ twitter Խñ facebook Խñ Me2Day



HDRI Կ Maya Ȱ!


. ̼
Nthma Production Team
Render Part TD
Nthma Production Team (http://www.nthma.com)


Ʈ : Ʃ丮 Alias Maya 6.0 HDRShop 1.03 Ͽ ׽Ʈ Ǿ.

ϸ鼭

: Maya 6.0 ǥǸ鼭 κп κ Ʈ ϵ δ. ߿ ̹ ڰ ϰ κ RenderGlobal κп Image Based Lighting ( MentalRay RenderGlobal̴) ̶ žǾ. ƽ 6.0 ̸ HDR ϱ ߰ ߿ HDR 6.0 Ѵ. ׷ ̷ ɵ žǸ HDR̶ , ׸ Image Based Lighting ̶° ñ . 켱 Image Based Lighting̶ ״ Image Ʈ Ѵٴ ǹ̰ ɰ . ׷ٸ ̷ Image Based Lighting HDRI  踦  ӻ ִ ˾ƺ . ̹ Ұ Workflow 캸 .

1) ũҺ ̹ Կ

2) HDRShop ̿ LightProbe Mirror HDR Image

3) LightGen Plugin HDRShop Image Based Lighting Ʈ ҽ

4) LightControl.mel ̿ Maya Ʈ

5) ռ

5 Workflow ۾ . ÷ ⺻ Ǹ Global Illumination ǥ ֱ ̸, ̰Ϳ ȮϿ MentalRay ̿ Image Based Lighting ؼ Ұ .

Ʈ : ۾ Vincent Lin Cheap HDRI Ʃ丮 Paul Debevec Ȩ, ׸ HDRShop Ŵ м ˷д.

Section1 : HDRI ΰ?

i) HDRI (HIgh Dynamic Ranged Image)

: HDRI ?

ڰ ۳⿡ MentalRay ϸ鼭 Ұߴ ٽ . 츮 Ȱϰ ϴ  Ϳ ǹ̵ 𸣰 Ѵٸ ܼ 迡 Ұ ʹ. ׷ ߺ ̷ ۿ ° Ѿ .

High Dynamic Range Image ڷ ״ ̹ ǥ ٴ ̴. 츮 äδ 256 ܰ ǥؼ 160 ̹ ϼϰ ִ. 㳪 ֱٿ ǥ Ȯ ؼ ̻ 䱸ϴ ۾ ð ִ. ƴ϶ Ҽ ϰ ǥν û Ǵ ̴.

HDRI ̷ Ȱ ϳ ȴ. HDRI ̹ , ̳ Ǻ ߻ϴ ̹ ջ õ ä Ѵ. HDRI ̴. ǻ ƼƮ α׷ ڵ 3D μ HDRI ô״. κ HDRI Non-Clamped ˿ Ǿ ٸ ǥ̶ Ѵ. ( Real Pixel Format ̶ Ѵ.) Non-Clamped 뷫 5 ƽ 1,0 ־.

̹ ߿ ߻ ׵ Բ ȴٴ ̴. Ϲ Ʈʵ Ұ 0~255 ̿ RGBA Ǿ . äο ؼ ̴. RGBAμ ̹ 󿡼 ׸ Ʈ ¹ 󿡼 ſ Ǹϰ δ. 㳪 Ż̿ ø̼ǿ ̿ ̹ Ϸ , Ǹ RGBA δ ͵ սǵ ִ. RGBA ̹ ߰ ߿ ߿ ϳ ʼ ִ ̴. ̿ ϴ ̹ 3D 󿡼 ڿμ ʿ Ѵ. μ ̹ ؽĵ ġؼ ϴ Image Based Lighting ̶ Ѵ. RGBA ̹ ſ ̰ ڿμ ſ ǰ ϰ ȴ.

RGBA ̹  Ͼ ȼ Ͼ , Ͼ , Ͼ ¾籤, 500Ʈ Ͼ , Ͼ ߷ε ǥ ִ. HDR-Image ϴ RGBA Ҹ ϴ , ߰ ȼ鿡 Բ ȴٴ ̴. ̰ ϳ ̹ Ͼ ȼ ٸ Ͼ ʼ ϰ ִٴ ̴. RGBA-E ̹ ν, ý ȼ ˰Եȴ. ȼ 󸶳 ϰ ȴ. 300 ̹ ȼ 255 Ͼ Ǵ ̴.

̷ E RGBA JPEG ̹ Image Based Lighting Ȱ E HDR Image Ȱ Image Based Lighting ظ ̸  Ǵ ̴.

۾  .

ũҺ ̹ Կϱ

: ̹ ٽѹ . DIY HDRI ̴ DIY Ѷ ߴ "ڱ " ǻ ǰ 缭 ؼ ٴ ˷  . ״ ̹ 츮 츮 ϴ ҿ ð 츮 ϴ ̹ 츮 ΰ  HDRImage Ȱ ̴. ͳ ؼ ξ ǰ HDR ҽ ϴ ƴϴ. 츮 Ը ´ Ȯ (Ư ݻ ) ټ 츮 ϴ ̹ ƴ ۿ . ׷Ƿ 츮 ϴ յǴ ̹ ΰ ϴ ̴. ̷ ϰ ߿ ϳ Ƹ ִ ī޶ . ī޶ ϰ ν ̷ ۹ĵ ̴. к ڸ ǰ Ϻ HDR ҽ . 츮 ϴ յ ůǰ ̾Ƴ ֵ ּ غ.

i) Կ غ

: ׷ Կ ʿ غ ˾ƺ. 켱 ī޶ ־ ϰ, ԿǸ ݻų ִ ݻ籸, ׸ ݻ籸 ÷ ִ ĵ尡 ־ Ѵ. ̷ غ ȴٸ غ ģ ̴. ڰ غ ù ˾ .


: Կ Olympus Camedia E-20 Կߴ.



: ũҺ ٷ ߴ. 8 ¥ ߴ. ĵ ħ 100¥ CD ̽ ϰ Ÿ Ͽ ԿϿ. κп Vincent Lin Ʃ丮 ߴ. ũҺ ڰ Ǽ ־. ũҺ ü . ó ġ κ ִ HDR ̹ ÿ ݻǾ κп Ǵ Ǿ. ִٸ ü ũҺ ϴ ̴.

ii) Կϱ

: Կÿ ̸ ؾ ׵ ִ. 켱 ϴ Ȯ ϴ . ƹ Կ , ð, Ȯ Ƽ ȲϿ Կ غ. Ǿٸ Կ µ Կÿ  ׸ ϸ ȴ.

1) ڽ ī޶  mm Ȯ . 35mm 50mm Կϰ Ǵµ ߿ ռϰ ߿ϹǷ ڽ Կ  Ȯ д.

2) Կ Կ ϰ ȴ. Ʒ ̹ Vincent Lin ̴̹. ð ǥǾ ִ.



: ׸ ٿ ī޶ A B ִ ݻ ݻü ȯ ݻ ִ ̴. ⼭ ī޶ A B ġ ԿϿ Ѵٴ ̰ κ Ÿ ƾѴ. Top View Ͱ ġ Կϸȴ. ġ Կ ؾѴ. ̰ HDR Image ٽ̶ ִ. Side View ٿ ġ ߽ ġ ̿ ġؾ Ѵٴ ̴. Ʒ ׸ .


: ī޶ δ ԵǸ ߾ ִ κ ؼ ִ. ؼ ī޶ ̿ ݻ籸 ߽ɳ̸ ġ Ų Կϸ ȴ. ̰ ī޶ A B ϰ Ǹ Ȱϴ ġ ٸ ̴. Կÿ ݵ Ⱚ 鼭 ԿѴ. AB ߿ AB Կ ̹ ġ ǹǷ Ⱚ ; Ѵ. ׷Ƿ ǿ ״ , dz Ⱚ 鼭 Կ غƾ Ѵ. ⿡ HDRShop ִ ִ ȿ̴.

: Ʒ ̹ ڰ Կ ī޶ AB ̹ JPEG ̴̹.


׸ ŬϽø ũ Ǽ ֽϴ.

: Ʒ ̹ ռ Ǵ ̴̹. ݻ ũҺ Կϰ ռ ǻ Կ ʴ . ٽ ʴ´.


: Կ κ Կ ̹߿ Ѵ. ڴ ̹ Ʒ ߴ.


: ̴̹. ̹ 2568 X 1916 ػ󵵷 TIF ̹ ԿǾ. HDR ̹ ϴ ī޶ ҳ TIF High Dynamic Range  Ƿ ̷ Ͽ. ⼭ ڰ ī޶ ɰ ػ , ϴ ˿ پϰ ִ. JPEG ϴٴ ̴. JPEG Image Based Lighting ϰ ִ. ǰ ִٴ ̴. 256 ܰ ȼ Ѱ RGB JPEG ׸ŭ Ѱ谡 ִ ̴.

: ǻ տ ɾ ۾ غ .



Section2 : HDRShop ̿ LightProbe Mirror HDR Image

i) HDRShop

: HDRShop ̶?

HDRShop High-Dynamic Range images óϰ ֵ ε α׷̸, ׷ ̹ ִ interactive α׷̴.

: غ ̹ HDR Image . ׸ ΰ̴. ù ° Կ ̹ ܰκ Unwrap ϰ Ǹ ܰ κ ص ȴ. ̰ 츮 ϴ ̹ ġ ް ߸ Ǵ ̴. ° ī޶ Կϴ ٴ ̴. ǵ ī޶ Ѵٸ 츮 ϴ ũҺ ݻ̰, ī޶ Կڴ ݻ翡 ʰ ϴ DZ տ ΰ ݵ ذؾ߸ ϴ ̴. 켱 HDRShop . HDRShop 뵵 ƴ϶ ̰ ٿε ִ.

: Ʒ ׸ HDRShop Interface̴.


: ׷ ̹ ̿Ͽ ذϸ鼭 ϳ Mirror Ball HDR Image

1) ̹ Open .


2) Camera A ̹ Select->Draw Option->Dotted Line Circle üũϰ ̹ ܰ .


3) Image->Crop ɼ ̿ õ κ ©.


: Camera B ̹ Crop ѵ ̹ Image A, B ٸ ̸ ؼ ׸ ٽ ҷ.

4) ̹ ġ ۾ ؾѴ. ⼭ ⺻ ƾ ִ. ̹ ġ ؼ ̹ Ǵ ּ ƾ Ѵٴ ̴. ڴ ǵ ī޶ ī޶ ξ ֺ ๰ κ Ҵ. Ʒ ̹ Ȯ .


׸ ŬϽø ũ Ǽ ֽϴ.

5) Point ߴٸ ġ ġ Ȯ ˾ƾ Ѵ. Window->Point Editor ̿ Point ˾ƺ.


׸ ŬϽø ũ Ǽ ֽϴ.

: Point 0 Point1 ߴ. Ctrl Ű ϸ Ʈ ִ. HDRShop Ʈ ޾ ϹǷ XY .

: Image B ؼ Ʈ . Point Editor Display Show Points üũ Ʈ Ȱȭ ȴ.

6) Ʈ ̿ ̹ ľ Ѵ. ⼭ ̹ Unwrap Rotate ʿϴ. ǰ ʿϴ Ȯϰ ؾѴ. 켱 ̹ ϳ ȸ Ѿ Ѵ. 츮 Image A ȸ Image B ؼ ȸ ̴. ׷ 츮 ϴ LightProbe Format ȯ ̴. Image B Image->Panorama->Panoramic Transpormation Ѵ. ׸ Ѵ.


׸ ŬϽø ũ Ǽ ֽϴ.


: ImageB.hdr Warped ̹ Ǿ. Supersampling ⺻ 1̴ Ƽ Ѵٸ ġ ø ȴ.

7) Image A ȸŰ鼭 LightProbe Format .


׸ ŬϽø ũ Ǽ ֽϴ.


: Image A 3D Rotation Ű Match Point Setting  ռ ξ ϸ ̹ ȴ.

8) ̹ ľ Ѵ. ׷ ؼ Image A 0 Image B 1 ν ߰ ũ ̿ؾ Ѵ. ׷Ƿ ̹ 伥 HDRShop ϴ BMP TIFF Ѵ.


9) ũ ̿ ̹ ġ LightProbe Format ̹ .


׸ ŬϽø ũ Ǽ ֽϴ.

: Souce Image ̹ ϰ Operation A*C+B(1-C) OK .

: Ʒ ׸ LightProbe Format HDR Image ̴.


: 츮 ϴ HDR ̹ Դ. ó ߴ ܰ ī޶ Կ Ǿ. Ѱ ó ߵ ũҺ . ũҺ ϴ ħΰ ݻǾ ̹ HDR Image ȴ. ٽѹ Ϻ ü ũҺ ̹ µ ξ ̴.

: ̹ Maya  Ȱ ִ° ˾ƺ.



Section3 : HDRShop + LightGen Plugin ̿ Light Source

i) LightGen Plugin

: LightGen ̶?

LightGen Paul Debevec Ͽ Jonathan Cohen ÷ ̴. ̰ LightProbe ̹ ̿Ͽ Directional Light ҽ µ, ÷ κ Global Illumination ʴ ִٴ ̴. 켱 LightGen HDRShop ÷̴.  ϴ ˾ƺ.

1) LightGen ϱ غ

: LightGen ̰ ٿε ִ. ġ HDRShop ٿ ε HDRShop.exe ܵ ϳ ް Ǵµ ⼭ HDRShop̶ ȿ HDRShop.exe ־. ׷ ȿ plugins ȿ LightGen ÷ ־ְ HDRShop ϸ ȴ.

: Ʒ ׸ LightGen Plugin HDRShopȿ Ե ׸̴.


׸ ŬϽø ũ Ǽ ֽϴ.

: lightgen_plugin ʴ´ٸ Rescan Directory ٽ εϸ ȴ.

2) 켱 LightProbe ̹ latitude-longitude format ٲپ ־ Ѵ.


: 츮 HDR Image Latitude/Longitude Format ȯϸ鼭 ػ󵵴 128X64 . ̻ ػ󵵴 ǹ̰ , ð ɸ ̴. Supersampling 1 ص .

3) ׷ LightGen ؼ 츮 ϴ Light Sources .


: ó 翡 Ʈ ̸ ġ ־ Ѵ. ⼭ ݵ ̸ .mel . ڰ ŸԿ MEL ؼ ̸ ְ ó ϴ ʾҴ. ݵ .mel  Ȯ . 迡 File Type MEL . Ӵٿ ޴ 캸 Text, Arnold, Houdini Ѵ ִ. 츮 ߷ ۾ ̹Ƿ MEL غ. ɼ Ʈ Ʈ ʿ ݰ ϴ ε, ϴ ⺻ .

: Scale total light output üũ ʰ Ǹ Ʈ Ⱑ ʹ ִ. ׷ 쵵 ֱ ͵ .

4) ̴.


׸ ŬϽø ũ Ǽ ֽϴ.

: ھȿ ִ ̴. ٿ 츮 ɼǿ 20 Ʈ ҽ . Success â ùٸ Ǿٴ Ͱ װͿ ִ â̴. ߿ ռ .



Section4 : LightControl.mel Script ̿ Maya ۾

i) LightControl.mel Script

: LightControl LightGen Ʈ ҽ Ȱϰ ϴ ũƮ̴.

1) LightControl.mel ϱ غ

: LightControl.mel ̰ ٿε ִ. : ġ "HdrShopLightControl.mel" "C:Documents and SettingsAdministratorMy Documentsmaya6.0scripts" ȴ. 4.5 Ǿ Maya 6.0 Ȱ ִ.

: Ʒ ׸ Maya Կ ̹ 3D ռų Ʈ ̴̹.


׸ ŬϽø ũ Ǽ ֽϴ.

: ī޶ Focal Length Կ 35mm Ѵ. ⼭ ׸ κ ޴ ٴ UseBackground Shader Ѵ. Ȯϰ ռ ؼ Ʈ Perspective Ͽ Ȯ ϳ, κб ϸ ʹ Ͽ κ ϱ Ѵ.

2) Ʈ â̳, Script Editor â HdrShopLightControl .


׸ ŬϽø ũ Ǽ ֽϴ.

: ׸ ٿ HDRLightControl ɼâ 鼭 츮 ߴ Directional Light Source ܳ. Dome Light ¸ ϰ ִ ϴ.

: Outliner â 츮 ̸_Control̶ ׷ Ʈ ִ ִ.

3) LightControl ɼ ϱ


׸ ŬϽø ũ Ǽ ֽϴ.

: ̹ Directional Light ϳ ؼ Attribute Editor  ̴. ̹ ̴. Color Ǫ ִ. Color Ʈ ٸ Ǿ ִ. ǹϴ 츮 ó ̹ ҽ κ Ʈ ״ ͼ ɼ (Search Radius)ŭ ̴. ᱹ HDR Imageκ Ϻϰ Ʈ ̻ ° ̴.


: HDRLightControl.mel ϸ 츮 MEL ġ εϸ HDR Light Set MEL ̸ ҷ ̴. ʱⰪ 0̴. Shadow κ 츮 Maya κ̹Ƿ ϰڴ. ó Dimmerε ̰ Light Set ü ⸦ Ѵ. Light Hue / Saturation / Val ִµ 鼳 ° ȴ. ⼭ Tip ̶ Ѵٸ IPR ̿ ġ ϸ鼭 ǽð ͵ ̴.

: ޴ . HDRLightControl ̿Ͽ Global Illumination ϴ ޷ ̵ ϴ ִ. MentalRay ȯϿ ϴ ſ ̴.

: Ʒ ̹ Maya 6.0 MentalRay Ӱ ž Image Based Lighting ɼ̴. ɼ ϸ 츮 LightProbe Format ̹ ִ. ̰Ϳ ִ ϴ. ٴڸ UseBackground Shader Maya 6.0 Ż̴ UseBackground Shader ʴ´. ׷ٰ ؼ ƴϴ. ׸ڸ κи ʿϹǷ Ʈ ˰ ϰ ׸ڸ Maya Software ̰ų, Ż̿ Pass Render и ̾Ƽ ϸ ȴ.

: ̷ ٹ ִ. ó Ǿ , ƴϸ ü ִ ݵ ó ۽ÿ ؾ Ѵٴ ̴.


׸ ŬϽø ũ Ǽ ֽϴ.

: ̹ Image Based Lighting ɼ̴.

: ռ ̴.



ġ鼭

: Կ ռ Ҵ. 񿡼 ֵ 츮 ó 츮 ҽ Կؼ µ Ͽ. Technology ϸ Ҽ ͵ ϰ Ǵϵ . ׷ϴ ⺻ Ǿ ʴٸ ѳ 忡 Ұ ̴. ο Ʈ ǰ Ѹ ưư 鸮 ʴ ̴. ̹ Ұ ߿ ⺻ ϴ ͵ Ҵ. غϸ ְ غ . е鵵 ׷ ſ ٶ. Do It Yourself!

Reference

Vincent Lin Cheap HDRI Ʃ丮
Paul Debevec HDRI Ȩ
HDRShop Ȩ
LightGen / Light Control plugin Ȩ
Maya 6.0 Help File


. ̼
Nthma Production Team
Render Part TD
Nthma Production Team (http://www.nthma.com)






 
Ʃ