|
|
> Before of making any change in my sourcecode, it would be useful if
> someone
> knew the answer to the first question: Why TRIANGLES version is faster
> than
> OBJECTS version? It should be something related to the povray internal
> parser.
Basically, triangles can be faster, because they can be put into
one mesh object.
Many objects usually end up slower, because then there needs to
be intersection tests against a large number of bounding boxes.
For comparison, I have a simple scene with two mesh objects
having about 10,000 triangles each (20k total) that renders
in 3 seconds on my 1.9G Athlon
--- include file ---
#declare Thing1 = mesh {
triangle {...}
triangle {...}
... etc
};
#declare Thing2 = mesh {
triangle {...}
triangle {...}
... etc
};
--- scene file ---
#include "somefile"
object{Thing1}
object{Thing2}
... and other stuff
Post a reply to this message
|
|