|
|
Le 31/12/2014 07:24, RedGuff a écrit :
> Hello.
> I'd like to enter parameters in my images and videos.
> The POV or INC file should tell me message and ask me the value of the
> parameter, during the render.
> I can do it with a software that changes the POV or INC files, depending of the
> parameters I write, but it's not perfect for games.
> Something like this (see
> https://fr.wikipedia.org/wiki/Liste_de_programme_Hello_world#POV-Ray for the
> original POV):
>
> #include "colors.inc"
> camera {
> location <3, 1, -10>
> look_at <3,0,0>
> }
> light_source { <500,500,-1000> White }
>
> #input{"What's your name?" name } // HERE!
> //#declare name="RedGuff"; // For test.
>
> text {
> ttf "timrom.ttf" "Hello" 1, 0
> pigment { White }
> }
> text {
> ttf "timrom.ttf" name 1, 0
> pigment { Red }
> translate <0,-2,0>
> }
>
> Thanks.
>
>
You can also define (aka declare) values on the command line.
Povray is not expected to be, at least in its portable version, an
interactive program.
--
Just because nobody complains does not mean all parachutes are perfect.
Post a reply to this message
|
|