POV-Ray : Newsgroups : povray.general : Planetary Heightfields: Now what? : Re: bump_maps [Re: Planetary Heightfields: Now what?] Server Time
13 Aug 2024 13:17:45 EDT (-0400)
  Re: bump_maps [Re: Planetary Heightfields: Now what?]  
From: Ken
Date: 27 Sep 1998 00:43:59
Message: <360DB4AC.F5E6859B@pacbell.net>
I took the liberty of playing around with it for a while
and I think you will like what I have come up with.
Anyway take a look and see what you think.
I used the bump map image as an image map to add
highlighting. The filtered white layer on top was needed
becasue the pgm file had too many dark areas to get
much surface definition (try removing it and you'll see
what I mean). The filtering lets the underlying surface
show through and really adds to the appearance of depth.
I still don't know if this is what you wanted the final image
to look like but it's definately interesting looking.

camera{location z*-3 look_at 0}
light_source{<0,30,-3>rgb 1}

sphere{<0,0,0>,1
  normal{
   bump_map{pgm "surfaces/jbrp.1.pgm"
    bump_size 50 map_type 1 interpolate 2}
      translate -.5 scale 1}

pigment{
 image_map{pgm "surfaces/jbrp.1.pgm"
  map_type 1 interpolate 2}
   translate -.5 scale 1}

pigment{rgb 1 filter .8}
 finish{ambient .3 diffuse 1}
}

Ken Tyler

Jed Reynolds wrote:

> Hi Simon and David,
>
> I noticed your thread on planetary renderings, and I'm
> interested in this, too. I have a friends who's writing a
> game and he asked me to render some planets for him.
>
> I was looking through _The Science of Fractal Images_ by
> Pietgen and Saupe, and In the color plates I saw a cosine-offset
> surface generation method used by R.F. Voss. I looked at that
> for a while and realized I could code something like that in
> Perl and make a pgm output file and use that as a bump_map
> on a sphere.
>
> However, when I try to render it, I don't see any bumps
> on the sphere. Do you see anything erroneous about this
> bump map statement?
>
> #declare PLANET=sphere { <0, 0, 0>, 1
>
>         normal {
>                 bump_map {
>                         pgm "surfaces/jbrp.1.pgm"
>                         bump_size 10.0
>                         map_type 2
>                 }
>         }
>
>         pigment {
>                 Gray
>                 //image_map {
>                 //      pgm "surfaces/jbrp.0.pgm"
>                 //      map_type 1
>                 //      interpolate 2
>                 //}
>         }
>         scale 6
>         translate <0, 4, 0>
> }
>
> If that is correct, could you suggest anyother reason
> I might not be able to display bumps on the sphere?
>
> Attached is my surface map. Would you mind taking a look
> at it?
>
> Much appreciated
>
> --jed
>
> Simon de Vet wrote:
> >
> > I've found tons of great heightmaps for planets, and moons at
> > http://bang.lanl.gov/solarsys/eng/homepage.htm
>
> --
> # Jed Reynolds, mailto:jed### [at] surfsoftcom http://www.surfsoft.com/~jed
> # "...I've seen the old geeks talk to the young geeks, and they speak
> # the same language. There's no age gap or anything." --Steve Wozniak
>
>   --------------------------------------------------------------------------------
>
>                     Name: jbrp.0.pgm
>    jbrp.0.pgm       Type: PGM Image (image/x-portable-graymap)
>                 Encoding: 7bit


Post a reply to this message

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