|
|
emp### [at] cchutfi news:oprzyrtszv0x9foi@news.povray.org
> The sturmian root solver could also help, but it can't be used (stated
> in the doc 6.5.1.11 Superquadric Ellipsoid).
Btw, I suggest to create a macro that will i.e. generate smooth-mesh
imitating superquadric ellipsoids.
Why? I think that this object implementation is broken:
1) it renders terrible slow (about 10-20 times slower then i.e. torus)
especialy when pov must calculate intersections with it
2) it very often had problems/artifacts like mentioned above
3) both things get worse when using supperellipsoid in CSG
--
#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
|
|