|
|
On Mon, 30 Dec 2002 02:23:18 -0900
"jbbarnes" <jbb### [at] yahoocom> wrote:
> I tried spherical, but it did not give the right effect. Everything
> looked like it was in a fish-eye lens, with the center very magnified
> and distorted. Using planar gives the right effect (a nice, flat,
> picture) but is just difficult for me to figure out the logic of how
> it positions the image within the sphere.
Sorry, I read your message too fast. I see now you need a bit more
help...
First, you need to create the sphere at the origin (<0,0,0>). That
simplifies things a lot. You can translate it to the desired position
later, after the texture statements.
Then, you nedd to translate the texture to fit the sphere, not
viceversa. You must know how the image_map is positioned by default.
Finally, you must stick to planar mapping, as your maps are planar
ones. Only select them carefully to have the desired theme on the
center of the image.
I will write it this way:
sphere { 0, .5
pigment {
image_map { jpeg "nebula.jpg" interpolate 2 }
translate <-.5,-.5,0>
}
finish {
ambient 0.55
diffuse 0.7
phong 1
phong_size 100
reflection 0.505
}
scale 20
translate <68,0,50>
}
The code is not tested, but I think it must work, after re-reading
sections 6.7.1.5.1 and 6.7.12.7.2 of the docs (that's a fine RTFM! ;).
--
Jaime Vives Piqueres
La Persistencia de la Ignorancia
http://www.ignorancia.org
Post a reply to this message
|
|