|
|
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'
Preview of image 'p1_ok.png'
|
|