POV-Ray : Newsgroups : povray.binaries.images : Stud Wall macro Server Time
7 Aug 2024 19:22:51 EDT (-0400)
  Stud Wall macro (Message 1 to 10 of 12)  
Goto Latest 10 Messages Next 2 Messages >>>
From: Lawrence W
Subject: Stud Wall macro
Date: 18 Jan 2006 16:45:00
Message: <web.43ceb5b5564091e8a5251970@news.povray.org>
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


 

From: Lawrence W
Subject: Re: Stud Wall macro
Date: 18 Jan 2006 16:50:01
Message: <web.43ceb7583d91b4518a5251970@news.povray.org>
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


 

From: Lawrence W
Subject: Re: Stud Wall macro
Date: 18 Jan 2006 17:05:00
Message: <web.43ceba913d91b4518a5251970@news.povray.org>
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)

From: Cousin Ricky
Subject: Re: Stud Wall macro
Date: 18 Jan 2006 22:30:01
Message: <web.43cf07083d91b45143a5e2560@news.povray.org>
"Lawrence W" <lwi### [at] csicablenet> 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

From: scott
Subject: Re: Stud Wall macro
Date: 19 Jan 2006 05:22:05
Message: <43cf684d@news.povray.org>
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

From: Lawrence W
Subject: Re: Stud Wall macro
Date: 19 Jan 2006 14:20:00
Message: <web.43cfe5593d91b4518a5251970@news.povray.org>
"Cousin Ricky" <ric### [at] yahoocom> wrote:
> "Lawrence W" <lwi### [at] csicablenet> 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

From: Lawrence W
Subject: Re: Stud Wall macro
Date: 19 Jan 2006 14:20:00
Message: <web.43cfe5b43d91b4518a5251970@news.povray.org>
"scott" <sco### [at] spamcom> 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

From: Darren New
Subject: Re: Stud Wall macro
Date: 19 Jan 2006 14:33:46
Message: <43cfe99a$1@news.povray.org>
>>(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

From: Alain
Subject: Re: Stud Wall macro
Date: 19 Jan 2006 17:25:51
Message: <43d011ef$1@news.povray.org>
Lawrence W nous apporta ses lumieres en ce 19/01/2006 14:15:
> "Cousin Ricky" <ric### [at] yahoocom> wrote:
> 
>>"Lawrence W" <lwi### [at] csicablenet> 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

From: Rick Measham
Subject: Re: Stud Wall macro
Date: 19 Jan 2006 20:32:00
Message: <43d03d90$1@news.povray.org>
Lawrence W wrote:
> "scott" <sco### [at] spamcom> 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

Goto Latest 10 Messages Next 2 Messages >>>

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