POV-Ray : Newsgroups : povray.general : Color add Server Time
5 Aug 2024 06:17:16 EDT (-0400)
  Color add (Message 10 to 19 of 19)  
<<< Previous 9 Messages Goto Initial 10 Messages
From: Warp
Subject: Re: Color add
Date: 3 Jan 2003 20:24:02
Message: <3e1637b2@news.povray.org>
Slime <slm### [at] slimelandcom> wrote:
> Nonetheless, I think an additive-alpha feature would be a good thing for a
> patch...

  IMHO it should be more generic than just a specific "additive-alpha"
filter. This way you could get many other type of filters for free.

-- 
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -


Post a reply to this message

From: Rafal 'Raf256' Maj
Subject: Re: Color add
Date: 3 Jan 2003 21:43:32
Message: <Xns92F925A8C9162raf256com@204.213.191.226>
Warp <war### [at] tagpovrayorg> wrote in news:3e1637b2@news.povray.org

>> Nonetheless, I think an additive-alpha feature would be a good thing
>> for a patch...
>   IMHO it should be more generic than just a specific "additive-alpha"
> filter. This way you could get many other type of filters for free.

When adding reflecion we calculate reflection ray color R and then add it 
to surface pigment
  F = S + R // final = surface + relfection

I suggest : 
  F = S + R + T // where T is transmited (additive transmit)

next step may be 
  F = S + R + color_transform(T)

and color transform can be a function that takes 3 value wector <r,g,b> and 
also returns <r,g,b>
  


-- 
#macro g(U,V)(.4*abs(sin(9*sqrt(pow(x-U,2)+pow(y-V,2))))*pow(1-min(1,(sqrt(
pow(x-U,2)+pow(y-V,2))*.3)),2)+.9)#end#macro p(c)#if(c>1)#local l=mod(c,100
);g(2*div(l,10)-8,2*mod(l,10)-8)*p(div(c,100))#else 1#end#end light_source{
y 2}sphere{z*20 9pigment{function{p(26252423)*p(36455644)*p(66656463)}}}//M


Post a reply to this message

From: Christopher James Huff
Subject: Re: Color add
Date: 3 Jan 2003 22:36:55
Message: <cjameshuff-8E13A6.22325203012003@netplex.aussie.org>
In article <Xns### [at] 204213191226>,
 "Rafal 'Raf256' Maj" <raf### [at] raf256com> wrote:

> > Nonetheless, I think an additive-alpha feature would be a good thing
> > for a patch...
> 
> I agree, and it's very easy to implement imho.

Hah! Judging from this and your other posts, you don't have the 
slightest clue about any kind of coding, let alone implementing 
something like this. If it's so easy, why are you asking for someone 
else to do it?

Warp is correct, it could be much more general and powerful than your 
suggestion. I've never liked having transparency values part of the 
color, it looks like copying the alpha channel in image formats. 
Separate control of transparency would greatly increase the flexibility 
of the program.
However, it isn't something that would be easy to patch into the current 
code, which has developed for over a decade on the assumption of 
5-component color vectors with two transparency components. I tried, as 
part of my old blurred transparency patch, and didn't make any useful 
progress. I may try again someday, when I have a lot of time to kill.

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tagpovrayorg
http://tag.povray.org/


Post a reply to this message

From: Rafal 'Raf256' Maj
Subject: Re: Color add
Date: 4 Jan 2003 09:41:29
Message: <Xns92F99F6382EC8raf256com@204.213.191.226>
Christopher James Huff <cja### [at] earthlinknet> wrote in news:cjameshuff-
8E1### [at] netplexaussieorg

>> > Nonetheless, I think an additive-alpha feature would be a good thing
>> > for a patch...
>> I agree, and it's very easy to implement imho.
> Hah! Judging from this and your other posts, you don't have the 
> slightest clue about any kind of coding, let alone implementing 

You are the most un-freindly [for me] person I ever met on news:// - 
congratulations ;)

> If it's so easy, why are you asking for someone else to do it?
[...]
> someday, when I have a lot of time to kill.

You answared Yourself.

-- 
#macro g(U,V)(.4*abs(sin(9*sqrt(pow(x-U,2)+pow(y-V,2))))*pow(1-min(1,(sqrt(
pow(x-U,2)+pow(y-V,2))*.3)),2)+.9)#end#macro p(c)#if(c>1)#local l=mod(c,100
);g(2*div(l,10)-8,2*mod(l,10)-8)*p(div(c,100))#else 1#end#end light_source{
y 2}sphere{z*20 9pigment{function{p(26252423)*p(36455644)*p(66656463)}}}//M


Post a reply to this message

From: Christopher James Huff
Subject: Re: Color add
Date: 4 Jan 2003 10:10:59
Message: <cjameshuff-C4D2DA.10065704012003@netplex.aussie.org>
In article <Xns### [at] 204213191226>,
 "Rafal 'Raf256' Maj" <raf### [at] raf256com> wrote:

> >> I agree, and it's very easy to implement imho.
> > Hah! Judging from this and your other posts, you don't have the 
> > slightest clue about any kind of coding, let alone implementing 
> 
> You are the most un-freindly [for me] person I ever met on news:// - 
> congratulations ;)

Sorry, I didn't mean to be so harsh. That "very easy to implement in my 
honest opinion" part just annoyed me. It isn't, and could only seem so 
to someone who hasn't looked at the code involved. I've done a lot of 
patching myself, and frankly, your attitude of "this is easy, why 
doesn't one of you people do it?" is irritating, especially when it is 
neither easy nor at all simple. I can only suggest that you do a bit 
more research (like actually looking at the code) before stating that 
kind of opinion. Maybe try doing something yourself instead of just 
saying it's easy and asking for someone else to do it.


> > If it's so easy, why are you asking for someone else to do it?
> [...]
> > someday, when I have a lot of time to kill.
> You answared Yourself.

No I didn't. If it were easy, it wouldn't take a lot of time to do.

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tagpovrayorg
http://tag.povray.org/


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: Color add
Date: 4 Jan 2003 11:13:59
Message: <3e170847$1@news.povray.org>
In article <Xns### [at] 204213191226>, "Rafal 'Raf256' Maj"
<raf### [at] raf256com> wrote:

> You are the most unfriendly [for me] person I ever met on news:// -
> congratulations ;)

Chris, I really don't appreciate competition in this category towards any
person!!!  This is my job, not yours! ;-)

    Thorsten


____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde

Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

From: DTWallace
Subject: Re: Color add
Date: 6 Jan 2003 02:25:02
Message: <web.3e192e3b29d06f4776a7aa520@news.povray.org>
Rafal 'Raf256' Maj wrote:
>I have i.e. sphere rgb <1,0,0> behind a box rgb <0,1,0> and all this behind
>a wall rgb .3
>
>Now I want color of pixel, that is on render output "inside" all 3 shapes
>(inside there projection on view port exacly) to have color :
>
><1,0,0> + <0,1,0> + .3 = <1.3,1.3,0.3>
>

This is possible in Pov 3.5.  There's a trick with transmit and ambient:

object {
  thing
  #declare small = 0.00001;
  pigment {rgbft <1,0,0, 0,1-small>} // additive red
  finish {ambient 1/small diffuse 0}
}

(here's another cool trick:
  pigment {rgbft <1,1,1, -1,0>}
  finish {ambient 0.5 diffuse 0}
inverts the colors behind it.)

Of course the addition / inversion happens once each time the ray passes
through the object's surface, so it works best on discs and planes and such,
which the ray can only hit once.

 -DTWallace


Post a reply to this message

From: ABX
Subject: Re: Color add
Date: 6 Jan 2003 02:27:53
Message: <89bi1vkijlk625r8ll5iigq5dvpkpeq37i@4ax.com>
On 4 Jan 2003 09:41:29 -0500, "Rafal 'Raf256' Maj" <raf### [at] raf256com> wrote:
> You are the most un-freindly [for me] person I ever met on news:// - 
> congratulations ;)

So saying "it's very easy to implement imho" by person who never ever
expressed willingness to touch code is friendly ? Can you imagine that adding
_one_ line to povray source code can take two hours or more ? Can you imagine
that's the time of voulounteers private live ? You can say anything about
existing features but please do not express any opinion about easiness of
extending POV-Ray until you have own well tested patch released. Feel free to
use voulonteer work from http://megapov.inetart.net/manual/internals.html.

ABX


Post a reply to this message

From: Rafal 'Raf256' Maj
Subject: Re: Color add
Date: 6 Jan 2003 06:22:19
Message: <Xns92FB7DA32E704raf256com@204.213.191.226>
ABX <abx### [at] abxartpl> wrote in
news:89bi1vkijlk625r8ll5iigq5dvpkpeq37i@4ax.com 

> So saying "it's very easy to implement imho" by person who never ever
> expressed willingness to touch code is friendly ? Can you imagine that

I'm now writting a little freeware tool for Pov, and i'm starting to 
implement output patch :)


-- 
#macro g(U,V)(.4*abs(sin(9*sqrt(pow(x-U,2)+pow(y-V,2))))*pow(1-min(1,(sqrt(
pow(x-U,2)+pow(y-V,2))*.3)),2)+.9)#end#macro p(c)#if(c>1)#local l=mod(c,100
);g(2*div(l,10)-8,2*mod(l,10)-8)*p(div(c,100))#else 1#end#end light_source{
y 2}sphere{z*20 9pigment{function{p(26252423)*p(36455644)*p(66656463)}}}//M


Post a reply to this message

From: ABX
Subject: Re: Color add
Date: 6 Jan 2003 06:33:21
Message: <a8qi1vsvum48vnkn9662j3j2t4k2df6bfb@4ax.com>
On 6 Jan 2003 06:22:19 -0500, "Rafal 'Raf256' Maj" <raf### [at] raf256com> wrote:
> > So saying "it's very easy to implement imho" by person who never ever
> > expressed willingness to touch code is friendly ? Can you imagine that
>
> I'm now writting a little freeware tool for Pov

any details ?

> and i'm starting to implement output patch :)

any details ?

ABX


Post a reply to this message

<<< Previous 9 Messages Goto Initial 10 Messages

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