POV-Ray : Newsgroups : povray.newusers : spherical heightfield Server Time
28 Nov 2024 05:58:07 EST (-0500)
  spherical heightfield (Message 1 to 4 of 4)  
From: Elias Pschernig
Subject: spherical heightfield
Date: 1 Aug 2001 12:36:35
Message: <3b683013@news.povray.org>
Is there something like that, maybe in megapov? I'd need something just like
a heightfield, but not mapped to a plane, but to a sphere. I found there is
spherical mapping for textures, so I thought maybe there is the same for
heightfields?

-- 
#macro C(X,Y)cylinder{X*x<X,0,-Y/2>.1}#end#macro U(R,X,Y)intersection{torus{.9
.1}box{-1 0rotate y*R*90}translate<X,0,Y>scale 1-z*.5}#end union{U(0,0,0)U(1,0
,0)U(2,-1,-1)U(1,1,0)U(1,1.5,-3)U(1,2,0)U(3,1,0)U(2,2,0)U(0,3,0)U(3,2,.5)C(.1,
2)C(.8,1)C(.8,-1)C(1.1,1)C(1.9,-1)pigment{rgb 10}rotate x*90translate<-1,0,4>}


Post a reply to this message

From: Christoph Hormann
Subject: Re: spherical heightfield
Date: 1 Aug 2001 12:47:14
Message: <3B683300.3D674C59@gmx.de>
Elias Pschernig wrote:
> 
> Is there something like that, maybe in megapov? I'd need something just like
> a heightfield, but not mapped to a plane, but to a sphere. I found there is
> spherical mapping for textures, so I thought maybe there is the same for
> heightfields?
> 

You can use an isosurface (slow) or generate a mesh within the povray code
using eval_pigment() for example.

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: Elias Pschernig
Subject: Re: spherical heightfield
Date: 1 Aug 2001 15:05:03
Message: <3b6852df@news.povray.org>
> You can use an isosurface (slow) or generate a mesh within the povray code
> using eval_pigment() for example.

Thanks, I'll have a look at eval_pigment() then.
 
-- 
#macro C(X,Y)cylinder{X*x<X,0,-Y/2>.1}#end#macro U(R,X,Y)intersection{torus{.9
.1}box{-1 0rotate y*R*90}translate<X,0,Y>scale 1-z*.5}#end union{U(0,0,0)U(1,0
,0)U(2,-1,-1)U(1,1,0)U(1,1.5,-3)U(1,2,0)U(3,1,0)U(2,2,0)U(0,3,0)U(3,2,.5)C(.1,
2)C(.8,1)C(.8,-1)C(1.1,1)C(1.9,-1)pigment{rgb 10}rotate x*90translate<-1,0,4>}


Post a reply to this message

From: Gilles Tran
Subject: Re: spherical heightfield
Date: 3 Aug 2001 03:50:17
Message: <3B6A57A4.414E7021@inapg.inra.fr>
Elias Pschernig wrote:

> Is there something like that, maybe in megapov? I'd need something just like
> a heightfield, but not mapped to a plane, but to a sphere. I found there is
> spherical mapping for textures, so I thought maybe there is the same for
> heightfields?

I have a demo here:
http://www.oyonale.com/ressources/english/sources09.htm

G.
--

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


Post a reply to this message

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