POV-Ray : Newsgroups : povray.advanced-users : Blobs in Macros... Server Time
29 Jul 2024 08:22:48 EDT (-0400)
  Blobs in Macros... (Message 1 to 7 of 7)  
From: Tim Nikias
Subject: Blobs in Macros...
Date: 27 Oct 2002 05:20:21
Message: <3dbbbde5@news.povray.org>
I've got following problem:

My Particle System allows the usage of macros to define
particles. Now I've set a macro which places blob-spheres.
The system is called inside a blob{}-statement, so I'd
expect POV to parse, find the macro, use it, place the
components, and render just fine.
I know that POV can't issue a warning for macros, because
parameters for the macro may be set after the declaration
of the macro itself. But why does POV tell me

Parse Error: No mathing } in "sphere", , found instead

(that last "," is referring to the comma between the
radius and the strength)?

Is there actually any possibility to place components with
macros that are called from inside a macro?
Even if I place blob{} around the include file with
the macro which will call the particle-macro, it doesn't
work. Any ideas?

--
Tim Nikias
Homepage: http://www.digitaltwilight.de/no_lights/index.html
Email: Tim### [at] gmxde


Post a reply to this message

From: Christopher James Huff
Subject: Re: Blobs in Macros...
Date: 27 Oct 2002 14:21:35
Message: <chrishuff-D52370.14145527102002@netplex.aussie.org>
In article <3dbbbde5@news.povray.org>, "Tim Nikias" <tim### [at] gmxde> 
wrote:

> My Particle System allows the usage of macros to define
> particles. Now I've set a macro which places blob-spheres.
> The system is called inside a blob{}-statement, so I'd
> expect POV to parse, find the macro, use it, place the
> components, and render just fine.

I've never had this problem. Are you ever trying to declare a component 
in your macros?

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tagpovrayorg
http://tag.povray.org/


Post a reply to this message

From: Tim Nikias
Subject: Re: Blobs in Macros...
Date: 27 Oct 2002 14:39:56
Message: <3dbc410c$1@news.povray.org>
Its not declaring a component, but placing one. Any clues?

--
Tim Nikias
Homepage: http://www.digitaltwilight.de/no_lights/index.html
Email: Tim### [at] gmxde

>
> I've never had this problem. Are you ever trying to declare a component
> in your macros?
>


Post a reply to this message

From: Warp
Subject: Re: Blobs in Macros...
Date: 27 Oct 2002 15:29:52
Message: <3dbc4cbf@news.povray.org>
A minimalistic example showing the problem would be helpful.

-- 
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -


Post a reply to this message

From: Tim Nikias
Subject: Re: Blobs in Macros...
Date: 27 Oct 2002 15:54:05
Message: <3dbc526d@news.povray.org>
I don't get. In the file I tried it with, it never worked.
Then, I remodeled it, in order to use several
cylinders and spheres instead of blobbing components.

After Warp asked for a small example, I fiddled with
an example, and it worked. Thus, I went back to the
scene-file and experimented with it, trying to get back
to the state when I tried to use blob-components in
the macro.

And now it works. I must have screwed up something pretty
bad, seems like it does work after all. Perhaps I had a
closing bracket somewhere, and when the first particle
was placed, POV thought the blob-object was complete,
tried to put a sphere, and then found the strength-variable,
which isn't required in a simple sphere...

I promise, the next time I'll be more thorough. sorry for any
troubles I caused, and thanks for your concern...

Regards,
Tim


--
Tim Nikias
Homepage: http://www.digitaltwilight.de/no_lights/index.html
Email: Tim### [at] gmxde


Post a reply to this message

From: Christopher James Huff
Subject: Re: Blobs in Macros...
Date: 27 Oct 2002 16:00:08
Message: <chrishuff-503187.15532927102002@netplex.aussie.org>
In article <3dbc410c$1@news.povray.org>,
 "Tim Nikias" <tim### [at] gmxde> wrote:

> Its not declaring a component, but placing one. Any clues?

Show some code?

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tagpovrayorg
http://tag.povray.org/


Post a reply to this message

From: Warp
Subject: Re: Blobs in Macros...
Date: 27 Oct 2002 16:44:28
Message: <3dbc5e3c@news.povray.org>
Tim Nikias <tim### [at] gmxde> wrote:
> Perhaps I had a
> closing bracket somewhere

  That's why a good, clear and consistent indentation scheme is useful.
When you get accustomed to one, you never make such errors. :)

  (I know, "never say never", but still... :) )

-- 
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -


Post a reply to this message

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