POV-Ray : Newsgroups : povray.pov4.discussion.general : About scripting Server Time
27 Dec 2024 05:33:21 EST (-0500)
  About scripting (Message 1 to 2 of 2)  
From: jkroby
Subject: About scripting
Date: 23 Nov 2011 11:45:01
Message: <web.4ecd2295eccb617938b76eca0@news.povray.org>
-It would be possible to introduce the namespace in the script?
To be clear where I type the perl package and declare the base name, to retrieve
PACK:: NAME in order to create libraries of functions.

For complex jobs you can not modularize the functions and create chaos.

-Would it be possible to have the regular-expression? perl style so to speak.
-As an alternative or parallel to the request of regular-expression can use a
command-style exec to invoke a script that performs operations on strings so
advanced. So you can create external scripts that come to the aid of povray
script.

Thanks for your attention and for unusual requests for a renderer, but born of a
programmer if you do not slip at least 1500 lines of script can not do
anything:)

Roberto Pomo
jkr### [at] p3rinfo


Post a reply to this message

From: clipka
Subject: Re: About scripting
Date: 23 Nov 2011 13:45:29
Message: <4ecd3f49@news.povray.org>
Am 23.11.2011 17:43, schrieb jkroby:

> -It would be possible to introduce the namespace in the script?

I guess the next SDL will have such a thing.

> -Would it be possible to have the regular-expression? perl style so to speak.

I don't think so. String processing is not really a must-have core 
functionality for a raytracing software, and regex parsing is a pretty 
complex matter.

> -As an alternative or parallel to the request of regular-expression can use a
> command-style exec to invoke a script that performs operations on strings so
> advanced. So you can create external scripts that come to the aid of povray
> script.

That might be a more viable alternative; invoking external tools as part 
of the scene set-up process, with the ability of using results from 
earlier steps of the set-up, would also allow for such things as 
sampling a complex CSG or isosurface object via trace() or inside(), 
feeding this data to a fast C programm for processing, and finally 
generating additional geometry based on the results.


Post a reply to this message

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