POV-Ray : Newsgroups : povray.advanced-users : --( IDENTIFIER - RValue )-- Server Time
1 Nov 2024 03:17:36 EDT (-0400)
  --( IDENTIFIER - RValue )-- (Message 1 to 10 of 12)  
Goto Latest 10 Messages Next 2 Messages >>>
From:
Subject: --( IDENTIFIER - RValue )--
Date: 19 Mar 2003 17:53:56
Message: <3e78f504$2@news.povray.org>
--------------( oo )--------------


Is there a way to define Automatically an IDENTIFIER.
In other words, is there a way to Define the Name of an IDENTIFIER by a
function?

DECLARATION:
    #declare IDENTIFIER = RVALUE |
    #local IDENTIFIER = RVALUE


Here's my Dreamed command

    #declare  (concat( "MyVAR", (Str(A+1)) ) ) = RVALUE


--------------( oo )--------------

Architecture CAAO Website[UDM]-
http://ps.dgtic.umontreal.ca:2050/data/p0034/site


Post a reply to this message

From: ABX
Subject: Re: --( IDENTIFIER - RValue )--
Date: 20 Mar 2003 01:35:20
Message: <f5oi7vs8d1mb0rpguijbv24o504hr70h92@4ax.com>
On Wed, 19 Mar 2003 17:53:01 -0500, "-g00t©-" <Ano### [at] Hotmailcom> wrote:
> Here's my Dreamed command
>
> #declare  (concat( "MyVAR", (Str(A+1)) ) ) = RVALUE

Look for Parse_String macro in strings.inc

ABX


Post a reply to this message

From:
Subject: Re: --( IDENTIFIER - RValue )--
Date: 21 Mar 2003 10:25:45
Message: <3e7b2ef9@news.povray.org>
--------------( oo )--------------

That's much more easier when you know where to look at.
I just didn't saw those command to handle external files. (#write)

Is there a way to use Ram Memory instead of writing a .txt file on the HD? I
saw in the help ressources that it wasn't done yet.

--------------( oo )--------------

Architecture CAAO


Post a reply to this message

From: ABX
Subject: Re: --( IDENTIFIER - RValue )--
Date: 21 Mar 2003 10:43:59
Message: <39cm7vo1kla4juv2efg9agtupn8qb8t4na@4ax.com>
On Thu, 20 Mar 2003 22:30:03 -0500, "-g00t©-" <Ano### [at] Hotmailcom> wrote:
> That's much more easier when you know where to look at.
> I just didn't saw those command to handle external files. (#write)
> Is there a way to use Ram Memory instead of writing a .txt file on the HD?

There was such a feature in MegaPOV below 1.0 iirc, if your scene does not use
3.5-specific features then you can use it. But do you really have so large parts
to be created and parsed on the fly that HD operations are so important ?

ABX


Post a reply to this message

From:
Subject: Re: --( IDENTIFIER - RValue )--
Date: 21 Mar 2003 11:09:31
Message: <3e7b393b$1@news.povray.org>
--------------( oo )--------------

In fact, I guess I'll have large group of objects with their own
proprieties. If I could create larger scale populations, it would be better
for me. In the case of the code bellow, It tooks one minute to parse, wich
is quite rapid. In some cases, I had problems on some systems with too rapid
read/write on HD.

--------------( oo )--------------


#declare MatRow = 100;
#declare MatCol = 100;

#declare Tot = 0;
#declare Row = 0;
#while (Row < MatRow)

        #declare Col = 0;
        #while (Col < MatCol)


                #declare MyG = concat("#declare g",str(Row,-3,
0),"_",str(Col,-3, 0), " = ", str(Tot,-3, 0), ";" );
                Parse_String(MyG)
                #declare Tot = Tot+1;


          #declare Col = Col+1;
        #end

  #declare Row = Row+1;
#end


--------------( oo )--------------

Architecture CAAO

"ABX" <abx### [at] abxartpl> wrote in message
news:39cm7vo1kla4juv2efg9agtupn8qb8t4na@4ax.com...

wrote:
> > That's much more easier when you know where to look at.
> > I just didn't saw those command to handle external files. (#write)
> > Is there a way to use Ram Memory instead of writing a .txt file on the
HD?
>
> There was such a feature in MegaPOV below 1.0 iirc, if your scene does not
use
> 3.5-specific features then you can use it. But do you really have so large
parts
> to be created and parsed on the fly that HD operations are so important ?
>
> ABX


Post a reply to this message

