POV-Ray : Newsgroups : povray.binaries.images : Display problem ~135k Server Time
16 Nov 2024 16:16:22 EST (-0500)
  Display problem ~135k (Message 1 to 3 of 3)  
From: Patrick Dugan
Subject: Display problem ~135k
Date: 16 Jan 2003 21:30:46
Message: <3e276ad6@news.povray.org>
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'
ISSE.jpg


 

From: Greg Edwards
Subject: Re: Display problem ~135k
Date: 17 Jan 2003 00:11:22
Message: <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

From: Patrick Dugan
Subject: Re: Display problem ~135k
Date: 17 Jan 2003 08:31:41
Message: <3e2805bd@news.povray.org>
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

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