POV-Ray : Newsgroups : povray.advanced-users : Parameters sent to Macros... Question: : Re: Parameters sent to Macros... Question: Server Time
29 Jul 2024 10:19:21 EDT (-0400)
  Re: Parameters sent to Macros... Question:  
From: Leroy Whetstone
Date: 29 May 2002 02:58:24
Message: <3CF49696.62557832@joplin.com>
If I understand what you want then using POV3.5 try .

#macro Birth-Field (String)
 Parse_String(String)
#end

The String could be  a material{...}, a pigment{} or texture{} or any thing you
want.


Tim Nikias wrote:

> I need a way to visualize the Birth-Field of my
> Particle-System. What I came up with, is a macro,
> which you call like this:
>
> Birth_Field(texture{})
>
> It would then create and place an object in scene
> according to the birth-field of the most recent
> system.
>
> Question is: Is there a way can avoid the texture{}?
> I would like to make it very easy to use, like a
> POV-Primitive. Thus, I'd like to have the macro
> handle a material{...}, a pigment{} or texture{}.
>
> So, the essential question is:
> Is it possible for POV to just take the given input
> and place it in an object, regardless of how it looks
> like (as long as its in correct POV-SDL, something
> like
> Birth_Field( do something )
> shouldn't work of course...
>
> --
> Tim Nikias
> Homepage: http://www.digitaltwilight.de/no_lights/index.html
> Email: Tim### [at] gmxde

--
Have Fun!


Post a reply to this message

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