POV-Ray : Newsgroups : povray.newusers : DNA creation help? : Re: DNA creation help? Server Time
30 Jul 2024 02:17:56 EDT (-0400)
  Re: DNA creation help?  
From: Mike Williams
Date: 24 Oct 2004 20:48:48
Message: <1Dqe$HAo1EfBFwh0@econym.demon.co.uk>
Wasn't it Oleguer Vilella who wrote:
>Why it doesn't work?
>
>===================================
>#include "functions.inc"
>#include "colors.inc"
>
>camera {
>  location  <7, 25, -20>
>  look_at   <5, 3.0,  0.0> }
>
>light_source { <-100,200,-100> colour rgb 1 }
>background { White }
>
>isosurface {
>function {  f_helix1 (1, 1, 1, 2, 3, 4, 5, 0.1, 1, 25) }
>        max_gradient 1.5
>        contained_by {sphere {0, 1.2} }
>        pigment {rgb .9}
>}
>==================================

The main reason is that you're only evaluating a single point of the
function. You should say "f_helix1 (x,y,z..." not "f_helix1 (1,1,1..."

You'll also need to increase your max_gradient to about 6.

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

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