|
|
I've been trying to create a contact-lens-like object that is applied to the
outside of a superellipsoid. The idea is that I could make this "contact"
transparent like a decal on the outside of the superellipsoid. The
superellipsoids don't work well because when I use a difference between two
of them sections will disappear at certain angles. I switched to using
isosurface superellipsoids since (as I understand them) they are calculated
differently. I am using this code:
difference {
isosurface {function {-f_superellipsoid(x,y,z, 1,0.5)} scale
<0.5,0.5,0.3>}
isosurface {function {-f_superellipsoid(x,y,z, 1,0.5)} scale
<0.5,0.5,0.3> translate <0,0,0.001> }
cone {<0,0, 0.06>, 0.20 <0,0,-0.4>, 0.25}
box {<2,2,2>,<-2,-2,-0.17>}
pigment{Red}
rotate <0,0,0>
}
In this position the object looks correct. If I rotate the object 180
degrees (y axis) it seems to disappear. I am including a jpg example of
this happening. The left image is without rotation and the right 180
degrees on the y axis. Is this the same bug as a standard superellipsoid or
am I doing something wrong?
Post a reply to this message
Attachments:
Download 'ISSE.jpg' (136 KB)
Preview of image 'ISSE.jpg'
|
|
|
|
On Thu, 16 Jan 2003 20:30:30 -0600, Patrick Dugan wrote:
> Is this the same bug as a standard superellipsoid or
> am I doing something wrong?
Try raising your max_trace or use all_intersections. POV likes to save time
and not calculate past the first theoretical intersection of the shape
which breaks CSG intersections or differences. Raising this value should
fix it. all_intersections just means unlimited max_trace.
Post a reply to this message
|
|
|
|
That fixed it! Thanks for the help!
"Greg Edwards" <edw### [at] hotmailcom> wrote in message
news:14zmhc0d2ffcw$.4mt8ydkcyv4z$.dlg@40tude.net...
> On Thu, 16 Jan 2003 20:30:30 -0600, Patrick Dugan wrote:
>
> > Is this the same bug as a standard superellipsoid or
> > am I doing something wrong?
>
> Try raising your max_trace or use all_intersections. POV likes to save
time
> and not calculate past the first theoretical intersection of the shape
> which breaks CSG intersections or differences. Raising this value should
> fix it. all_intersections just means unlimited max_trace.
Post a reply to this message
|
|