POV-Ray : Newsgroups : povray.binaries.images : My latest Saturn Server Time
31 Jul 2024 06:14:29 EDT (-0400)
  My latest Saturn (Message 1 to 4 of 4)  
From: Rarius
Subject: My latest Saturn
Date: 13 Apr 2010 19:10:44
Message: <4bc4f9f4@news.povray.org>
My friend is preparing an astronomy lecture and asked me to produce a video 
of a saturn flyby, so I dusted of an old saturn I did, but I wasn't 
satisfied with the rings.

The original version used a spherical pattern and a colour_map to do the 
rings, but it looked flat and artificial.

Here is the latest version. The new version uses three images from Bjorn 
Jonsson's excellent website (http://www.mmedia.is/~bjj/) for the rings. The 
problem I had was that POV has no innate way of mapping an image_map 
radially onto a flat plane (ie the rings). I solved this by writing some 
functions that map a radial coordinate onto the linear image_map. The new 
rings show far more detail and look much more realistic. If anyone knows an 
easier way please tell me!

I have posted the source and image files into p.b.s-f

Now the animation is done, my friend has asked if I can do another of 
Jupiter!

Rarius


Post a reply to this message


Attachments:
Download 'Saturn.png' (237 KB)

Preview of image 'Saturn.png'
Saturn.png


 

From: clipka
Subject: Re: My latest Saturn
Date: 14 Apr 2010 05:01:09
Message: <4bc58455$1@news.povray.org>
Am 14.04.2010 01:10, schrieb Rarius:

> Here is the latest version. The new version uses three images from Bjorn
> Jonsson's excellent website (http://www.mmedia.is/~bjj/) for the rings. The
> problem I had was that POV has no innate way of mapping an image_map
> radially onto a flat plane (ie the rings). I solved this by writing some
> functions that map a radial coordinate onto the linear image_map. The new
> rings show far more detail and look much more realistic. If anyone knows an
> easier way please tell me!

Using an image map with cylindrical warp should do the job, but you'll 
have to rotate (and possibly translate and scale) the image map in a 
suitable fashion first:

     pigment {
       image_map { png "foobar.png" }
       rotate <0,90,90>
       warp { cylindrical }
     }

This assumes that the image map shows the rings as vertical stripes, 
each representing a full 360 degrees arc.


Post a reply to this message

From: Rarius
Subject: Re: My latest Saturn
Date: 14 Apr 2010 05:44:32
Message: <4bc58e80$1@news.povray.org>
"clipka" <ano### [at] anonymousorg> wrote in message 
news:4bc58455$1@news.povray.org...
> Using an image map with cylindrical warp should do the job, but you'll 
> have to rotate (and possibly translate and scale) the image map in a 
> suitable fashion first:
>
>     pigment {
>       image_map { png "foobar.png" }
>       rotate <0,90,90>
>       warp { cylindrical }
>     }
>
> This assumes that the image map shows the rings as vertical stripes, each 
> representing a full 360 degrees arc.

Many thanks for that clipka. I thought a warp might do it, but I just 
couldn't find anything in the documentation about how warp{cylindrical} 
worked and/or the parameters.

Your assumption is correct. the images are vertical bars...  Now all I need 
to do is figure out how to combine the three images I have, colour, 
transparency and albedo together!

Rarius


Post a reply to this message

From: clipka
Subject: Re: My latest Saturn
Date: 14 Apr 2010 08:17:52
Message: <4bc5b270@news.povray.org>
Am 14.04.2010 11:44, schrieb Rarius:

> Your assumption is correct. the images are vertical bars...  Now all I need
> to do is figure out how to combine the three images I have, colour,
> transparency and albedo together!

I'd try as follows:

- Use the colour file as a pigment image_map to get your hue.

- Use the albedo file as a texture image_pattern to mix between plain 
black and the hue pigment.

- Use the transparency file as a texture image_pattern to mix between 
transparent (rgbt 1) and that other mixed texture.

Or use some image processing software (Photoshop or Gimp or whatever you 
have) to do the mixing into a .png with alpha channel, and use that 
straight away as a pigment image_map.


Post a reply to this message

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