From: ABX
Subject: Re: --( IDENTIFIER - RValue )--
Date: 21 Mar 2003 11:32:12
Message: <9hfm7v8dq4ghrkgc157tdajpmnhln0gt1a@4ax.com>
On Fri, 21 Mar 2003 11:09:26 -0500, "-g00t©-" <Ano### [at] Hotmailcom> wrote:
> In the case of the code bellow

Look for arrays.

ABX


Post a reply to this message

From:
Subject: Re: --( IDENTIFIER - RValue )--
Date: 25 Mar 2003 10:08:14
Message: <3e8070de@news.povray.org>
--------------( oo )--------------

I made some test with Parse_Strings and Arrays. I used both. The
calculations are strongly recursive using sub array for every cells of an
another array. So, I got half of the processing time for KernelTimes. I
haven't tried MegaPOV yet and I don't know if my script is specific to 3.5.

I use voxel on a 3D grid, I have to create a neiberhood for each cells, wich
is a new 3D Grid. The calculation time goes exponential. I have to keep some
steps of the matrix for the memory of each cells.

--------------( oo )--------------

Architecture CAAO

"ABX" <abx### [at] abxartpl> wrote in message
news:39cm7vo1kla4juv2efg9agtupn8qb8t4na@4ax.com...

wrote:
> > That's much more easier when you know where to look at.
> > I just didn't saw those command to handle external files. (#write)
> > Is there a way to use Ram Memory instead of writing a .txt file on the
HD?
>
> There was such a feature in MegaPOV below 1.0 iirc, if your scene does not
use
> 3.5-specific features then you can use it. But do you really have so large
parts
> to be created and parsed on the fly that HD operations are so important ?
>
> ABX


Post a reply to this message

From: ABX
Subject: Re: --( IDENTIFIER - RValue )--
Date: 25 Mar 2003 10:24:55
Message: <d2t08vg3ntscmkl6qd755o9oivb0qspp0f@4ax.com>
On Tue, 25 Mar 2003 10:08:42 -0500, "-g00t©-" <Ano### [at] Hotmailcom> wrote:
> I made some test with Parse_Strings and Arrays. I used both. The
> calculations are strongly recursive using sub array for every cells of an
> another array.

Both ? From the example you posted last time one muiltidimensional array could
be enough. Without Parse_String.

ABX


Post a reply to this message

From:
Subject: Re: --( IDENTIFIER - RValue )--
Date: 25 Mar 2003 18:37:08
Message: <3e80e824@news.povray.org>
--------------( oo )--------------

That's right. I'm currently working on that. It is less abstract when I
could use directly a Matrix (array) from de HD because I could work on the
memory of each cells, the recurence.

That's funny, a friend of me did the same project than me last week. Exactly
similar. He used Scheme. I'll looking to publishing those work soon.
[Cellular Automata]

Thanks again for your comments. It is really appreciated.

--------------( oo )--------------

Architecture CAAO Website[UDM]-

"ABX" <abx### [at] abxartpl> wrote in message
news:d2t08vg3ntscmkl6qd755o9oivb0qspp0f@4ax.com...

wrote:
> > I made some test with Parse_Strings and Arrays. I used both. The
> > calculations are strongly recursive using sub array for every cells of
an
> > another array.
>
> Both ? From the example you posted last time one muiltidimensional array
could
> be enough. Without Parse_String.
>
> ABX


Post a reply to this message

From:
Subject: Re: --( IDENTIFIER - RValue )--
Date: 25 Mar 2003 23:04:30
Message: <3e8126ce@news.povray.org>
--------------( oo )--------------

Is there a way to modify arrays? (Like changing a Value of Only one Cell?)
It doesn't seems to be possible. This why I'm using Parse_Strings. When I'm
using a 20*20*20 3D grid It is 8000 operation of creating a new sub array.
Then Read/Write with Parse_Strings is highly time consuming.

Where Should I post a JPEG of the project?

--------------( oo )--------------

Architecture CAAO

"ABX" <abx### [at] abxartpl> wrote in message
news:d2t08vg3ntscmkl6qd755o9oivb0qspp0f@4ax.com...

wrote:
> > I made some test with Parse_Strings and Arrays. I used both. The
> > calculations are strongly recursive using sub array for every cells of
an
> > another array.
>
> Both ? From the example you posted last time one muiltidimensional array
could
> be enough. Without Parse_String.
>
> ABX


Post a reply to this message

Goto Latest 10 Messages Next 2 Messages >>>

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