POV-Ray : Newsgroups : povray.newusers : Rendering voxel-style functions in Povray Server Time
5 Oct 2024 15:30:54 EDT (-0400)
  Rendering voxel-style functions in Povray (Message 11 to 13 of 13)  
<<< Previous 10 Messages Goto Initial 10 Messages
From: Christian Froeschlin
Subject: Re: Rendering voxel-style functions in Povray
Date: 13 Sep 2009 15:46:57
Message: <4aad4c31@news.povray.org>
twinbee wrote:

> Thanks. Until then, is there another 3D renderer I can try out which allows
> local vars and while loops inside functions like this?

Why do you need this? As far as I understand, you do not
actually have voxels as input data, but use functions. You
did not yet explain where the color values come from. If
you have a functional description for that, you can build
a function without a while loop and local variables. The
"select" statement will probably come in handy.

If you actually have independent color data for each voxel,
there are several alternatives:

Worst case, you can just create a bunch of boxes,
should still be possible with a suset of 100x100x100.

You could group the voxels according to color, i.e.,
write multiple df3 files (e.g. one for all red voxels,
one for all blue voxels, ...), assuming there are
not too many color shades.

It would be possible to build arbitrary blocky pigments
using while loops without using a function, by nesting
pigment_maps (i.e, define 10.000 gradient y pigments for
each "stack" of voxels using the voxel colors as color
map, then build slices using 100 gradient z pigments
using the stack-color_maps in a pigment_maps and
finally one gradient x pigment to bring it all
together).


Post a reply to this message

From: twinbee
Subject: Re: Rendering voxel-style functions in Povray
Date: 16 Sep 2009 17:25:00
Message: <web.4ab1573719a8cf54813aa4820@news.povray.org>
> > Thanks. Until then, is there another 3D renderer I can try out which allows
> > local vars and while loops inside functions like this?
>
> Why do you need this?

To create 3D fractals - in particular a 3D version of the
mandelbrot. Unfortunately, while loops are required here.
Here's one example of what I might produce (Rendered by Paul Nylander):

http://www.bugman123.com/Hypercomplex/Mandelbrot-White8-large.jpg


> As far as I understand, you do not
> actually have voxels as input data, but use functions. You
> did not yet explain where the color values come from.

I'm not so worried about the color as yet. Even
mono-hued would be good.


> Worst case, you can just create a bunch of boxes,
> should still be possible with a suset of 100x100x100.

I'm a little worried using voxels will be too slow,
or produce results which aren't satisfactory... (?)
1000 voxels cubed would be minimum I guess.


Post a reply to this message

From: clipka
Subject: Re: Rendering voxel-style functions in Povray
Date: 16 Sep 2009 17:56:33
Message: <4ab15f11$1@news.povray.org>
twinbee schrieb:
> I'm a little worried using voxels will be too slow,
> or produce results which aren't satisfactory... (?)
> 1000 voxels cubed would be minimum I guess.

Hum... that would be a Gigabyte or two even if you'd use a DF3 file.

Maybe it's time for POV-Ray to go for a truly voxel-based file format 
for density files. I wonder whether there are any simple non-proprietary 
file formats out there...

(*gets itchy fingers*)


Post a reply to this message

<<< Previous 10 Messages Goto Initial 10 Messages

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