POV-Ray : Newsgroups : povray.general : Re: POV-Ray & Databases Server Time
1 Nov 2024 11:16:49 EDT (-0400)
  Re: POV-Ray & Databases (Message 1 to 2 of 2)  
From: Mark Ulrich
Subject: Re: POV-Ray & Databases
Date: 4 Nov 2004 15:35:00
Message: <web.418a91bde4dee74da3009e2a0@news.povray.org>
> how usefull would it be to have an embedded database in POV-Ray? What kind
> of things could one do then? Could it be helpfull for particle systems?
> Could it be helpfull for keeping persistent data between rendering frames
> of an animation?

Hi,

The current Version of pov allows to read/write files.

This is the same as reading/writing database-entries.

Just with a "real" database, you can handle more different items very
easily.



What you could do, is to write a script e.g. in PHP, and use it's
database-functions.
This script might be used to write an .inc -file, that directly can be
included by povray.

here:
http://geocities.com/gpllinux/projekte/index.htm

you can find a quite old program (pov-shell002) written in Gtk-Perl, that
generates Pov-Scripts to display Diagrams (I never finished it, I just
mention  it to give an idea).

Instead of typing in diagram-data, you might read them in with the
sql-functions of perl.

Greets, Mark


Post a reply to this message

From: ingo
Subject: Re: POV-Ray & Databases
Date: 5 Nov 2004 14:52:41
Message: <Xns9598D4622C710seed7@news.povray.org>
in news:web.418a91bde4dee74da3009e2a0@news.povray.org Mark Ulrich wrote:

> What you could do, is to write a script e.g. in PHP, and use it's
> database-functions.
> This script might be used to write an .inc -file, that directly can be
> included by povray.
> 

I did something like that using python and pySQLite. The one thing it does 
not give you is interaction with the elements of the scene while parsing.

Ingo


Post a reply to this message

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