Attached is a brute force but fast solution in good old POV utilising
intersection and bounded_by. (See comp.graphics.rendering.raytracing for
this thread.)
One quirk though: Nesting two bounding boxes one inside the other didn't
work quite as expected... The idea was to speed things up further if the
ray was just going to hit the side wall of one of the cylinders.
Something else to try to fathom...
Martin.
Edward Goldobin wrote:
>
> Hi folks,
>
> Two months ago I started to use POVRay and 1 week ago I ran
> into performance problem....I need to create a shape which
> is based on a difference of 2 coaxial cylinders. The axes of
[...]
> Then I subtract this pipe from my base shape (diff. of 2
> cylinders). I get the result, but it works SO SLOW!
>
> Any ideas how this can be accomplished more effectively?
>
> Thanx,
> Edward
--
----------------
Martin Lomas
mar### [at] ml1couk
----------------
Post a reply to this message
Attachments:
Download 'ml000915_gc04.pov.txt' (6 KB)
Download 'ml000915_gc04.jpg' (55 KB)
Preview of image 'ml000915_gc04.jpg'
|