POV-Ray : Newsgroups : povray.unofficial.patches : Superellipsoid speedup : Superellipsoid speedup Server Time
25 Apr 2024 17:01:51 EDT (-0400)
  Superellipsoid speedup  
From: Ben Birdsey
Date: 21 Aug 2002 13:45:29
Message: <3D63D0C0.A71839FC@mail.com>
Hi all,

I stumbled onto this improvement because of the Internet Movie Project
(IMP).  The bridge of their major set is composed of an intersection of
two ellipsoids and was rendering really, really slow.

So, I checked the 3.1g code and found that the intersection code was
using a mixture of bisection method and secant method to solve for the
intersection.  The problem I saw was that it was calculating the
solution using both methods and then throwing away one of the solutions
without looking to see if it was better!

After fixing that I got about a 66% increase in rendering speed on the
superellipsoid demo scene, and a similar increase on the IMP rendering.

I'm including the modified source file as an attachment.

I hope this helps,
Ben


Post a reply to this message


Attachments:
Download 'super.cpp.txt' (32 KB)

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