POV-Ray : Newsgroups : povray.unofficial.patches : MegaPov & PVMPOV/MP-Pov Server Time
29 Jun 2024 00:15:44 EDT (-0400)
  MegaPov & PVMPOV/MP-Pov (Message 1 to 10 of 10)  
From: Daniel Genrich
Subject: MegaPov & PVMPOV/MP-Pov
Date: 21 May 2003 11:52:02
Message: <3ecba0a2@news.povray.org>
Hello!

I tried to work on a new version of "PvMegaPOV".
So I changed the code of Megapov and added the functions of PVMPOV to it.

Now I have a working version of MegaPOV with the PVM extension. It's working
but I'm wondering about one thing:

One of the new features of MegaPOV is presentated in "cloth.pov".
I tried to render it and figured out that the parsing and building the
".dat" 's are the most CPU-power-intensive things of the hole process.
Anyone have some idea/solution how to distribute it on different nodes? Is
there a possibility to do so? Rendering the "cloth.pov" would be really
faster if this would be possible.

MfG


Post a reply to this message

From: ABX
Subject: Re: MegaPov & PVMPOV/MP-Pov
Date: 21 May 2003 12:20:06
Message: <7s8ncv8e4f5331mhd0402tc3eeu8842ifq@4ax.com>
On Wed, 21 May 2003 17:52:00 +0200, "Daniel Genrich" <dan### [at] inventivesoftcom>
wrote:
> Anyone have some idea/solution how to distribute it on different nodes? Is
> there a possibility to do so? Rendering the "cloth.pov" would be really
> faster if this would be possible.

Christoph will be more accurate on this but AFAIK this kind of simulation can't
be parallelized by rendering different frames on different machines.  Simulation
is a highly sequential process, the calculations for each frame depend on those
from the frame before.

ABX


Post a reply to this message

From: Christoph Hormann
Subject: Re: MegaPov & PVMPOV/MP-Pov
Date: 21 May 2003 14:27:02
Message: <3ECBC4F5.8362AC47@schunter.etc.tu-bs.de>
Daniel Genrich wrote:
> 
> One of the new features of MegaPOV is presentated in "cloth.pov".
> I tried to render it and figured out that the parsing and building the
> ".dat" 's are the most CPU-power-intensive things of the hole process.
> Anyone have some idea/solution how to distribute it on different nodes? Is
> there a possibility to do so? Rendering the "cloth.pov" would be really
> faster if this would be possible.

Simulations like Clothray or Mechsim can be parallelized very well but you
have to do this on the level of the simulation loop.  Otherwise it will be
like trying to build a house's roof before the walls.  Of course parallel
calculations on this level will require a lot of communication between the
processes - the data will have to be synchronized after every simulation
step.  

Christoph

-- 
POV-Ray tutorials, include files, Sim-POV,
HCR-Edit and more: http://www.tu-bs.de/~y0013390/
Last updated 28 Feb. 2003 _____./\/^>_*_<^\/\.______


Post a reply to this message

From: Daniel Genrich
Subject: Re: MegaPov & PVMPOV/MP-Pov
Date: 22 May 2003 12:27:46
Message: <3eccfa82@news.povray.org>
Hello!

I'm just searching the code and wondering, why the function
"Iterate_Cloth_Simulation" -clothray.cpp- has two parameters instead of one.
I can't find, where the second one ("vector * resul") is used.
I need this to figure out, how and where I can try to parallelize the code.
("clothray.cpp" seems easier than "mechsim.cpp" to me for this ;-) )

Thank you for any information about this!


Post a reply to this message

From: ABX
Subject: Re: MegaPov & PVMPOV/MP-Pov
Date: 22 May 2003 12:42:50
Message: <pavpcvob747upg77h4lalbl4od4ek2vqql@4ax.com>
On Thu, 22 May 2003 18:27:43 +0200, "Daniel Genrich" <dan### [at] inventivesoftcom>
wrote:
> I'm just searching the code and wondering, why the function
> "Iterate_Cloth_Simulation" -clothray.cpp- has two parameters instead of one.
> I can't find, where the second one ("vector * resul") is used.
> I need this to figure out, how and where I can try to parallelize the code.
> ("clothray.cpp" seems easier than "mechsim.cpp" to me for this ;-) )

