POV-Ray : Newsgroups : povray.newusers : Faster then f_heart : Re: Faster then f_heart Server Time
2 Nov 2024 17:19:01 EDT (-0400)
  Re: Faster then f_heart  
From: Mike Williams
Date: 22 Oct 2003 13:03:41
Message: <6ejipCAnGol$Ewrp@econym.demon.co.uk>
Wasn't it Brent G who wrote:
>Is there anything faster, but similar to, the function f_heart? It 
>causes redicioulous (sp?) rendering times, current @ 7 hours for 7 
>frames of a VERY simple scene (The Heart, some Water, 1 small box, and a 
>text difference taken out of the box)

Or you might consider building a heart shape from two half blobs. I'm no
blob expert, but I've managed to knock this together fairly quickly. It
could probably be considerably improved by adjusting some of the
numbers, particularly those defining the sphere components.


global_settings {assumed_gamma 1.0}
camera {location  <0,0,-3> look_at <0,0,0> angle 50}
background {rgb 1}
light_source {<-30, 100, -30> color rgb 1}

#declare Half = intersection {
  blob {
    threshold 0.9                       // tweak me
    sphere { < 0.3, 0.4, 0>, 1,1.2 }    // tweak me
    sphere { <-0.4,-0.4, 0>, 1.2,1.2 }  // tweak me
    //sturm
  }
  plane {-x,0}
}

#declare Heart = union {
    object {Half}
    object {Half scale <-1,0,0>}
  scale <1,1.15,0.5>                    // tweak me
}

object {Heart
  pigment {rgb <0.9,0.1,0.1>}
  finish {phong 1 phong_size 10}
}

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

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