POV-Ray : Newsgroups : povray.advanced-users : mesh2 transparency request Server Time
25 Nov 2024 14:44:37 EST (-0500)
  mesh2 transparency request (Message 1 to 5 of 5)  
From: Jeremy Wilson
Subject: mesh2 transparency request
Date: 19 Sep 2002 15:31:53
Message: <3d8a2629$1@news.povray.org>
Hi,
I currently have a program that ouputs mesh2 objects and adds texture 
info to them.  Unfortunately, my textures are standard Windows BMP 
files.  Since BMP files don't support an alha channel, so parts of the 
bitmap that are supposed to be transparent are not.  If I could tell my 
program to output PNG files I would but I can't at this time.

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?

Currently, POV-Ray only supports "transmit all x.x", but I don't want to 
filter ALL of the texture, just one specific color of the texture.  If 
there is another way of going about doing this and I am just not 
understanding the documentation correctly, someone please feel free to 
offer advice :-)

Respectfully,
Mitselplik


Post a reply to this message


Attachments:
Download 'iso-8859-1' (2 KB)

From: Gilles Tran
Subject: Re: mesh2 transparency request
Date: 19 Sep 2002 16:09:34
Message: <3d8a2efe@news.povray.org>

3d8a2629$1@news.povray.org...
>Currently, POV-Ray only supports "transmit all x.x", but I don't want to
filter ALL of the texture, just one specific color >of the texture.  If
there is another way of going about doing this and I am just not
understanding the documentation >correctly, someone please feel free to
offer advice :-)

There are 2 ways to do this. Look up "material_map" and "image_pattern" in
the docs.  Using material_map is closer to what you have in mind, but could
be clumsy to set up. Using image_pattern is easier but will always require
an extra map for defining the transparency (it acts like an independent
alpha channel).

G.


--
**********************
http://www.oyonale.com
**********************
- Graphic experiments
- POV-Ray and Poser computer images
- Posters


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: mesh2 transparency request
Date: 19 Sep 2002 16:28:49
Message: <3d8a3381@news.povray.org>
Hello,

Please check out our Outlook Express tutorial at 
<http://www.povray.org/resources/newsgroups/oetut.php#FINETUNE>
in order to disable HTML posting.

    Thorsten

____________________________________________________
Thorsten Froehlich
e-mail: mac### [at] povrayorg

I am a member of the POV-Ray Team.
Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

From: Warp
Subject: Re: mesh2 transparency request
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

From: Philippe Lhoste
Subject: Re: mesh2 transparency request
Date: 20 Sep 2002 10:27:10
Message: <Xns928FA727B1A3BPhiLho@204.213.191.226>
"Jeremy Wilson" <jwi### [at] batchcomputercom> wrote in
news:3d8a2629$1@news.povray.org: 

> Hi,
> I currently have a program that ouputs mesh2 objects and adds texture
> info to them.  Unfortunately, my textures are standard Windows BMP
> files.  Since BMP files don't support an alha channel, so parts of the
> bitmap that are supposed to be transparent are not.  If I could tell my
> program to output PNG files I would but I can't at this time. 

You can use ImageMagick (available for Windows, among other systems) to 
transform your BMP images into PNG (for example), adding transparency to the 
given color (option: -transparent <color>).

I just tried:
convert -transparent #FFFFFF FairyCastle.bmp FC.png
checked transparency with an HTML page, looks OK.

HTH.

-- 
--=#=--=#=--=#=--=#=--=#=--=#=--=#=--=#=--=#=--
Philippe Lhoste (Paris -- France)
Professional programmer and amateur artist
http://jove.prohosting.com/~philho/


Post a reply to this message

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