POV-Ray : Newsgroups : povray.general : Meshes and RAM. Server Time
18 Nov 2024 07:16:58 EST (-0500)
  Meshes and RAM. (Message 1 to 10 of 13)  
Goto Latest 10 Messages Next 3 Messages >>>
From: Shay
Subject: Meshes and RAM.
Date: 25 Sep 2002 12:52:03
Message: <3d91e9b3@news.povray.org>
I have about 350 megs of RAM. How many triangle faces will I likely be able
to use in a scene?

 -Shay

Megabyte byte byte megabyte one more.
One more megabyte memory.
Megabyte byte byte megabyte one more.
One more mega megabyte for me.


Post a reply to this message

From: Christopher James Huff
Subject: Re: Meshes and RAM.
Date: 25 Sep 2002 14:40:38
Message: <chrishuff-4C1535.14380525092002@netplex.aussie.org>
In article <3d91e9b3@news.povray.org>, "Shay" <sah### [at] simcopartscom> 
wrote:

> I have about 350 megs of RAM. How many triangle faces will I likely be able
> to use in a scene?

As many as you can.
It depends on the meshes. Using two copies of a mesh, you can double it 
with only a very small increase in memory use. Also, if multiple 
triangles share a vertex, only one vertex is stored, so meshes with 
different geometries but the same number of triangles can take up 
different amounts of space. And then there is overhead, OS, other 
programs, virtual memory, etc...

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tagpovrayorg
http://tag.povray.org/


Post a reply to this message

From: Shay
Subject: Re: Meshes and RAM.
Date: 25 Sep 2002 14:45:06
Message: <3d920432$1@news.povray.org>
Christopher James Huff <chr### [at] maccom> wrote in message
news:chr### [at] netplexaussieorg...
>
> As many as you can.
>

Could you even give a ballpark guess? I'm at the point in a scene where I
have to make some decisions based on what my computer's capabilities are. Do
you think I could handle 1 million vertices? Maybe if I purchased a little
more RAM?

 -Shay


Post a reply to this message

From: Warp
Subject: Re: Meshes and RAM.
Date: 25 Sep 2002 15:07:22
Message: <3d92096a@news.povray.org>
Shay <sah### [at] simcopartscom> wrote:
> I have about 350 megs of RAM. How many triangle faces will I likely be able
> to use in a scene?

  It depends a lot in the mesh.
  If all the triangles are separate (ie. they don't share vertex points with
any other triangle), then they will take more memory than if each triangle
shares each of its vertices with lots of other triangles.

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


Post a reply to this message

From: Shay
Subject: Re: Meshes and RAM.
Date: 25 Sep 2002 15:44:28
Message: <3d92121c$1@news.povray.org>
Warp <war### [at] tagpovrayorg> wrote in message news:3d92096a@news.povray.org...
>
>   It depends a lot in the mesh.
>   If all the triangles are separate (ie. they don't share vertex points
with
> any other triangle), then they will take more memory than if each triangle
> shares each of its vertices with lots of other triangles.
>

I guess I should have asked how many vertices I might be able to use. Most
of my triangles share each vertex with 5 other triangles.

 -Shay


Post a reply to this message

From: Kari Kivisalo
Subject: Re: Meshes and RAM.
Date: 25 Sep 2002 15:54:15
Message: <3D921470.F20996FD@luxlab.com>
A mesh with 500 000 vertices and 1 000 000 triangles uses 200 MB of RAM.


_____________
Kari Kivisalo


Post a reply to this message

From: Shay
Subject: Re: Meshes and RAM.
Date: 25 Sep 2002 16:17:18
Message: <3d9219ce@news.povray.org>
Kari Kivisalo <pro### [at] luxlabcom> wrote in message
news:3D921470.F20996FD@luxlab.com...
>
> A mesh with 500 000 vertices and 1 000 000 triangles uses 200 MB of RAM.
>

OUCH!! Time to do some shopping and some re-thinking for my project. Thank
you for the data.

 -Shay


Post a reply to this message

From: Rafal 'Raf256' Maj
Subject: Re: Meshes and RAM.
Date: 25 Sep 2002 16:31:23
Message: <Xns9294E4E76432Draf256com@204.213.191.226>
"Shay" <sah### [at] simcopartscom> wrote in news:3d9219ce@news.povray.org

>> A mesh with 500 000 vertices and 1 000 000 triangles uses 200 MB of
>> RAM. 
> OUCH!! Time to do some shopping and some re-thinking for my project.
> Thank you for the data.

BUT the power of POV-RAY is to use shapes to describe many 'triangles'

i.e. nice sphere can use 256x256 = 65536 triangles in triangles-based-
renderer

whiel in POV it is 1 shape  < 1 kB


-- 
#macro g(U,V)(.4*abs(sin(9*sqrt(pow(x-U,2)+pow(y-V,2))))*pow(1-min(1,(sqrt(
pow(x-U,2)+pow(y-V,2))*.3)),2)+.9)#end#macro p(c)#if(c>1)#local l=mod(c,100
);g(2*div(l,10)-8,2*mod(l,10)-8)*p(div(c,100))#else 1#end#end light_source{
y 2}sphere{z*20 9pigment{function{p(26252423)*p(36455644)*p(66656463)}}}//M


Post a reply to this message

From: Mike Williams
Subject: Re: Meshes and RAM.
Date: 25 Sep 2002 16:56:10
Message: <LQEJ5AAGHik9EwsS@econym.demon.co.uk>
Wasn't it Shay who wrote:
>I have about 350 megs of RAM. How many triangle faces will I likely be able
>to use in a scene?

I've got 376Mb of RAM, and the highest number of faces that I've managed
to use in a scene at once without the memory starting to swap is
481,868,158.

Some of the mesh2 objects that appear in the scene occur more than once.
One of them occurs 14,030 times. The actual number of distinct triangle
faces in the source code is only 73,376.

The resulting image is at 
<http://www.econym.demon.co.uk/pictures/thecorporation.jpg>

Peak memory used: 211,619,975 bytes

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

From: TinCanMan
Subject: Re: Meshes and RAM.
Date: 25 Sep 2002 18:14:10
Message: <3d923532$1@news.povray.org>
> I've got 376Mb of RAM, and the highest number of faces that I've managed
> to use in a scene at once without the memory starting to swap is
> 481,868,158.
>

yeah, but how many FACES? ;)

-tgq


Post a reply to this message

Goto Latest 10 Messages Next 3 Messages >>>

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