![](/i/fill.gif) |
![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
As my last message indicated, I'm working on macros in Pov's SDL. Its hard
for me to concentrate so much on PovRay because of the time spent doing
everything else in my life, but now and again I find enough time to play.
So this is an example of my endeavors in macro writing - a simple stud wall
macro, with the option to specify an opening for a door. This image is
with, the second without. I'll also post the macro, as messy as the day I
got it to work. :)
-Lawrence
Post a reply to this message
Attachments:
Download 'stud_wall-door.png' (60 KB)
Preview of image 'stud_wall-door.png'
![stud_wall-door.png](/povray.binaries.images/attachment/%3Cweb.43ceb5b5564091e8a5251970%40news.povray.org%3E/stud_wall-door.png?ttop=443866&toff=4750&preview=1)
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
This is the image without the door. Very simple; nothing there but studs.
Figuring out how to place them was fun, even though its only one simple
loop for everything but the edge studs. I -am- learning...
Post a reply to this message
Attachments:
Download 'stud_wall-no_door.png' (62 KB)
Preview of image 'stud_wall-no_door.png'
![stud_wall-no_door.png](/povray.binaries.images/attachment/%3Cweb.43ceb7583d91b4518a5251970%40news.povray.org%3E/stud_wall-no_door.png?ttop=443866&toff=4750&preview=1)
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Lastly, this is the .inc file that contains the macro. Again, nothing huge,
but it was fun to figure it out. This is just the start for me, too, so
I'm excited by how this all turned out.
-Lawrence
Post a reply to this message
Attachments:
Download 'studwall.inc.txt' (4 KB)
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
"Lawrence W" <lwi### [at] csicable net> wrote:
> Lastly, this is the .inc file that contains the macro. Again, nothing huge,
> but it was fun to figure it out. This is just the start for me, too, so
> I'm excited by how this all turned out.
Is there a reason you use #declares inside the macro instead of #locals?
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Lawrence W wrote:
> As my last message indicated, I'm working on macros in Pov's SDL.
> Its hard for me to concentrate so much on PovRay because of the time
> spent doing everything else in my life, but now and again I find
> enough time to play. So this is an example of my endeavors in macro
> writing - a simple stud wall macro, with the option to specify an
> opening for a door. This image is with, the second without. I'll
> also post the macro, as messy as the day I got it to work. :)
Looks good, are you planning to build a whole house this way? That would
look pretty neat. I was thinking myself about doing this, but with bricks
(we use those here in the UK :-), and trying to figure out some sort of
"house description language" that the macro could read.
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
"Cousin Ricky" <ric### [at] yahoo com> wrote:
> "Lawrence W" <lwi### [at] csicable net> wrote:
> > Lastly, this is the .inc file that contains the macro. Again, nothing huge,
> > but it was fun to figure it out. This is just the start for me, too, so
> > I'm excited by how this all turned out.
>
> Is there a reason you use #declares inside the macro instead of #locals?
Because I don't know what I'm doing? It never occurred to me to use #locals
instead. Is there a specific reason why you WOULD use #locals? Hmm, maybe
I should just read the documentation.
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
"scott" <sco### [at] spam com> wrote:
> Lawrence W wrote:
> > As my last message indicated, I'm working on macros in Pov's SDL.
> > Its hard for me to concentrate so much on PovRay because of the time
> > spent doing everything else in my life, but now and again I find
> > enough time to play. So this is an example of my endeavors in macro
> > writing - a simple stud wall macro, with the option to specify an
> > opening for a door. This image is with, the second without. I'll
> > also post the macro, as messy as the day I got it to work. :)
>
> Looks good, are you planning to build a whole house this way? That would
> look pretty neat. I was thinking myself about doing this, but with bricks
> (we use those here in the UK :-), and trying to figure out some sort of
> "house description language" that the macro could read.
I think it'd be neat to make a house out of this macro, but I'm not close to
that point, yet. Thanks for the compliment.
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
>>(we use those here in the UK :-), and trying to figure out some sort of
>>"house description language" that the macro could read.
If you're willing to step outside of POV-SDL for your macros, check out
"lome" on sourceforge. That's what I did, with (non-POV) macros for
castles, but you could easily change things to generate bricked houses
or whatever. (To be precise, they're non-POV macros that translate into
POV-SDL to be rendered, along with HTML to show the resulting images and
scripts to invoke POV and such.)
--
Darren New / San Diego, CA, USA (PST)
Luke, the Force is a powerful ally,
second only to The QuickSave.
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Lawrence W nous apporta ses lumieres en ce 19/01/2006 14:15:
> "Cousin Ricky" <ric### [at] yahoo com> wrote:
>
>>"Lawrence W" <lwi### [at] csicable net> wrote:
>>
>>
>>Is there a reason you use #declares inside the macro instead of #locals?
>
>
> Because I don't know what I'm doing? It never occurred to me to use #locals
> instead. Is there a specific reason why you WOULD use #locals? Hmm, maybe
> I should just read the documentation.
>
#local are private to the macro or file where they are defined.
#declare are GLOBAL
If you use #local in a macro with the same name used by a #declare, it will take the
place of the
global only inside the macro. Once you exit the macro, the #local don't exist anymore
and the
original #declare is visible again, intact.
--
Alain
-------------------------------------------------
Agnostic #2: Did someone shit?
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Lawrence W wrote:
> "scott" <sco### [at] spam com> wrote:
>
>>Lawrence W wrote:
>>
>>>As my last message indicated, I'm working on macros in Pov's SDL.
>>>Its hard for me to concentrate so much on PovRay because of the time
>>>spent doing everything else in my life, but now and again I find
>>>enough time to play. So this is an example of my endeavors in macro
>>>writing - a simple stud wall macro, with the option to specify an
>>>opening for a door. This image is with, the second without. I'll
>>>also post the macro, as messy as the day I got it to work. :)
>>
>>Looks good, are you planning to build a whole house this way? That would
>>look pretty neat. I was thinking myself about doing this, but with bricks
>>(we use those here in the UK :-), and trying to figure out some sort of
>>"house description language" that the macro could read.
>
>
> I think it'd be neat to make a house out of this macro, but I'm not close to
> that point, yet. Thanks for the compliment.
>
I have house macros .. the walls are in an include .. you've inspired me
to create a replacement include that outputs studs .. :)
http://rick.measham.id.au/house
Cheers!
Rick Measham
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |