POV-Ray : Newsgroups : povray.advanced-users : mesh2 transparency request : Re: mesh2 transparency request Server Time
29 Jul 2024 08:18:24 EDT (-0400)
  Re: mesh2 transparency request  
From: Warp
Date: 19 Sep 2002 17:34:38
Message: <3d8a42ee@news.povray.org>
Jeremy Wilson <jwi### [at] batchcomputercom> wrote:
> So...what I would like to know is who do I make a feature request to?  What I would
like to see is an option to specify "transmit color <R,G, B> .5" or something like
that to tell POV-Ray, when you see this color in the texture, pretend its 50%
transparent.  Does that make sense?

  There's a problem with that. RGB images use integer values between 0 and 255
for each color channel. POV-Ray uses floating point values between 0 and 1.

  For example if you want to say that 105,53,79 should be transparent, you
could write <105/255, 53/255, 79/255>, but I wonder if floating point
accuracy will play an important role in this...

  IMO it doesn't make much sense to be able to make just certain individual
colors transparent (because you need to know the exact values of that color),
but it would be more useful to be able to specify some kind of transparency
map for the image (this is already possible, but it works only for the
b/w values of the image, not the color values). I'm not sure exactly how
this should be implemented, though.

-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

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