POV-Ray : Newsgroups : povray.general : Planetary Heightfields: Now what? : Re: bump_maps [Re: Planetary Heightfields: Now what?] Server Time
13 Aug 2024 13:19:04 EDT (-0400)
  Re: bump_maps [Re: Planetary Heightfields: Now what?]  
From: Ken
Date: 26 Sep 1998 20:49:26
Message: <360D7DAF.49BA531A@pacbell.net>
From what I see you are making you bump map to
big for the sphere size your using. Try a range between
0 - 1 to start with. Try the following and see if it makes
a difference:
  normal {
    bump_map {
       pgm "surfaces/jbrp.1.pgm"
         bump_size 0.5
            map_type 1 }
// scale <0,0,0,> // try adding scaling here
}

Also I believe the map_type 2 is cylindrical and not spherical.
Check the docs. The image you provided looks like it should
do something even if it's wrong. When I get off line I'll
take a closer look at it and will let you know if I find anything
that wll work for you.
    Please in the future post images like this in one of the
binaries groups. There are several people on this NG that
pay for their internet connection on a time basis and can't
afford to wait for your message to load. One of the Pov Team
members, who frequents this group, points this out regularly.

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


Post a reply to this message

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