POV-Ray : Newsgroups : povray.general : Need a way to make a semi random "landscape". : Re: Need a way to make a semi random "landscape". Server Time
27 Apr 2024 12:45:11 EDT (-0400)
  Re: Need a way to make a semi random "landscape".  
From: Christian Froeschlin
Date: 6 Oct 2010 16:12:14
Message: <4cacd81e$1@news.povray.org>
Patrick Elliott wrote:

> Well, I suppose I could constrain the area to test to a space within Y = 
> 0 -> 255, Y = 0 -> 255, for sake of getting results. The problem with 
> trying to store the coordinates, instead of using something like trace, 
> is the object I am placing "may" land some place better the grid points. 
> Storing 65356 points is bad enough, without having to subdivide that by 
> some fraction as well.

Of course, you can also use the trace function with a height_field
to take care of the correct interpolation between grid points. Just
use #declare POS = trace(TERRAIN,<px,100,pz>,-y)

> Like I said, I already have code I wrote to generate my points, I just 
> can't "visualize" the result, or really test it visually in the 
> environment I want to use it in.

If you already have coordinates, you can use them directly to
generate 3d objects in POV Ray, e.g., by writing an SDL include
file from your Basic program containing an array of coordinates
or a union of spheres.

What kind of sample data do you already have to test your
algorithm in Basic? Do you already have a 3d "terrain"? Or
do you wish to generate test data in POV-Ray?


Post a reply to this message

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