POV-Ray : Newsgroups : povray.advanced-users : User input Server Time
23 Nov 2024 15:43:51 EST (-0500)
  User input (Message 1 to 4 of 4)  
From: John Greenwood
Subject: User input
Date: 7 Jun 2015 05:15:01
Message: <web.55740b658fc3754ba7cafab50@news.povray.org>
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


Post a reply to this message

From: Le Forgeron
Subject: Re: User input
Date: 7 Jun 2015 08:31:11
Message: <5574398f$1@news.povray.org>
-----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-----


Post a reply to this message

From: clipka
Subject: Re: User input
Date: 8 Jun 2015 06:40:45
Message: <5575712d$1@news.povray.org>
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.


Post a reply to this message

From: John Greenwood
Subject: Re: User input
Date: 9 Jun 2015 08:10:00
Message: <web.5576d63410c95335a7cafab50@news.povray.org>
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


Post a reply to this message

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