POV-Ray : Newsgroups : povray.advanced-users : Mesh replacements for primitives? : Mesh replacements for primitives? Server Time
2 May 2024 07:17:30 EDT (-0400)
  Mesh replacements for primitives?  
From: Bald Eagle
Date: 6 Aug 2016 20:30:06
Message: <web.57a68052fcf2bee95e7df57c0@news.povray.org>
Has anyone ever made, or thought of making a library of mesh objects to
approximate some of POV-Ray's primitives?

I just ran a scene that employed 8 million spheres, and that ate up 11 GIGAbytes
of memory.  (I'm glad I recently shoved 16 GB into this thing) :O

Finite Objects:      8026445
Peak memory used:       11 487 420 416 bytes

As I understand it, I can declare a mesh object once, and then just translate
instances of it, which doesn't take up any, or very much more memory.

I'd be interested in learning how, and helping to generate a library of macros
for parameterized mesh objects, so that one could simply add

object {Sphere( <X, Y, Z>, Radius) etc... }

to a scene, and have it substantially perform the same function as a sphere in
most scenes using spheres.

Does this sound like a good idea?  Worthwhile?

I can easily see myself using 16 or 32 million of such objects, if not more.


Post a reply to this message

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