POV-Ray : Newsgroups : povray.general : Mesh2 Format Description? Server Time
20 Nov 2024 10:16:46 EST (-0500)
  Mesh2 Format Description? (Message 1 to 4 of 4)  
From: Cris Williams
Subject: Mesh2 Format Description?
Date: 4 Oct 2001 20:06:07
Message: <3bbcf96f@news.povray.org>
Where can I find a comprehensive description of the mesh2 format?  I'm
toying with the idea of writing some code to create mesh objects.  Also,
supposing that I had a PC with 256Mb memory, what (roughly) is the upper
limit for the number of triangles that can be handled by Pov?  I know this
may not be simple to answer, but I am trying to get an idea of the
feasibility of creating large, detailed scenes out of mesh2 objects.  I'm
under the impression that meshes render fairly quickly compared to complex
csg objects.  Or am I way off?

Cris Williams


Post a reply to this message

From: Warp
Subject: Re: Mesh2 Format Description?
Date: 4 Oct 2001 20:49:24
Message: <3bbd0394@news.povray.org>
Cris Williams <wor### [at] netscapenet> wrote:
: Where can I find a comprehensive description of the mesh2 format?

  In the POV-Ray (3.5) documentation.

: I'm
: under the impression that meshes render fairly quickly compared to complex
: csg objects.  Or am I way off?

  This depends on the objects.
  If you create, for example, 100000 spheres in a union, the render time
will probably not be any longer than making the same scene with a mesh (ie.
approximating the spheres with triangles). The spheres might even be a bit
faster...
  However, if you start to make complex CSG with those spheres (intersections,
differences...) then the render time can increase significantly, while the
render time of an equivalent triangle mesh will not change.

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


Post a reply to this message

From: Jon A  Cruz
Subject: Re: Mesh2 Format Description?
Date: 4 Oct 2001 21:07:51
Message: <3BBD0715.6976EC96@geocities.com>
Cris Williams wrote:

> Where can I find a comprehensive description of the mesh2 format?  I'm

Just check the docs with POVray 3.5 beta.


> I'm
> toying with the idea of writing some code to create mesh objects.

I'm writing a model converter myself. POV's mesh2 seems very straightforward.



--
Jon A. Cruz
http://www.geocities.com/joncruz/action.html


Post a reply to this message

From: John VanSickle
Subject: Re: Mesh2 Format Description?
Date: 5 Oct 2001 13:44:15
Message: <3BBDF2EA.94D48F11@hotmail.com>
Warp wrote:

<Stuff about mesh vs csg snipped>

Another advantage, stated in the docs, is memory savings if you copy
the object.  Copying a mesh object takes only enough memory to refer
to the original, wherease when a CSG object is copied, every copy
takes up just as much memory as the original.

If the original mesh takes up three times as much memory as the
equivalent CSG, it pays off starting with the fourth copy.

One fellow e-mailed me with help because he had copied a fighter craft
CSG about a thousand times.  Using a mesh cut his memory usage by >100
Megs of RAM.

Regards,
John
-- 
ICQ: 46085459


Post a reply to this message

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