
Matchbox 응용..
Autodesk Area 웹페이지에 Stoned & Wired라는 이름으로 blog가 있습니다. 알만한 사람은 다 아실텐데. 2월 9일에 Matchbox 응용하는 법을 올려놓은 적이 있습니다. glsl 로 직접 짜서 만드는 법을 알려주었었죠. OpenGL Shading Language의 약자로 스크립트를 짜서 Flame이나 Smoke에서 사용할 수 있는 방법을 알려주었답니다. 예로 보여준 것이 Toon Shader였습니다.
(주소 : http://area.autodesk.com/blogs/stonedwired/the_real_slim_shader)
개인적으로 자료를 검색하다가 좋은 녀석을 하나 찾았는데 이것도 Matchbox를 이용해서 적용하는 glsl 파일입니다.
(출처 : http://support.discreet.com/, 작성자 : Julik Tarkhanov )
내용은 아래와 같습니다.
Hi folks!
Wanted to let you know that I got my first Matchbox shader working - it replicates the Syntheyes lens distortion algorithm, both ways.
There are certainly inefficiencies and little bugs here and there but I've checked it against a job I am doing now and the distortion is 100% matching pixel
for pixel, give or take double filtering.
If you are using Syntheyes or your matchmovers are using it this can be a huge boost to the workflow (especially if you need to undistort or redistort
long sequences). I've also ported over the chromatic aberration feature for that extra creative touch when applying redistortion.
I'm curious how it can be abused in the wild, and of course I am open to bug reports and suggestions.
P.S. if someone is GLSL-savvy maybe he could chime in with some tips - I currently generate a lookup table for every redistorted pixel since apparently
array uniforms is kind of a gray area in GLSL, so if someone could help me out with that one that would be greatly appreciated.
--
Julik Tarkhanov | HecticElectric | Keizersgracht 736 1017 EX
Amsterdam | The Netherlands | tel. +31 20 330 8250
Syntheyes는 알만한 사람은 다 아는 Camera Tracking Tool입니다. 촬영된 카메라를 추적해서 3D 오브젝트나 CG합성할 때 우선적으로 사용되는 좋은 툴이죠. 이 툴에서 사용되는 Lens Distortion 값을 적용해서 Matchbox를 활용해 보았더니 완벽하게 맞았다네요.
그래서 제가 Julik Tarkhanov 가 올려놓은 파일을 다운받아서 Smoke for mac과 Flame에 카피해 보았습니다. 물론 Smoke는 Batch가 없기 때문에 Julik Tarkhanov 라는 친구가 의도한 방법, 곧 따로 렌더링을 걸 필요가 없는 방식은 Smoke에 적용이 안될 듯합니다. 어쨌든, Flame에서 Matchbox 노드를 이용해서 Syntheyes와 연동해 사용하는 좋은 예인 것 같습니다.
혹시나해서 Flame과 Smoke for mac의 적용 경로를 알려드립니다.
/usr/discreet/<version name>/Matchbox/ 입니다.
mac에서는 Finder에서 Shift + Command + G를 눌러서 Go to folder 기능을 적용하신 후에 위의 경로로 들어가서 복사하시면 됩니다.
Julik Tarkhanov가 올려놓은 홈페이지로 접근이 혹시나 안되는걸 대비해서..
파일을 업로드해 놓겠습니다. 아래 세개의 파일을 위에서 언급한 경로에 copy하세요 ^^
SyLens.glsl
SyLens.glsl.p
SyLens.xml