POV-Ray : Newsgroups : povray.newusers : problems using clipped_by : problems using clipped_by Server Time
31 Jul 2024 04:23:24 EDT (-0400)
  problems using clipped_by  
From: spl
Date: 2 Jan 2003 14:15:04
Message: <web.3e148eba32b2214528b61af20@news.povray.org>
I'm getting some unexpected (at least by me) results using the "clipped_by"
operator in POVray.

Specifically, when I clip triangle mesh objects, I get empty spaces where
I believe I should be getting objects.  It is as if the ray is terminated
by the clipped off part of the object and background color is rendered.

For instance, I rendered a simple open-ended cylinder using an OpenGL-based
application (screen grab at
ftp://ncmir.ucsd.edu/outgoing/spl/sv_cylinder.gif)
and with POVray (ftp://ncmir.ucsd.edu/outgoing/spl/pov_cylinder.gif).

Then I moved in the front clipping plane and rendered again,

 ftp://ncmir.ucsd.edu/outgoing/spl/sv_clipped_cylinder.gif

and

 ftp://ncmir.ucsd.edu/outgoing/spl/pov_clipped_cylinder.gif

show the OpenGL and POVray results, respectively.

The POVray scripts and the mesh file may be found at

 ftp://ncmir.ucsd.edu/outgoing/spl/pov_cylinder

 ftp://ncmir.ucsd.edu/outgoing/spl/pov_clipped_cylinder

and

 ftp://ncmir.ucsd.edu/outgoing/spl/cyl_synu.pov

The files are a bit ugly since they're machine generated but should be
fairly self explanatory.  The "clipped_by" operators are invoked at about
line 536 in both files.  The __far_clip is outside the bounding box of the
object.

Does "clipped_by" only work with non-mesh type objects?

Any clues or RTFMs welcome.

       spl


Post a reply to this message

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