POV-Ray : Newsgroups : povray.general : using a quad core linux box to speed up povray : Re: using a quad core linux box to speed up povray Server Time
31 Jul 2024 00:23:40 EDT (-0400)
  Re: using a quad core linux box to speed up povray  
From: Nicolas George
Date: 8 Mar 2008 10:13:57
Message: <47d2ad35@news.povray.org>
"Rahul"  wrote in message
<web.47d1f48ba2f2860c59eba08c0@news.povray.org>:
> foreach coordinate_file
>  parse coordinate_file into  frontview.pov
>  povray call to produce frontview.ppm
>  parse coordinate_file into topview.pov
>  povray call to produce topview.ppm
>  montage call to combine frontview.ppm and topview.ppm -> image.jpeg

With GNU-make-isms, you can do that with something like (untested):

%-front.pov: %.coords
	coords2front $< > $@

%-top.pov: %.coords
	coords2top $< > $@

%.pgm: %.pov:
	povray +I$<

%.jpg: %-front.pgm %-top.pgm
	montage ... $^ $@

Then "make -j 4 pretty.jpg ugly.jpg" should do the necessary work to build
two images using up to 4 processes in parallel.


Post a reply to this message

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