POV-Ray : Newsgroups : povray.binaries.images : isosurface heart Server Time
15 Nov 2024 08:21:22 EST (-0500)
  isosurface heart (Message 1 to 7 of 7)  
From: Alex Kluchikov
Subject: isosurface heart
Date: 22 Aug 2003 14:10:53
Message: <1103_1061579434@news.povray.org>
Once I needed a heart. It was something like a St.Valentine's day. I looked through
Internet, found some, bit didn't like any. So, now there is one more heart object in
Internet.
 The source of object is here.

//----------- Isosurface heart

#declare heart=
isosurface{
 function{
 
sqrt(pow(x*2.5,2)+z*z+pow(abs(y*1.1-0.8*sqrt(sqrt(z*z+pow(x/2,2)/(pow(abs(y+1.4),4)+0.001)))),2))-1
 }
 accuracy 0.005
 max_gradient 5
 contained_by{box{-1.4,1.4}}
 texture{pigment{color red 1.4 green 0.3}finish{diffuse 1 specular 0.5 phong 1
phong_size 45}}
}      

//-----------

Sincerely Yours, Alex Kluchikov.


Post a reply to this message


Attachments:
Download 'heart.jpg' (29 KB)

Preview of image 'heart.jpg'
heart.jpg


 

From: Alf Peake
Subject: Re: isosurface heart
Date: 22 Aug 2003 15:37:14
Message: <3f4670ea@news.povray.org>
Nice.
Have you seen f_heart in functions.inc?

Alf


Post a reply to this message

From: Alex Kluchikov
Subject: Re: isosurface heart
Date: 22 Aug 2003 17:45:00
Message: <web.3f468e2b8f42f3218f329ca0@news.povray.org>
Alf Peake wrote:
>Nice.
>Have you seen f_heart in functions.inc?

 Yes,already :) But have not 2 years ago, when it was done.
I do not pity of that wonderful piece of work. Especially because I like
mine more than f_heart.

Sincerely Yours, Alex Kluchikov.


Post a reply to this message

From: Rafal 'Raf256' Maj
Subject: Re: isosurface heart
Date: 22 Aug 2003 18:33:52
Message: <Xns93E05BF460FAraf256com@204.213.191.226>
klk### [at] ukrnet news:web.3f468e2b8f42f3218f329ca0@news.povray.org

> I do not pity of that wonderful piece of work. Especially because I like
> mine more than f_heart.

I also - the oryginal f_heart has an "bug" - horizontal line (very thin, 
visible at about 640*480) in middle, with dissapears ony with extremly high 
accuracy / max_gradient settings, with results in long render times.

-- 
#macro g(U,V)(.4*abs(sin(9*sqrt(pow(x-U,2)+pow(y-V,2))))*pow(1-min(1,(sqrt(
pow(x-U,2)+pow(y-V,2))*.3)),2)+.9)#end#macro p(c)#if(c>1)#local l=mod(c,100
);g(2*div(l,10)-8,2*mod(l,10)-8)*p(div(c,100))#else 1#end#end light_source{
y 2}sphere{z*20 9pigment{function{p(26252423)*p(36455644)*p(66656463)}}}//M


Post a reply to this message

From: Alf Peake
Subject: Re: isosurface heart
Date: 23 Aug 2003 14:48:22
Message: <3f47b6f6@news.povray.org>
> I do not pity of that wonderful piece of work. Especially because I
> like mine more than f_heart.

I like yours better too.

Alf


Post a reply to this message

From: SeeSchloss
Subject: Re: isosurface heart
Date: 23 Aug 2003 15:30:03
Message: <3f47c0bb$1@news.povray.org>
But... how can you find how to make such isosurfaces ??


Post a reply to this message

From: Alex Kluchikov
Subject: Re: isosurface heart
Date: 24 Aug 2003 04:45:00
Message: <web.3f487aaa8f42f3213da88f510@news.povray.org>
SeeSchloss wrote:
>But... how can you find how to make such isosurfaces ??

 A lot of tries... A great number of faults...
 Actually, I always start modeling of isosurface objects from the sphere.
 x*x+y*y+z*z-1
 then deform it with some functions, for example, add
 1/(x*x+z*z+.1) to get funnel-shaped hole and so on.
 Try everything.
 The heart took 3 days to model...

 In next posts I'll put some more isosurface examples.

 Sincerely Yours, Alex Kluchikov.


Post a reply to this message

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