POV-Ray : Newsgroups : povray.general : Making Background transparent... : Re: Making Background transparent... Server Time
8 Aug 2024 22:07:42 EDT (-0400)
  Re: Making Background transparent...  
From: Tom Melly
Date: 22 Sep 2000 10:19:54
Message: <39cb6a8a$1@news.povray.org>
"Martin" <mar### [at] thomatechnikde> wrote in message
news:39CB65BF.B5C9F0B6@thomatechnik.de...
> Hello !
>
> For a Web-Image I need to make the background transparent. What's the
> best way to do it ? Is there something like a "build-in"-transparent
> background ?
>

I'm sure there's a way to do this directly in POV, but the easiest way is:

a) make your background a solid colour not in use elsewhere in your image.

b) open the finished image in a paint prog (example here is psp).

c) reduce colours to 256

d) pick the background colour with a dropper or similiar tool and either set
this as the second pallette colour or make a mental note of its index value
(this will show up in the pallette toolbar next to an "I" when the dropper
hovers over the colour).

e) use the "colors" menu to set pallette transparency to this value.

f) save image as either gif or png (png is better for ethical reasons, gif
for cross-browser compatibility)

One point is that you should be careful in POV to pick a background colour
that won't dither when reduced to 256. Pure black, white, green, red or blue
are good for this, but other colours will also work.


Post a reply to this message

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