|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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'
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Nice.
Have you seen f_heart in functions.inc?
Alf
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
> 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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
But... how can you find how to make such isosurfaces ??
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |