POV-Ray : Newsgroups : povray.general : Duplicate ? : Re: Duplicate ? Server Time
5 Aug 2024 10:16:05 EDT (-0400)
  Re: Duplicate ?  
From: Rafal 'Raf256' Maj
Date: 24 Nov 2002 15:11:49
Message: <Xns92D0D70F74507raf256com@204.213.191.226>
"Thorsten Froehlich" <tho### [at] trfde> wrote in
news:3de1236d$1@news.povray.org 

> it as necessary.  The mesh data will not be copied.  Of course, the
> transform data needs to be stored for each copy of the mesh (unless
> you don't transform it, of course). 
> That way your one million pieces of grass (meshes) will take somewhere
> between 100 and 500 bytes per piece of grass (meshes).

yes, and 500*1000,000 = 500 MB is my current memory usage (with is not bad 
when realizing that scene uses about 500,000,000 * 200 triangles).

But to save more mory I wanted do organize this meshes into super-meshes - 
clusters of about 10*10 (or 50*50) sub-meshes, only problem stoping me for 
doing this is that I need to transfor each sub-mesh before placing in big-
mesh, and I can't 

mesh { // big 
  mesh { triangle[...] rotate [...] // small
  mesh { triangle[...] rotate [...] // small
  rotate [...]
}



-- 
#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

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