POV-Ray : Newsgroups : povray.newusers : Image map covers my rainbow : Re: Image map covers my rainbow Server Time
29 Jul 2024 00:26:33 EDT (-0400)
  Re: Image map covers my rainbow  
From: Hugh
Date: 24 Mar 2007 07:50:02
Message: <web.46051e29205acee1762669c60@news.povray.org>
"Hugh" <nomail@nomail> wrote:
> Hi all,
>
>   I'm trying to create an animation where an aircraft flies past a building
> with a rainbow in the background.  The aircraft is a png file with a
> transparent background that I am using as an image map in a box object.  It
> flies in front of the building without blocking outside of the aircraft's
> silhouette.  However, when  it passes in front of the rainbow, something is
> causing a box-shaped area to be blocked on the rainbow.  I've tried a number
> of things but since I've only been at this a week, there's a lot that I
> don't know yet.  I'm supplying the code that I'm using below.  Thanks in
> advance for any help.
>
> Hugh
>
>
> // Aircraft containment box
> box {
>  <-9, -3, 0>, // Near lower left corner
>  < 8, 2, 0> // Far upper right corner
>  pigment {
>   image_map{
>    png "B2FrontClean.png"
>    once
>   }
>   scale <16, 4, 0>
>   translate <-8.35, -2.65, 0>
>  }
>  rotate <0, -30, 90>
>  // This translation is for static viewing
>  translate <10, 40, 0>
>         // These are for the animation
> // translate <-20, 40, 0>
> // translate <10*clock, 0, 0>
> }

Using the reflective floor example in the tutorial, I've added the following
after my aircraft pigment and now the building gets blocked.  I'm getting
closer but, please let me know if anyone knows how to tweak this correctly.

 photons { pass_through }
 hollow interior
 {
  media
  {
   scattering { 1, 0.07 extinction 0.01 }
   samples 30,100
  }
 }


Post a reply to this message

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