POV-Ray : Newsgroups : povray.text.scene-files : Random Space Scene Generator (prototype A) Server Time: 17 Jun 2019 13:18:43 GMT
  Random Space Scene Generator (prototype A) (Message 1 to 1 of 1)  
From: RobF
Subject: Random Space Scene Generator (prototype A)
Date: 1 Jun 2011 05:45:00
Message: <web.4de5d1a2c75285f87ab7c0b80@news.povray.org>
Hi,

I've been working on a random space scene generator. The first prototype is
attached.

I've been drawing space scenes for a while (10 years!) in POV-Ray, but I
recently wanted a way to randomly generate and position the objects in the
scene.

This version draws distant stars, nebulae and planets. The stars are hundreds or
thousands of spheres, the nebulae and planets are textured using built-in stone
and granite textures. It's best to override the textures that have a high
ambient value. All the scene elements are controlled using random seeds.
Consequently, the composition isn't always great, but it renders very quickly.

I've disabled the asteroids, suns and lens effects (flares, glows, lens dust,
etc.) for now. They're mostly based on Chris Colefax's awesome lens flare
plugin, but it's giving me some problems when multiple effects are present.
Without these effects the scenes become a bit boring and dark. :-(

There's a single global variable called randomizer, that will randomize all the
other parameters. To get a completely different scene, you can just change the
randomizer value. In the attached scene, I based randomizer on "clock" so it
will generate a bunch of random scenes. (See comments in the code).

The code is still a mess, as I'm still experimenting with stuff. Anyways, feel
free to experiment/modify the scene and post your feedback and your pictures.

Happy raytracing,

Rob.
---
Rob Fitzel
www.fitzel.ca/dart


Post a reply to this message


Attachments:
Download 'asterisk_prototypea.zip' (6 KB)

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