Render.ru

z-buffer???

#1
Есть отрендеренная в Майе картинка в формате 8-битного iff. Проверяю fcheсk_ом - zbuffer есть.
Загружаю в Шейк делаю реордер rgbz - альфа канал черный, как будто и не было никакого zbufferа...
Задача вообще-то размыть картинку по глубине в сцене. Как это лучше сделать?
Помогите пж-ста.
 
#2
альфа канал черный, как будто и не было никакого zbufferа...??????
alfa i Z dept ne odno i toje:)
 
#3
Viewing a Z-Channel
Although you can't see the alpha in a Viewer, you can place a Key - DepthKey on an image and adjust the depth parameters as you view the alpha channel. If you keep the image in float (4 bytes) with the Bytes operator and do a Reorder rgbz, you will be able to see the numeric values when you scrub with the cursor on the alpha channel. This is an ideal candidate for a Viewer Script...

If the Z channel isn't directly imported with the FileIn, you can copy it over with the Copy command, using z as your channel.

If you are importing from Maya, they have a wacky Z setting which is -1/distance. This basically means that the numbers in DepthKey are inpractical. Therefore, jump onto www.highend2d.com and grab the MayaDepthKey macro which operates exactly like the normal DepthKey, but does the conversion math for you.

mojet eto pomojet :)
 
#4
Спасибо, я скачал MayaZDefocus с www.highend2d.com.
Осталось поставить...
То, что альфа, это не Z я знаю, конечно :)
 

DLCool

Знаток
Рейтинг
25
#5
На самом деле и без всяких скриптов всё работает. Если в прицепить к картинке DepthKey и выставить hiVal = 0, а loVal приблизительно -0.008013 или где-то рядом, то в альфа канале замечательно видет Z буфер.
 
Сверху