POV-Ray : Newsgroups : povray.newusers : How do I make a Hightfield with an Isosurface? Server Time
13 Nov 2024 07:26:03 EST (-0500)
  How do I make a Hightfield with an Isosurface? (Message 1 to 5 of 5)  
From: Marc-Hendrik Bremer
Subject: How do I make a Hightfield with an Isosurface?
Date: 6 Jan 2001 08:36:44
Message: <3a571f6c@news.povray.org>
Hi!

I'm trying to make sort of an relief from a picture. It works okay as an
Hightfield, but I want to give it some additional structures. So I try to
make an Isosurface out of the image using a pigment-function with an
image_map. For some reason it does not work.
It is probably nothing difficult, but I can't get it. I bet it's one of
those "orientation in 3D"-mistakes, but I tried quiet a few things and get


This is my pigment:
#declare HundFN=
function{
    pigment{
       image_map{
         png "Hund-Hf.png" // the file to read (iff/gif/tga/png/sys)
         map_type 0 // 0=planar, 1=spherical, 2=cylindrical, 5=torus
         interpolate 2 // 0=none, 1=linear, 2=bilinear, 4=normalized
distance
         once
       } // image_map
    rotate x*-90
    }
}

and my function-call in the isosurface:
isosurface {
     function { z
                -0.5*(HundFN((x)/20,(y)/20,0))
              }

     method 2
     eval
     accuracy 0.001
     contained_by{box {<-10.1,-10.1,-1.5>,<10.1,10.1,1.5>}}
     texture{
        pigment{rgb 1}
     }
 }

What am I doing wrong?

Thanks,

Marc-Hendrik


Post a reply to this message

From: Marc-Hendrik Bremer
Subject: Re: How do I make a Hightfield with an Isosurface?
Date: 6 Jan 2001 08:55:20
Message: <3a5723c8@news.povray.org>
Sorry , got it myself. I won my bet :-)

Thanks anyway,

Marc-Hendrik


Post a reply to this message

From: Gilles Tran
Subject: Re: How do I make a Hightfield with an Isosurface?
Date: 6 Jan 2001 08:56:22
Message: <3A57249E.3EE4029A@inapg.inra.fr>
Marc-Hendrik Bremer wrote:

> What am I doing wrong?

The rotation is wrong (your hf is pointing downwards) and the base function
should be y instead of z.
Try this instead :
#declare HundFN=function{pigment{image_map{png "Hund-Hf.png"}rotate x*90}}
isosurface {
     function { y - 0.5*HundFN(x,y,z)}
     contained_by{box {0,1}}
     pigment{rgb 1}
     translate <-0.5,0,-0.5>
     scale <3,1,3>
}

G.


--

**********************
http://www.oyonale.com
**********************
Graphic experiments
Pov-ray gallery


Post a reply to this message

From: Christoph Hormann
Subject: Re: How do I make a Hightfield with an Isosurface?
Date: 6 Jan 2001 09:11:34
Message: <3A572795.7668A0B2@gmx.de>
Marc-Hendrik Bremer wrote:
> 
> Sorry , got it myself. I won my bet :-)
> 
> Thanks anyway,
> 
> Marc-Hendrik

Well, in such cases it often helps me to use the same pigment for the
texture, you immediately get a better idea of the problem.

Christoph

-- 
Christoph Hormann <chr### [at] gmxde>
IsoWood include, radiosity tutorial, TransSkin and other 
things on: http://www.schunter.etc.tu-bs.de/~chris/


Post a reply to this message

From: Marc-Hendrik Bremer
Subject: Re: How do I make a Hightfield with an Isosurface?
Date: 6 Jan 2001 09:14:02
Message: <3a57282a@news.povray.org>
Thanks Gilles!

You are faster than light :-)
I removed my rotation, left the base function the way it is and added the
image-function, cause I want the HF in the z plane. But that makes no real
difference, I think.

Marc-Hendrik


Post a reply to this message

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