POV-Ray : Newsgroups : povray.advanced-users : How To make a Infinitine terrain ? Server Time
25 Nov 2024 03:51:27 EST (-0500)
  How To make a Infinitine terrain ? (Message 1 to 6 of 6)  
From:  Light Beam 
Subject: How To make a Infinitine terrain ?
Date: 13 Sep 2003 13:34:18
Message: <3f63551a$1@news.povray.org>
This is the code (and my problem)  :-(

sky_sphere {pigment {gradient y color_map { [0.0 color rgb <0.7,0.7,1.0>]
[1.0 color blue 0.5]}}}

light_source {<400.0, 700.0, -200.0>1.0}

camera {location <0.0, 1.0, -5.0> look_at <0.0, 0.4, 0.0>}

#declare f1 = function {pattern {bozo scale 2.0 turbulence 0.5 scale 0.1}}

isosurface {function{y - f1(x, y, z)*0.2}
        accuracy 0.0001
        max_gradient 3.0
        pigment {rgb <0.8, 0.8, 0.75>}
        scale <10.0, 10.0, 10.0>
        translate -y*2.0
        }

How can I make it a (pseudo) infinite plane (terrain...) without loss of
quality due to the pattern scalling (if I scale the isosurface, the pattern
functions is scalled to...)
I just want to make terrains like Christoph Hormann does ("The landscape of
the week")
Thanks.


Post a reply to this message

From: Slime
Subject: Re: How To make a Infinitine terrain ?
Date: 13 Sep 2003 13:55:58
Message: <3f635a2e@news.povray.org>
> How can I make it a (pseudo) infinite plane (terrain...) without loss of
> quality due to the pattern scalling (if I scale the isosurface, the
pattern
> functions is scalled to...)


Modify the contained_by box (check the documentation for more info). You
can't make it infinite, but you can make it big enough that the difference
isn't noticeable from a relatively shallow viewpoint.

 - Slime
 [ http://www.slimeland.com/ ]


Post a reply to this message

From: Christoph Hormann
Subject: Re: How To make a Infinitine terrain ?
Date: 13 Sep 2003 13:57:28
Message: <d85c31-6jr.ln1@triton.schunter.etc.tu-bs.de>
_Light_Beam_ wrote:
> [...]
> 
> How can I make it a (pseudo) infinite plane (terrain...) without loss of
> quality due to the pattern scalling (if I scale the isosurface, the pattern
> functions is scalled to...)

You just have to use an appropriate container object.  The default one is:

contained_by { box { -1, 1 } }

and you probably want something like:

contained_by { box { <-100, -0.1, -100>, <100, 1, 100> } }

> I just want to make terrains like Christoph Hormann does ("The landscape of
> the week")

:-)

Christoph

-- 
POV-Ray tutorials, include files, Sim-POV,
HCR-Edit and more: http://www.tu-bs.de/~y0013390/
Last updated 17 Jun. 2003 _____./\/^>_*_<^\/\.______


Post a reply to this message

From:  Light Beam 
Subject: Re: How To make a Infinitine terrain ?
Date: 13 Sep 2003 14:01:34
Message: <3f635b7e@news.povray.org>
> > I just want to make terrains like Christoph Hormann does ("The landscape
of
> > the week")
>
> :-)




Post a reply to this message

From:  Light Beam 
Subject: Re: How To make a Infinitine terrain ?
Date: 13 Sep 2003 14:23:01
Message: <3f636085@news.povray.org>
Ok, that's works ! Thanks


Post a reply to this message

From: Rick [Kitty5]
Subject: Re: How To make a Infinitine terrain ?
Date: 14 Sep 2003 06:02:14
Message: <3f643ca6$1@news.povray.org>
Slime wrote:
> Modify the contained_by box (check the documentation for more info).
> You can't make it infinite, but you can make it big enough that the
> difference isn't noticeable from a relatively shallow viewpoint.

Add perfect mirrors at the boundries

-- 
Rick

Kitty5 NewMedia http://Kitty5.com
POV-Ray News & Resources http://Povray.co.uk
TEL : +44 (01270) 501101 - ICQ : 15776037

PGP Public Key
http://pgpkeys.mit.edu:11371/pks/lookup?op=get&search=0x231E1CEA


Post a reply to this message

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