POV-Ray : Newsgroups : povray.advanced-users : Height field mapping onto a sphere using hf_sphere Server Time
24 Nov 2024 01:58:55 EST (-0500)
  Height field mapping onto a sphere using hf_sphere (Message 1 to 3 of 3)  
From: Jim O'Donnell
Subject: Height field mapping onto a sphere using hf_sphere
Date: 8 Apr 2010 17:40:00
Message: <web.4bbe4d0c9b215770909a82220@news.povray.org>
I'm sure folks have asked this many a time, but I am stuck. All (!) I want to do
is wrap a height field around a sphere to make a planet-like object. I can make
a successful height field object no problem, but am stalled completely on
getting the hf_sphere bit to work.

Any clues/examples?

Many thanks in advance.


Post a reply to this message

From: Warp
Subject: Re: Height field mapping onto a sphere using hf_sphere
Date: 9 Apr 2010 01:57:02
Message: <4bbec1ae@news.povray.org>
Jim O'Donnell <nomail@nomail> wrote:
> I'm sure folks have asked this many a time, but I am stuck. All (!) I want to do
> is wrap a height field around a sphere to make a planet-like object. I can make
> a successful height field object no problem, but am stalled completely on
> getting the hf_sphere bit to work.

> Any clues/examples?

  HF_Sphere only takes a user-defined function as parameter. Perhaps
someone should make a version which takes an image file name as parameter
in order to make it easier to create a spherical heightfield from an image
file.

  The process itself goes like:

  You create a pigment function (a function containing a pigment), and the
pigment should have your image as an image_map. You create another function
which calls that pigment function and chooses one of its components, or the
'gray' component, depending on what you want to do (ie. something like
#declare HFFunction = function { that_pigment_function(x,y,z).x };) Then
you give that as parameter to HF_Sphere.

-- 
                                                          - Warp


Post a reply to this message

From: Jim O'Donnell
Subject: Re: Height field mapping onto a sphere using hf_sphere
Date: 9 Apr 2010 04:35:01
Message: <web.4bbee683568ea158571539a40@news.povray.org>
That sounds like a plan - I'll give it a go. Many thanks Warp!


Post a reply to this message

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