POV-Ray : Newsgroups : povray.general : Meshes and RAM. Server Time
11 Sep 2024 04:50:27 EDT (-0400)
  Meshes and RAM. (Message 4 to 13 of 13)  
<<< Previous 3 Messages Goto Initial 10 Messages
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

From: Warp
Subject: Re: Meshes and RAM.
Date: 25 Sep 2002 19:30:01
Message: <3d9246f8@news.povray.org>
How long did it take to render?

-- 
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -


Post a reply to this message

From: Mike Williams
Subject: Re: Meshes and RAM.
Date: 25 Sep 2002 20:43:19
Message: <TXP$IGAqelk9Ew$j@econym.demon.co.uk>
Wasn't it Warp who wrote:
>  How long did it take to render?

8 minutes 38.0 seconds on a 850MHz machine at 1024*768 with AA 0.3, of
which 34 seconds was parse time.

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

From: Warp
Subject: Re: Meshes and RAM.
Date: 26 Sep 2002 07:34:14
Message: <3d92f0b5@news.povray.org>
Mike Williams <mik### [at] econymdemoncouk> wrote:
> 8 minutes 38.0 seconds on a 850MHz machine at 1024*768 with AA 0.3, of
> which 34 seconds was parse time.

  It would be really nice to know how this compares to other renderers.
I have absolutely no idea how fast other renderers are with these amounts
of 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

<<< Previous 3 Messages Goto Initial 10 Messages

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