It is used in macro AccessResul (defined earlier) which is used in
Iterate_Cloth_Simulation. Otherwise no usage would be reported  by compilers
which I have set to highiest possible warning level to make sources warning
free.

ABX


Post a reply to this message

From: Christoph Hormann
Subject: Re: MegaPov & PVMPOV/MP-Pov
Date: 22 May 2003 12:53:54
Message: <3ECD00A1.1D2E3570@gmx.de>
Daniel Genrich wrote:
> 
> Hello!
> 
> I'm just searching the code and wondering, why the function
> "Iterate_Cloth_Simulation" -clothray.cpp- has two parameters instead of one.
> I can't find, where the second one ("vector * resul") is used.
> I need this to figure out, how and where I can try to parallelize the code.
> ("clothray.cpp" seems easier than "mechsim.cpp" to me for this ;-) )

In Clothray you can distribute the content the main double loop in
'Iterate_Cloth_Simulation()'.  But after every execution of the loop the
content of the position and velocity arrays have to be synchronized
between the nodes.  I doubt this would be efficient because this is a lot
of data and one simulation step does not take very long.

Mechsim can be handled similarly but i would suggest you wait for the next
version because there will be a change in the code structure (the
different integration methods will be in separate functions).

Christoph

-- 
POV-Ray tutorials, include files, Sim-POV,
HCR-Edit and more: http://www.tu-bs.de/~y0013390/
Last updated 28 Feb. 2003 _____./\/^>_*_<^\/\.______


Post a reply to this message

From: Daniel Genrich
Subject: Re: MegaPov & PVMPOV/MP-Pov
Date: 4 Jun 2003 13:39:46
Message: <3ede2ee2$1@news.povray.org>
*smile*  Take a look at line 333 in the file "parse.cpp" of Megapov.
----

imax = l;
    for(i = 1; i <= imax; i++)
    {

----

:-)


Post a reply to this message

From: ABX
Subject: Re: MegaPov & PVMPOV/MP-Pov
Date: 5 Jun 2003 04:08:01
Message: <o9utdvs9kbp6ladsprlnsrnjrubbqavalm@4ax.com>
On Wed, 4 Jun 2003 19:39:44 +0200, "Daniel Genrich" <dan### [at] inventivesoftcom>
wrote:
> *smile*  Take a look at line 333 in the file "parse.cpp" of Megapov.
> ----
>
> imax = l;
>   for(i = 1; i <= imax; i++)
>   {
>
> ----

Is this a joke ? I do not get it. Everything seems fine in these two lines, and
it is not MegaPOV specific, so ?

ABX


Post a reply to this message

From: Yvo Smellenbergh
Subject: Re: MegaPov & PVMPOV/MP-Pov
Date: 5 Jun 2003 11:29:50
Message: <1fw3ci0.16h7tva1k6gmq0N%yvos.s@gmx.net>
ABX <abx### [at] abxartpl> wrote:

> On Wed, 4 Jun 2003 19:39:44 +0200, "Daniel Genrich" <dan### [at] inventivesoftcom>
> wrote:
> > *smile*  Take a look at line 333 in the file "parse.cpp" of Megapov.
> > ----
> >
> > imax = l;
> >   for(i = 1; i <= imax; i++)
> >   {
> >
> > ----
> 
> Is this a joke ? I do not get it. Everything seems fine in these two
> lines, and it is not MegaPOV specific, so ?

There is nothing wrong here.
I guess he is reading imax = l ('el' L) as imax = 1 (one) :-)
This can happen with some fonts.

yvo


-- 
MacMegaPOV at:
http://users.skynet.be/smellenbergh

E-mail: yvo### [at] gmxnet


Post a reply to this message

From: Daniel Genrich
Subject: Re: MegaPov & PVMPOV/MP-Pov
Date: 5 Jun 2003 18:30:41
Message: <3edfc491@news.povray.org>
Thank you for the hint.
I was really wondering about some lines of the code..I better change the
font :-)

cu


Post a reply to this message

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