POV-Ray : Newsgroups : povray.unix : passing custom string paramenter Server Time
21 Dec 2024 21:45:15 EST (-0500)
  passing custom string paramenter (Message 1 to 4 of 4)  
From: bhupesh
Subject: passing custom string paramenter
Date: 26 Apr 2011 08:15:00
Message: <web.4db6b6b19b5b8fea1f4cc48c0@news.povray.org>
Hi,

I am trying to use PovRay from my java code to create image using dynamic
texture and thus looking to pass file path of texture image while executing pov
script.

However I am not finding, how to do that.

tried Declare=IDENTIFIER=<value>, it takes float value and I want a String with
value file path.

Please help me to achieve it.

Thanks,

Bhupesh


Post a reply to this message

From: Jaime Vives Piqueres
Subject: Re: passing custom string paramenter
Date: 26 Apr 2011 10:18:00
Message: <4db6d418@news.povray.org>

> Hi,
>
> I am trying to use PovRay from my java code to create image using
> dynamic texture and thus looking to pass file path of texture image
> while executing pov script.
>
> However I am not finding, how to do that.
>
> tried Declare=IDENTIFIER=<value>, it takes float value and I want a
> String with value file path.
>
> Please help me to achieve it.


   Just think a bit different: you can put that string declaration on a
include file that you create from your Java app, then call POV to render
the scene, which includes it somewhere before it's needed.

-- 
Jaime Vives Piqueres
		
La Persistencia de la Ignorancia
http://www.ignorancia.org


Post a reply to this message

From: bhupesh
Subject: Re: passing custom string paramenter
Date: 28 Apr 2011 06:15:00
Message: <web.4db93dba47e3fd9b1f4cc48c0@news.povray.org>
Jaime Vives Piqueres <jai### [at] ignoranciaorg> wrote:

> > Hi,
> >
> > I am trying to use PovRay from my java code to create image using
> > dynamic texture and thus looking to pass file path of texture image
> > while executing pov script.
> >
> > However I am not finding, how to do that.
> >
> > tried Declare=IDENTIFIER=<value>, it takes float value and I want a
> > String with value file path.
> >
> > Please help me to achieve it.
>
>
>    Just think a bit different: you can put that string declaration on a
> include file that you create from your Java app, then call POV to render
> the scene, which includes it somewhere before it's needed.
>
> --
> Jaime Vives Piqueres
>
> La Persistencia de la Ignorancia
> http://www.ignorancia.org

Hi,

Thanks Jaime.
will give that a try, actually we thought about that as well, however just eager
to know if PovRay provides anything to pass argument while executing script, as
it provide for float values.

Bhupesh


Post a reply to this message

From: aaz
Subject: Re: passing custom string paramenter
Date: 13 May 2011 14:45:00
Message: <web.4dcd7a7447e3fd9bdca745f10@news.povray.org>
3.7RC3 allows this:

$ povray Declare=\'foo=\"bar\"\'


Post a reply to this message

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