POV-Ray : Newsgroups : povray.newusers : Image_map transparent color interracts with fog : Image_map transparent color interracts with fog Server Time
30 Jul 2024 06:31:20 EDT (-0400)
  Image_map transparent color interracts with fog  
From: StDunstan
Date: 30 Aug 2004 08:50:01
Message: <web.4133223fba38b838d99800df0@news.povray.org>
For remotes objects, I use a simple flat box mapped with a GIF image. As
this object is not rectangular, all part of the rectangle outside the
object is set with a transparent color.

example.
box {<0,0,0><1,1,1>
texture {

                    pigment {
                      image_map {gif "facadesmakefacade02d192.gif"
transmit    192, 1.0
                      }

                    }
                    finish
                 {
                    ambient 0.25
                    diffuse 0.78

                 }
         }

scale <576,1032,0.0030>* 0.8
translate x* (525*1.25  + 321*0.85 )
rotate -y*12
translate orgFacadesSud


On the example above, the color 192 is mase transparent


It works fine as long as there is no fog effect. But if I set a fog

fog {
    distance 2850
    color rgbft<0.4, 0.41, 0.41, .5,.6>
    turbulence 5 omega .2
    turb_depth 0.99
}

The transparent color is colored with the fog color making all the rectangle
frame visible directly or dropping shadow.

Is there any way to avoid this ??


Post a reply to this message

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