POV-Ray : Newsgroups : povray.binaries.images : Poor Man's Terragen Server Time
5 Nov 2024 00:27:05 EST (-0500)
  Poor Man's Terragen (Message 1 to 2 of 2)  
From: William Tracy
Subject: Poor Man's Terragen
Date: 28 Dec 2007 22:58:48
Message: <4775c5f8@news.povray.org>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Last quarter at school, I had to write a fractal terrain generator in
C++/OpenGL for an assignment.

This last week, I hacked on it to output to Pov. I now have a really
crummy random terrain generator with an OpenGL preview! :-)

The geometry is written as a Povray smooth mesh object. Even though the
program generates per-vertex colors, that information is thrown away
after the window is closed, and I color the terrain in Pov SDL.

I was getting ready to update the program to output mesh2's, but after
playing with some detail renders, I'm starting to wonder if I should
just go with bicubic patches. OTOH, I can easily just crank up the
polygon count of the terrain as needed. :-)

- --
William Tracy
afi### [at] gmailcom -- wtr### [at] calpolyedu

You know you've been raytracing too long when you have ever "Hard-Coded"
a bezier patch.
    -- Stephan Ahonen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHdcX2KrVIcTMekC8RAl5XAJ9uTd88/rMjbsvXkjQ8EUDVJ6MWcwCcD4IG
1u6f7oSKc7CPicqdhdFP4z8=
=DMk+
-----END PGP SIGNATURE-----


Post a reply to this message


Attachments:
Download 'render.jpg' (14 KB) Download 'screenshot.jpg' (22 KB) Download 'render.jpg.sig.dat' (1 KB) Download 'screenshot.jpg.sig.dat' (1 KB)

Preview of image 'render.jpg'
render.jpg

Preview of image 'screenshot.jpg'
screenshot.jpg

From: William Tracy
Subject: Re: Poor Man's Terragen
Date: 28 Dec 2007 23:23:45
Message: <4775cbd1$1@news.povray.org>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I just wanted to add:

1. Both of those images show the same chunk of terrain. There's some
coordinate system handedness issues going on, so the Povray render is a
mirror image of the OpenGL preview.

2. The program uses a spacial subdivision algorithm to generate the
terrain. Our very own Paul Burke has a decent description of the algorithm:
http://local.wasp.uwa.edu.au/~pbourke/modelling_rendering/planets/
(It's just below the blurb on generating planets.)

No doubt his implementation is significantly nicer than mine. :-)


- --
William Tracy
afi### [at] gmailcom -- wtr### [at] calpolyedu

You know you've been raytracing too long when when people ask you,
"What's up?", you reply "Y", and they say, "I was just wondering", and
you say, "well now you know". (Abbot and Costello at SIGGRAPH?)
    -- AmaltheaJ5
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHdcvRKrVIcTMekC8RAhd7AKDDskDoIQSheLJT0ZjxGWU3gZADMgCgm+b+
GNbNCmdyOgfB1BWPwbFBd2M=
=rEWt
-----END PGP SIGNATURE-----


Post a reply to this message

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