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
28 Apr 2024 02:35:25 EDT (-0400)
  Re: Need a way to make a semi random "landscape".  
From: Patrick Elliott
Date: 7 Oct 2010 19:38:50
Message: <4cae5a0a$1@news.povray.org>
On 10/7/2010 12:27 PM, Christian Froeschlin wrote:
> Patrick Elliott wrote:
>
>> Any idea why Thunderbird sometimes completely screws up some messages?
>> I had to go to the web view to see this at all, since the copy in
>> Thunderbird was completely empty...
>
> I see it fine in Thunderbird.
>
>> Planned to generate the test data in POV-Ray. And, no I don't really
>> have the coordinates *until runtime* either. The following is the test
>> code I used to get the general concept working
>
> considering you already use vb as a test environment you
> might try the following route to avoid reproducing everything
> in SDL
>
> 1. Use POV-Ray to generate a grey scale heigth image
> (not rendering a height_field, just using texture
> to define terrain elevation). For testing purposes,
> you can skip this step and use handpainted data or
> terrain generated, e.g., from World machine.
>
> 2. Create a Bitmap object in your VB App. When determining
> the height of the ground over a position, use Bitmap.GetPixel
> to get the heigth information (rounding to the nearest pixel
> value may ok, otherwise, evaluate the four surrounding pixels
> and calculate the weighted average).
>
> 3. At the end of your algorithm, write an include file containing
> a union of spheres for the generated objects.
>
> 4. Render a POV-Ray scene containing a height_field based on
> the image and your exported spheres.
Hmm. Interesting idea. Mind, I was using QBasic, but not hard to 
convert, and definitely easier to edit. lol Need to think about that 
possibility.

-- 
void main () {

     if version = "Vista" {
       call slow_by_half();
       call DRM_everything();
     }
     call functional_code();
   }
   else
     call crash_windows();
}

<A HREF='http://www.daz3d.com/index.php?refid=16130551'>Get 3D Models, 
3D Content, and 3D Software at DAZ3D!</A>


Post a reply to this message

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