POV-Ray : Newsgroups : povray.general : using POV-Ray as 3D renderer for Python scripts : Re: using POV-Ray as 3D renderer for Python scripts Server Time
29 May 2024 16:33:27 EDT (-0400)
  Re: using POV-Ray as 3D renderer for Python scripts  
From: Bald Eagle
Date: 13 Sep 2021 19:55:00
Message: <web.613fe48db1b48eb01f9dae3025979125@news.povray.org>
"Florin Andrei" <nomail@nomail> wrote:
> I'm not happy with what I've seen so far in terms of rendering 3D graphs in
> Python. I want to be able to draw many points in 3D, each with its own
> coordinates and other attributes such as size and color, and render the scene
> with optional dynamic parameters (such as rotating it around some axis).

Just something you may be interested in, from an aesthetics point of view:

> But that would mean POV-Ray would have to take a scene file with thousands of
> small objects (the dots), each point being a small opaque sphere. The file will
> be machine-generated and fairly large. Should I be concerned with the
> performance of the renderer?

Absolutely not.  Thousands is trivial, millions is not a problem.

> The scene will otherwise be simple - I will draw a system of coordinates, and
> optionally grids of coordinates. I'm not planning on using textures.

I would say that if you are writing an include file with python, then all you'd
need to do is write it as an array of the centers of the spheres, and the radii.
 You may find that implementing your scene using blobs and not spheres could be

There's also the possibilities of writing your data as a df3 file and rendering
it as media, or using the df3 file to render it as an isosurface.  Just for
playing around.

But overall, what you're looking to do should even be challenging for POV-Ray to
handle and render in minutes, if not less.

Post a reply to this message

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