|
![](/i/fill.gif) |
"Anthony D. Baye" <Sha### [at] spamnomore hotmail com> wrote:
> I'm working on a small experiment with 3d color-space, and it seems to be
> working perfectly, it renders beautifully, but when it saves, the png files have
> a truncated color table. It's quite distressing.
>
> I've had no obvious trouble with other renders.
>
> Also, my jpeg output seems to be broken, and the render results are completely
> different in windows 7.
POV can read jpeg for image maps, but it doesn't use jpeg as an output format,
due to the lossy compression.
> I ran the same scene under both Windows and Linux using the same settings each
> time +a0.3 +FN24 +W800 +H600
>
The +FN24 should be +FN8 or just +FN for a 24 bit PNG; the number refers to the
bits per colour.
See http://www.povray.org/documentation/view/3.6.1/219/
> #declare r = function(x,y,z,rho) { rho*cos(atan(y/x))*sin(acos(z/sqrt(x*x +
> y*y))) }
> #declare g = function(x,y,z,rho) { rho*sin(atan(y/x))*sin(acos(z/sqrt(x*x +
> y*y))) }
> #declare b = function(x,y,z,rho) { rho*cos(acos(z/sqrt(x*x + y*y))) }
I'm curious as to why you're using trig functions here. An algebraic approach
using basic trig identities will speed things up enormously. See the Mandelbulb
C code I posted recently in the "Accidental Isosurface" thread, which shows how
to do the same functions as you require, but with no trig functions.
Post a reply to this message
|
![](/i/fill.gif) |