POV-Ray : Newsgroups : povray.unofficial.patches : Two simple patchs for 3.5 ( adapted from 3.1 ) Server Time
1 Jul 2024 05:36:23 EDT (-0400)
  Two simple patchs for 3.5 ( adapted from 3.1 ) (Message 1 to 7 of 7)  
From: Dejan D  M  Milosavljevic
Subject: Two simple patchs for 3.5 ( adapted from 3.1 )
Date: 11 Jan 2003 10:52:27
Message: <3e203dbb@news.povray.org>
Sphere and plane acceleration.
Nothig special. Just warming for real one.
URL: http://www.ddmrm.com/graph/pov/pov_index.html

Dejan.


Post a reply to this message

From: Warp
Subject: Re: Two simple patchs for 3.5 ( adapted from 3.1 )
Date: 11 Jan 2003 11:54:41
Message: <3e204c51@news.povray.org>
Dejan D. M. Milosavljevic <pov### [at] ddmrmcom> wrote:
> Sphere and plane acceleration.
> Nothig special. Just warming for real one.
> URL: http://www.ddmrm.com/graph/pov/pov_index.html

  It would be nice if there was a description of what you have done and
some measurements (good measurements, not something like 3s to 2s "speedup").

-- 
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -


Post a reply to this message

From: Le Forgeron
Subject: Re: Two simple patchs for 3.5 ( adapted from 3.1 )
Date: 13 Jan 2003 03:58:16
Message: <3E228002.80505@free.fr>
Warp wrote:

> Dejan D. M. Milosavljevic <pov### [at] ddmrmcom> wrote:
> 
>>Sphere and plane acceleration.
>>Nothig special. Just warming for real one.
>>URL: http://www.ddmrm.com/graph/pov/pov_index.html
>>
> 
>   It would be nice if there was a description of what you have done and
> some measurements (good measurements, not something like 3s to 2s "speedup").
> 
> 

Looking at the zip file for 3.5 sphere (and the #ifdef in particular), 
he removed the length's adjustement of the depth for ellipsoid (removing 
two divisions), as well as the transformation also for ellipsoid from 
the object space to the world space (removing 2 Matrice.Vector products)

I have a feeling that either something else is missing or that the 
#ifdef part is bogus and asking for trouble with CSG.


Post a reply to this message

From: Le Forgeron
Subject: Re: Two simple patchs for 3.5 ( adapted from 3.1 )
Date: 13 Jan 2003 04:08:12
Message: <3E228253.4050808@free.fr>
Le Forgeron wrote:

> Warp wrote:
> 
>> Dejan D. M. Milosavljevic <pov### [at] ddmrmcom> wrote:
>>
>>> Sphere and plane acceleration.
>>> Nothig special. Just warming for real one.
>>> URL: http://www.ddmrm.com/graph/pov/pov_index.html
>>>
>>
>>   It would be nice if there was a description of what you have done and
>> some measurements (good measurements, not something like 3s to 2s 
>> "speedup").
>>
>>
> 
> Looking at the zip file for 3.5 sphere (and the #ifdef in particular), 
> he removed the length's adjustement of the depth for ellipsoid (removing 
> two divisions), as well as the transformation also for ellipsoid from 
> the object space to the world space (removing 2 Matrice.Vector products)
> 
> I have a feeling that either something else is missing or that the 
> #ifdef part is bogus and asking for trouble with CSG.
> 

Also, looking at the zip for plane, he removes all transformations 
matrix by adjusting instead the plane normal and origin instead (which 
make sense for an infinite plane with only rotate/scale/translate).
I'm nevertheless wondering if this could have a side effect on 
non-uniform texture. May be the plane patch is ok.
(Unless there is a way for a plane to first get a transformation, in 
which case the removed code was not dead enough).


Post a reply to this message

From: Warp
Subject: Re: Two simple patchs for 3.5 ( adapted from 3.1 )
Date: 13 Jan 2003 09:57:45
Message: <3e22d3e9@news.povray.org>
Still a set of speed tests would be nice. (And naturally extensive testing
that these modifications don't break anything.)

-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

From: Dejan D  M  Milosavljevic
Subject: Re: Two simple patchs for 3.5 ( adapted from 3.1 )
Date: 14 Jan 2003 16:15:48
Message: <3e247e04@news.povray.org>
Le Forgeron >...asking for trouble with CSG.
Right. No more sphere patch.


If  Plane->Trans is under exclusive control of plane functions:
Translate_Plane, Rotate_Plane, Scale_Plane, Invert_Plane, Transform_Plane
everything is OK.

And it must be, beacuase all transformation of an plane goes thru them.

Dejan


Post a reply to this message

From: Warp
Subject: Re: Two simple patchs for 3.5 ( adapted from 3.1 )
Date: 15 Jan 2003 09:17:44
Message: <3e256d88@news.povray.org>
Dejan D. M. Milosavljevic <pov### [at] ddmrmcom> wrote:
> everything is OK.

  The famous last words...


-- 
plane{-x+y,-1pigment{bozo color_map{[0rgb x][1rgb x+y]}turbulence 1}}
sphere{0,2pigment{rgbt 1}interior{media{emission 1density{spherical
density_map{[0rgb 0][.5rgb<1,.5>][1rgb 1]}turbulence.9}}}scale
<1,1,3>hollow}text{ttf"timrom""Warp".1,0translate<-1,-.1,2>}//  - Warp -


Post a reply to this message

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