POV-Ray : Newsgroups : povray.binaries.images : Bocce - WIP : Re: Bocce - WIP Server Time
20 Jul 2024 00:31:57 EDT (-0400)
  Re: Bocce - WIP  
From: Chris R
Date: 24 Jun 2024 17:10:00
Message: <web.6679e0892d85bd694d6accde5cc1b6e@news.povray.org>
"Bald Eagle" <cre### [at] netscapenet> wrote:
> "Chris R" <car### [at] comcastnet> wrote:
>
>
> > Second note:  my version is 10X slower than Quilez version!
>
> Yes, considering that you were assembling a big, piecewise function, that's not
> surprising.
>
> But also I.Q. is kind of known for trimming things down to the very barest
> minimum and optimizing for speed, so he's always a good reference.
>
> > So, I will be replacing my version with the Quilez version in my code library,
> > and updating the library with all of the shapes from the article over time.
>
> Good idea - I'm sure it will speed thing up immensely, and there's always
> something new to learn.
>
> > There is a little work in the porting, because POV-Ray functions don't take
> > vector arguments, so you have to unroll all of the vectors as x,y,z parameters,
>
> Tell.
> Me.
> About it.
>
> Maybe you can write a macro or something to help with the unrolling to make
> things more efficient.
>
> - BW

If anyone is interested, you can find my "libisoshapes.inc" file that includes
implementations of most of the code from the Quilez article at
https://github.com/carath63/povlibrary

-- Chris R


Post a reply to this message

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