POV-Ray : Newsgroups : povray.unofficial.patches : ANNOUNCE: Acceleration of Plane primitive Server Time
2 Sep 2024 16:22:06 EDT (-0400)
  ANNOUNCE: Acceleration of Plane primitive (Message 1 to 10 of 17)  
Goto Latest 10 Messages Next 7 Messages >>>
From: Dejan D  M  Milosavljevic
Subject: ANNOUNCE: Acceleration of Plane primitive
Date: 13 Apr 2000 08:35:32
Message: <38f5bf14@news.povray.org>
Entire source and test scenes at  -- Plane patch --  page  via
http://members.xoom.com/dmilos/prg/pov/mypovpage.htm

 Test no 0:

 Official:    Time For Trace:    0 hours  1 minutes  33.0 seconds
(93seconds)
 Patched : Time For Trace:    0 hours  1 minutes  30.0 seconds (90 seconds)
 Official:    Peak memory used:            87668 bytes
 Patched :  Peak memory used:            87597 bytes


 Test no 1:
 Official:   Time For Trace:    0 hours  1 minutes  53.0 seconds
(113seconds)
 Patched: Time For Trace:    0 hours  1 minutes  21.0 seconds (81 seconds)
 Official:   Peak memory used:           132958 bytes
 Patched:  Peak memory used:           127847 bytes

Any comment?!

--
***************************
      dmi### [at] xoommailcom
http://members.xoom.com/dmilos/
***************************


Post a reply to this message

From: Ron Parker
Subject: Re: ANNOUNCE: Acceleration of Plane primitive
Date: 13 Apr 2000 09:24:48
Message: <slrn8fbj1b.ivp.ron.parker@linux.parkerr.fwi.com>
>Any comment?!

This is a nice patch.  For those who haven't looked at it, Dejan has used the
fact that linear transformations always transform a plane to a plane
to remove the 'current transform' variable from the plane object, and
has updated the transformation functions to directly modify the normal
and distance of the plane as appropriate.  This means that the intersection,
inside, and normal functions can be marginally faster for untransformed
planes, and significantly faster for transformed planes.


Post a reply to this message

From: Peter Popov
Subject: Re: ANNOUNCE: Acceleration of Plane primitive
Date: 13 Apr 2000 17:48:19
Message: <fifcfs8diqum0iapiudcvp7j762sm9mup5@4ax.com>
On Thu, 13 Apr 2000 14:28:15 +0200, "Dejan D. M. Milosavljevic"
<dmi### [at] xoommailcom> wrote:

>Entire source and test scenes at  -- Plane patch --  page  via
>http://members.xoom.com/dmilos/prg/pov/mypovpage.htm

<snip>

>Any comment?!

Yes. I am not a programmer, but I must tell you I really respect your
work with these patches. Correct me if I'm wrong in thinking that the
real art of it seems to be in finding the right spot to correct and
then leaving everyone else slapping their foreheads asking themselves
how they haven't thought of that first :)

This plane patch is a really nifty one (now that Ron has explained
what you've done). Can a similar approach be taken for triangles? IIRC
the intersection point of the test ray and the plane of the triangle
is tested for insidedness using a lemma of one of Jordan's theorems.
This requires several steps of manipulating 3D vectors. Maybe if one
of the coordinates is stripped down (the triangle and intersection
point are projected on a coordinate plane), these calculations would
only require 2D vectors. Of course the right projecting plane should
be chosen.

What do you think? Is it worth the trouble?


Peter Popov ICQ : 15002700
Personal e-mail : pet### [at] usanet
TAG      e-mail : pet### [at] tagpovrayorg


Post a reply to this message

From: TonyB
Subject: Re: ANNOUNCE: Acceleration of Plane primitive
Date: 13 Apr 2000 20:26:57
Message: <38f665d1@news.povray.org>
Great! So I guess this one will become part of the official?


Post a reply to this message

From: TonyB
Subject: Re: ANNOUNCE: Acceleration of Plane primitive
Date: 13 Apr 2000 20:27:56
Message: <38f6660c@news.povray.org>
>Any comment?!


Just keep 'em comin', Dejan! :)


Post a reply to this message

From: Ron Parker
Subject: Re: ANNOUNCE: Acceleration of Plane primitive
Date: 13 Apr 2000 23:32:45
Message: <slrn8fd4sl.t3.ron.parker@linux.parkerr.fwi.com>
On Thu, 13 Apr 2000 19:24:57 -0400, TonyB wrote:
>Great! So I guess this one will become part of the official?

Hard telling.  There's the matter of getting permission from the
author, for one thing.  There's also the matter of my sig, which
I seem to have misplaced.  I don't speak for the POV-Team.


Post a reply to this message

From: TonyB
Subject: Re: ANNOUNCE: Acceleration of Plane primitive
Date: 14 Apr 2000 00:34:28
Message: <38f69fd4@news.povray.org>
>Hard telling.  There's the matter of getting permission from the
>author, for one thing.  There's also the matter of my sig, which
>I seem to have misplaced.  I don't speak for the POV-Team.


I never said anything about your sig. I just know that if something better
is out there, then it should become official. (With the author's permission,
of course, although I don't know why an author wouldn't want his work to
enter the official version.)


Post a reply to this message

From: Warp
Subject: Re: ANNOUNCE: Acceleration of Plane primitive
Date: 14 Apr 2000 03:21:39
Message: <38f6c702@news.povray.org>
On the other hand... How many times have you used a transformed plane?-)

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

From: Warp
Subject: Re: ANNOUNCE: Acceleration of Plane primitive
Date: 14 Apr 2000 03:32:45
Message: <38f6c99d@news.povray.org>
Peter Popov <pet### [at] usanet> wrote:
: Can a similar approach be taken for triangles?

  Why not? Transforming a triangle results in another triangle. The
transformation could be done by changing the vertices of the triangles at
parse time.

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

From: Bouf
Subject: Re: ANNOUNCE: Acceleration of Plane primitive
Date: 14 Apr 2000 05:32:24
Message: <38F6EA82.11E66228@nanterre.marelli.fr>
Warp wrote:
> 
>   On the other hand... How many times have you used a transformed plane?-)
> 

Is a rotated plane a transformed plane ???

If so, the answer is:
Many, in CSG difference or intersection...

Bouf.


Post a reply to this message

Goto Latest 10 Messages Next 7 Messages >>>

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