POV-Ray : Newsgroups : povray.general : filter_applyer2 Server Time
9 Aug 2024 11:20:45 EDT (-0400)
  filter_applyer2 (Message 1 to 7 of 7)  
From: Gibus
Subject: filter_applyer2
Date: 2 Aug 2000 22:41:29
Message: <3988dbd9$1@news.povray.org>
without pictures this time

as someone in this news group,i want to edit image pixel per pixel.
so i creat this macro,with it you can edit your pixels on a bmp image like

#declare pixel[x position][y position]=<color vector>;

But you can also apply complex filters.I know,a lot of drawing programs have
this filters,but with the filter_applyer you can simply create your own
filters.Here's somme filter examples i've made to show you we can create all
the filters you want...

The parsing time is a bit long but you can accelerate it with a
parameter.This is why i want to write it in C.

--you can look at the examples in povray.binaries.images--

the macros ,the explanations,the filter library and some examples are
include in the zip file.

it's also on the web:

http://www.multimania.com/gibusperon/filter_applyer.zip

gibus


Post a reply to this message

From: Chris Huff
Subject: Re: filter_applyer2
Date: 3 Aug 2000 14:17:52
Message: <chrishuff-AFE314.13184603082000@news.povray.org>
In article <3988dbd9$1@news.povray.org>, "Gibus" 
<gib### [at] wanadoofr> wrote:

> The parsing time is a bit long but you can accelerate it with a
> parameter.This is why i want to write it in C.

You might want to look at the source for the post_process patch in 
MegaPOV, it is quite easy to add new filters.

-- 
Christopher James Huff - Personal e-mail: chr### [at] maccom
TAG(Technical Assistance Group) e-mail: chr### [at] tagpovrayorg
Personal Web page: http://homepage.mac.com/chrishuff/
TAG Web page: http://tag.povray.org/


Post a reply to this message

From: Fabien Mosen
Subject: Re: filter_applyer2
Date: 3 Aug 2000 14:37:57
Message: <3989BA7C.C612517B@skynet.be>
Chris Huff wrote:
> 
> In article <3988dbd9$1@news.povray.org>, "Gibus"
> <gib### [at] wanadoofr> wrote:
> 
> > The parsing time is a bit long but you can accelerate it with a
> > parameter.This is why i want to write it in C.
> 
> You might want to look at the source for the post_process patch in
> MegaPOV, it is quite easy to add new filters.

What could be nice is to be able ask POV-Ray to write the gathered
depth and normal info into a bitmap file, and then being able to
either use it as Gibus does, or simply specifying a post_process
command, without the need to recompute the whole image...

(or is it already possible ?  Did I miss something ?)

Fabien.


Post a reply to this message

From: ryan constantine
Subject: Re: filter_applyer2
Date: 3 Aug 2000 16:24:49
Message: <3989D4EC.543BF050@yahoo.com>
i was testing h.e. day's 'realexplode.pov' file a few weeks ago and he
calls post_process.  i was left with two versions of the image, a non
processed one and the processed one.  i don't know if that means you can
do what you want or not, but it seems that in the least, pov could be
patched so that another file containing the needed information could be
made to be used with the original picture.  that way you could try
different post_processes without redrawing the image.  as i have never
actually used any of these things myself, i could be out in left field.

Fabien Mosen wrote:
> 
> Chris Huff wrote:
> >
> > In article <3988dbd9$1@news.povray.org>, "Gibus"
> > <gib### [at] wanadoofr> wrote:
> >
> > > The parsing time is a bit long but you can accelerate it with a
> > > parameter.This is why i want to write it in C.
> >
> > You might want to look at the source for the post_process patch in
> > MegaPOV, it is quite easy to add new filters.
> 
> What could be nice is to be able ask POV-Ray to write the gathered
> depth and normal info into a bitmap file, and then being able to
> either use it as Gibus does, or simply specifying a post_process
> command, without the need to recompute the whole image...
> 
> (or is it already possible ?  Did I miss something ?)
> 
> Fabien.


Post a reply to this message

From: Gibus
Subject: Re: filter_applyer2
Date: 3 Aug 2000 16:53:14
Message: <3989dbba@news.povray.org>
i don't exactly understand what you said but i know that megapov have a
norml and depth filter:i just have to create a file that read this two
bitmap and to create two matrix with this information,after i can use it
with my filter_applyer...
gibus


Post a reply to this message

From: Chris Huff
Subject: Re: filter_applyer2
Date: 3 Aug 2000 17:18:22
Message: <chrishuff-A2A356.16191503082000@news.povray.org>
In article <3989BA7C.C612517B@skynet.be>, Fabien Mosen 
<fab### [at] skynetbe> wrote:

> What could be nice is to be able ask POV-Ray to write the gathered
> depth and normal info into a bitmap file, and then being able to
> either use it as Gibus does, or simply specifying a post_process
> command, without the need to recompute the whole image...
> 
> (or is it already possible ?  Did I miss something ?)

MegaPOV can already write the post-processed version to a separate file, 
hopefully a future version will allow this to be done on a per-filter 
basis.
As for the normal and depth, a depth filter has been included from the 
beginning, and one of my additions was a normal filter(which maps the 
[-1,1] range of normals to the [0,1] range of colors).

-- 
Christopher James Huff - Personal e-mail: chr### [at] maccom
TAG(Technical Assistance Group) e-mail: chr### [at] tagpovrayorg
Personal Web page: http://homepage.mac.com/chrishuff/
TAG Web page: http://tag.povray.org/


Post a reply to this message

From: Gibus
Subject: 3d filters
Date: 3 Aug 2000 20:44:25
Message: <398a11e9@news.povray.org>
i create a new macro that read the depth bitmap generate by mega pov.
i create a filter example,the easiest 3d filter is the fog.See the example
in povray.binaries.image.The bird model don't show the capacity of the
filter but you can see that the fog react with the depth.

the macros are here:

http://www.multimania.com/gibusperon/filter_applyer.zip

gibus


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.