POV-Ray : Newsgroups : povray.newusers : Transparent text : Re: Transparent text Server Time
29 Jul 2024 02:24:43 EDT (-0400)
  Re: Transparent text  
From: Trevor G Quayle
Date: 16 Jan 2007 11:05:00
Message: <web.45acf737182cb103c150d4c10@news.povray.org>
"Espen" <nomail@nomail> wrote:
> Hi!
>
> I want to to make a text string semi transparent.  Tried to use pigment with
> rgbf but it does not work as I thought it would.  Any help appreciated.  The
> code I thought would work below.
>
> TIA
> , Espen
>
> text {
>
>    ttf "impact.ttf" "Text String" 0, 0
>
>    pigment { rgbf < 1.0, 1.0, 1.0, 0.5 > }
>    finish { ambient 1 diffuse 0 }
>
>    .
>    .
>    .
>
> }

Works fine for me.  Perhaps, you expect something different?

//START
camera{
  up y
  right x*image_width/image_height
  angle 30
  location <0,0,-10>
  look_at  0
}

text {
  ttf "impact.ttf" "Text String" 0, 0
  pigment { rgbf < 1.0, 1.0, 1.0, 0.5 > }
  finish { ambient 1 diffuse 0 }
  translate -x*2
}

cylinder{-x*3,x*3,0.1 pigment{rgb <1,0,0>}finish { ambient 1 diffuse 0 }
translate <0,0.3,1>}
//END

-tgq


Post a reply to this message

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