I have a povray program that I want to run a number of times in an evolutionary
process.
When it runs it displays a starting object and a number of alternative versions
produced by varying a few parameters. I want to select the alternative that is
nearest to what I want and make it the new starting point and repeat.
I cannot find any provision for user input in povray itself and wonder if there
is any sort of provision in an .ini file that could do the job?
John Greenwood
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Le 07/06/2015 11:14, John Greenwood a écrit :
> I have a povray program that I want to run a number of times in an> evolutionary process.> > When it runs it displays a starting object and a number of> alternative versions produced by varying a few parameters. I want> to select the alternative that is nearest to what I want and make> it the new starting point and repeat.> > I cannot find any provision for user input in povray itself and> wonder if there is any sort of provision in an .ini file that could> do the job?> > John Greenwood> >
http://www.povray.org/documentation/3.7.0/r3_2.html#r3_2_5_1
In ini file :
Declare=MyValue=24
Can be used multiple time for different variables
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iJwEAQEIAAYFAlV0OY4ACgkQhKAm8mTpkW2rXQQA3hFQ6a2xb/llwzeVCTRTYKSp
54C6rkFSzIsLxnwwWOE/T7dUCfkPfP1CbAqYqh3yZ+NsTFHMtK+wCPFMXVBbN/d/
FxZiAPV3NcID5Ae7ZzfuLF6zfyj6IBMqEqwvqxO8tn6ruo5URP22RMcsZse8VkFT
ZcNmUR3ZBIFbfoHQ4cM=
=azVb
-----END PGP SIGNATURE-----
Am 07.06.2015 um 11:14 schrieb John Greenwood:
> I have a povray program that I want to run a number of times in an evolutionary> process.>> When it runs it displays a starting object and a number of alternative versions> produced by varying a few parameters. I want to select the alternative that is> nearest to what I want and make it the new starting point and repeat.>> I cannot find any provision for user input in povray itself and wonder if there> is any sort of provision in an .ini file that could do the job?
Maybe what you want is an animation with Post_Frame_Command set in the
.ini file, to call a small interactive script that modifies an .inc file
after each frame depending on user input.
clipka <ano### [at] anonymousorg> wrote:
> Am 07.06.2015 um 11:14 schrieb John Greenwood:> > I have a povray program that I want to run a number of times in an evolutionary> > process.> >> > When it runs it displays a starting object and a number of alternative versions> > produced by varying a few parameters. I want to select the alternative that is> > nearest to what I want and make it the new starting point and repeat.> >> > I cannot find any provision for user input in povray itself and wonder if there> > is any sort of provision in an .ini file that could do the job?>> Maybe what you want is an animation with Post_Frame_Command set in the> .ini file, to call a small interactive script that modifies an .inc file> after each frame depending on user input.
I think what I am looking for must be "Small interactive script". Ideally I
would like to run my .pov program and be able to click on the best result and
have the program run again with new starting parameters taken from the selected
result.
Incidentally my programs are a utility to find the best colour. It displays a
sphere with a starting colour and surrounds it with an array of spheres with
slightly differing hue, saturation and luminance.
I have posted these at: http://www.john-greenwood.co.uk/PovRay/BendColours/
(Note that this is just for discussion and I am still working on it.)
This sort of evolutionary approach could be useful for other situations such as
finding the best texture or shape of a blob.
John