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)
|