POV-Ray : Newsgroups : povray.advanced-users : Triangles faster than objects : Triangles faster than objects Server Time
8 Jul 2024 19:15:04 EDT (-0400)
  Triangles faster than objects  
From: JSR
Date: 17 May 2007 11:45:01
Message: <web.464c7756a93451f1d8ef73430@news.povray.org>
Hello,
With my last render I noticed that if you render a scene which is divided in
triangles the render time is better than if you render the same scene
divided in objects.

For example, supose a scene formed by 50 objects with 100 triangles each
one:.

//---------------------------------------------------------------------------
//TRIANGLES version:
//---------------------------------------------------------------------------
//5000 triangles = 5000 mesh2
union{
  //Triangle 1
  mesh2 { [..] }
  //Triangle 2
  mesh2{  [..] }
  [...]
  //Triangle 5000
  mesh2{  [..] }
}
//---------------------------------------------------------------------------
//OBJECTS version:
//---------------------------------------------------------------------------
//50 objects = 50 mesh2
  mesh2{ [..] } //Object 1
  mesh2{ [..] } //Object 2
  [...]
  mesh2{ [..] } //Object 50
//---------------------------------------------------------------------

The TRIANGLES version has took 6 minutes to finish the render, while the
OBJECTS version has took 8 minutes.

Any comments?

Regards,

Joel.


Post a reply to this message

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