POV-Ray : Newsgroups : povray.general : Isosurfaces in v3.5 and how to convert them to heightfields? : Re: Isosurfaces in v3.5 and how to convert them to heightfields? Server Time
31 Jul 2024 16:22:32 EDT (-0400)
  Re: Isosurfaces in v3.5 and how to convert them to heightfields?  
From: Gilles Tran
Date: 9 Oct 2001 17:20:57
Message: <3bc36a39$1@news.povray.org>

3bc31497@news.povray.org...
> But I mostly get a black result. The form is only recognizeable if I use 5
> or 6 steps istead of 255.. What's wrong, and are there more clever ways?

Why not just use a simple gradient ? Something like this (untested, but
that's the idea) :
#declare BMin=...
#declare BMax=...
isosurface{
    function{...}
    contained_by{box{BMin,BMax}}
    pigment{
        gradient y
        scale BMax.y-BMin.y
        translate BMin.y*y
    }
}

G.
--

**********************
http://www.oyonale.com
**********************
Graphic experiments
Pov-ray gallery


Post a reply to this message

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