POV-Ray : Newsgroups : povray.general : query - disappearing balls of fire : query - disappearing balls of fire Server Time
28 Apr 2024 03:40:01 EDT (-0400)
  query - disappearing balls of fire  
From: Bob Frew
Date: 13 May 2016 14:22:55
Message: <57361b7f$1@news.povray.org>
Hi all,
whilst changing an old scene to work under 3.7 I found a funny.
Have narrowed it down to the following.

using following code all is well and as expected, however if you change 
the position of the plane to +2 you lose the sphere ???
Am puzzled as to why.
Can use workaround of making image_map with negative plane and then 
rotate it 180*y

Is probably my understanding of things
			... Bob

plane {
   z, -2
   texture {
     pigment {
       image_map {
         png "test.png"
         interpolate 2 // smooth it
         once   // don't tile image, just one copy
       }
       // transform it to unit-size (-1 to +1)
       translate -0.5*(x+y) // center on the origin
       scale 2              // make it unit-sized
     }
     finish { ambient 0.3 }
   }
}

sphere { 0,1 pigment { rgbt 1 }  hollow                    // 
transparent sphere containing media
                              interior  { media { emission 20
                              density  { spherical density_map {
                                         [ 0 color rgbt <1, 0, 0,  1> ]
                                         [ 1 color rgbt <.9, 1, 0, -1> ] }
                          }   } } }


Post a reply to this message


Attachments:
Download 'p1_nbg.png' (5 KB) Download 'p1_ok.png' (6 KB)

Preview of image 'p1_nbg.png'
p1_nbg.png

Preview of image 'p1_ok.png'
p1_ok.png


 

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