|
|
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
CFM wrote:
| My POV-ray tutorial told me that if I wanted the sun created by the
| sky_sphere command to emit an apparent shadow through clouds, I'd
have to
| make a really large sky_sphere with the proper texture,and put the
| light_source outside the sky_sphere. How do I do that, since the
tutorial
| never told me? Here's the programming language below I used to
create the
| sky_sphere with the sun and clouds, but the clouds do not cast shadows.
|
You can't do it with a sky_sphere, since by definition it is infinite
and therefore behind the clouds. So what you do is use a regular
sphere with a large radius and your cloud texture with the blue parts
replaced by a transparent color. Then all you have to do is put your
light source further out. Something like that (the texture will almpst
certainly require tweaking):
sky_sphere {
~ pigment {
~ gradient y
~ color_map {
~ [0,.002 color rgb<1,.2,0>
~ color rgb<1,.2,0>]
~ [.002,.2 color rgb<.8,.1,0>
~ color rgb<.2,.2,.3>]
~ }
~ }
~ scale 2
~ translate -1
}
sphere {
~ 0, 1000000000
~ pigment {
~ bozo
~ turbulence .65
~ octaves 6
~ omega .7
~ lambda 2
~ color_map {
~ [0,.1 color rgb<.5,.5,.5>
~ color rgb<.75,.75,.75>]
~ [.1,.5 color rgb<1,1,1>
~ color rgbt<1,1,1,1>]
~ [.5,1 color rgbt<1,1,1,1>
~ color rgbt<1,1,1,1>]
~ }
~ scale .1
~ }
~ rotate -135*x
}
- --
******************************
* Jerome M. Berger *
* mailto:jbe### [at] ifrancecom *
* http://jeberger.free.fr/ *
******************************
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFAomEvqIYJdJhyixIRAi4kAJ99hIPdaB5KKKQAEo6P8tOuCkk1OQCeNvVX
dIWUfnpIKMV6F2XFJHCWZzY=
=s25j
-----END PGP SIGNATURE-----
Post a reply to this message
|
|