Re: Working with time dependence

32 views
Skip to first unread message

Rafal Mantiuk

unread,
Feb 1, 2013, 4:28:01 PM2/1/13
to pfst...@googlegroups.com
Hi Miguel,

There could be a problem with google groups because your post does not
show up on the group.

On Thu, Jan 31, 2013 at 7:39 PM, Miguel Melo <tri...@gmail.com> wrote:
> Hi there,
>
> I've a doubt and I wonder if someone can help me ... I want to process a set
> of frames with Pattanaik00 and Mantiuk08 with time-dependence! I use the -t
> but I think I'm not doing properly since I do for example:
>
> pfsin Frame_0001.exr | pfstmo_pattanaik00 -t -f 20.0 | pfsgamma -g 2.2 |
> pfsout Frame_0001.png;
> pfsin Frame_0002.exr | pfstmo_pattanaik00 -t -f 20.0 | pfsgamma -g 2.2 |
> pfsout Frame_0002.png;
> pfsin Frame_0003.exr | pfstmo_pattanaik00 -t -f 20.0 | pfsgamma -g 2.2 |
> pfsout Frame_0003.png;
> .....

The proper way to do it:

pfsin Frame_%04d.exr | pfstmo_pattanaik00 -t -f 20.0 | pfsgamma -g 2.2
| pfsout Frame_%04d.png

see also "man pfsin".

Note that in pfstmo 1.5 there is no need for "-t" in mantiuk08.

Rafal

Miguel Melo

unread,
Feb 2, 2013, 11:01:15 AM2/2/13
to pfst...@googlegroups.com, man...@gmail.com
Hi Rafal,

Many thanks for your answer! Yes, I should have read the pfsin manual! I searched over pfsout and pfstmo_pattanaik and didn't saw nothing! :P
The stra goes all fine but with Pattanaik at the middle of the sequence it sais "-nan" for adaptation rod, cone, bleaching cone and rod and the generated output image all in black. thing is that with Pattanaik I'm having a weird error .. It does not process correctly a sequence, I've tried with two different sequences and with Mantiuk08 it is all ok but with Pattanaik it does not process certain frames ... Can you advise me on how to proceed?

Many Thanks,
Miguel

Rafal Mantiuk

unread,
Feb 2, 2013, 7:27:43 PM2/2/13
to Miguel Melo, pfst...@googlegroups.com
On Sat, Feb 2, 2013 at 4:01 PM, Miguel Melo <tri...@gmail.com> wrote:
> The stra goes all fine but with Pattanaik at the middle of the sequence it
> sais "-nan" for adaptation rod, cone, bleaching cone and rod and the
> generated output image all in black. thing is that with Pattanaik I'm having
> a weird error

Try adding pfsclamp in the pipe, before the operator.

http://pfstools.sourceforge.net/man1/pfsclamp.1.html

Rafal

Miguel Melo

unread,
Feb 3, 2013, 6:57:41 AM2/3/13
to pfst...@googlegroups.com, Miguel Melo, man...@gmail.com
Many thanks Rafal, it did the trick and all is working like desired! :)

Best Wishes,
Miguel

Miguel Melo

unread,
Feb 8, 2013, 12:41:20 PM2/8/13
to pfst...@googlegroups.com, Miguel Melo, man...@gmail.com
Hi there,

I'm asking here because perhaps it makes no sense openinc a new topic because of it ... I'm having an issue... When I have .exr images and convert them to .tiff all goes smoothly but when I do the same from an .HDR image the image appears almost white... I'm using pfsin image.hdr | pfsout image.tiff .. Is there any additional "care" that I should have when handling .HDR images that it is no needed with .exr (because  pfsin image.exr | pfsout image.tiff goes fine ..)?
PS: I've also tried: pfsin image.hdr | pfsout image.exr and then pfsin image.exr | pfsout image.tiff  but the result is the same (when it converts to .exr the same problem occurs).

Many thanks



Domingo, 3 de Fevereiro de 2013 0:27:43 UTC, Rafal escreveu:

Rafal

unread,
Feb 16, 2013, 8:36:01 AM2/16/13
to pfst...@googlegroups.com, Miguel Melo, man...@gmail.com
On Friday, 8 February 2013 17:41:20 UTC, Miguel Melo wrote:
Hi there,

I'm asking here because perhaps it makes no sense openinc a new topic because of it ... I'm having an issue... When I have .exr images and convert them to .tiff all goes smoothly but when I do the same from an .HDR image the image appears almost white... I'm using pfsin image.hdr | pfsout image.tiff .. Is there any additional "care" that I should have when handling .HDR images that it is no needed with .exr (because  pfsin image.exr | pfsout image.tiff goes fine ..)?
PS: I've also tried: pfsin image.hdr | pfsout image.exr and then pfsin image.exr | pfsout image.tiff  but the result is the same (when it converts to .exr the same problem occurs).
 
Perhaps you could post "image.hdr" so that we could reproduce the problem. I could not reproduce it with other images.

Note that TIFF images must be rescaled so that the maximum value is 1. 

Rafal 

Reply all
Reply to author
Forward
0 new messages