POV-Ray : Newsgroups : povray.binaries.images : Dairy Barn (WIP) (27K and 35K) Server Time
11 Aug 2024 15:12:06 EDT (-0400)
  Dairy Barn (WIP) (27K and 35K) (Message 11 to 13 of 13)  
<<< Previous 10 Messages Goto Initial 10 Messages
From: Jeremy M  Praay
Subject: Re: Dairy Barn (WIP) (27K and 35K)
Date: 26 Mar 2004 13:40:04
Message: <40647904$1@news.povray.org>
Oh, sorry.  Beautiful work, by the way.  I love old barns!   I'll be very
interested to see this when it's done.  Hopefully, your projects don't take
several months like mine seem to...

-- 
Jeremy
www.beantoad.com


"Jeremy M. Praay" <jer### [at] questsoftwarecom> wrote in message
news:4064785e$1@news.povray.org...
> I'm trying to do shingles for my old school (www.beantoad.com/wips.htm),
but
> I've had limited success, and I'm currently re-thinking the entire way
that
> I'm going about doing them.
>
> If you come up with something for cedar shingles, I hope you'll share...
> :-)
>
> -- 
> Jeremy
> www.beantoad.com
>
>
> "Dave Matthews" <dma### [at] nospamnet> wrote in message
> news:40621316@news.povray.org...
> > At the county library, I found building plans for a c. 1917 dairy barn.
> >   The details of the framing are pretty good, but the rest is lacking
> > (in the plans), so I'm going to have to do some research in the area.
> > Luckily, we have hundreds of barns around here.
> >
> > To get all of the boards different, I had to use #macros for the
> > repeated elements, and fetch the boards from random locations out in
> > "wood space," rather than to use objects.  Is this the usual method, or
> > is there a better one?
> >
> > Also, when I'm ready for it, does anyone have tips on shingles?  (The
> > usual variety here at the time were cedar shakes, which are highly
> > variable in length and width, so any kind of a regular pattern looks a
> > bit artificial.)
> >
> > Dave Matthews
> >
>
>
> --------------------------------------------------------------------------
--
> ----
>
>
>
>
>
>
> --------------------------------------------------------------------------
--
> ----
>
>
>
>
>


Post a reply to this message

From: Dave Matthews
Subject: Re: Dairy Barn (WIP) (27K and 35K)
Date: 29 Mar 2004 08:40:40
Message: <40682758$1@news.povray.org>
Jeremy M. Praay wrote:
> Oh, sorry.  Beautiful work, by the way.  I love old barns!   

Thanks!

I'll be very
> interested to see this when it's done.  Hopefully, your projects don't take
> several months like mine seem to...
> 
Sorry to disappoint you, but.... ;-)

Dave Matthews


Post a reply to this message

From: Felbrigg
Subject: Re: Dairy Barn (WIP) (27K and 35K)
Date: 29 Mar 2004 09:33:33
Message: <406833bd$1@news.povray.org>
Heres some Shingles Code!  (Me Shingles 'aint 'arf painful guv'.  :-)

#include "colors.inc"
#include "textures.inc"
#include "functions.inc"
#include "shapes.inc"
#include "woods.inc"

camera  { location <10,0,-40> look_at <10,0,0> }

background { Blue }

light_source { <900, 560, -500> color White }
light_source { <-900, -560, -500> color White }
light_source { <900, 560, 500> color White }
light_source { <-900, -560, 500> color White }

#declare rStream = seed(0);

#macro
RowOfShingles(heightOfShingle,widthOfShingle,depthOfShingle,lengthOfRow,theT
exture)

        #declare currentLength = 0;
        #declare gapBetweenShingles = 0.1;

        union   {
                #while(currentLength < lengthOfRow)
                        #declare thisShingleWidth = widthOfShingle +
(rand(rStream)*(widthOfShingle/2));
                        box     {
                                <currentLength,0,0>,

<currentLength+thisShingleWidth,heightOfShingle
+rand(rStream),depthOfShingle>
                                texture {
                                        theTexture
                                        rotate
<rand(rStream)*360,rand(rStream)*360,rand(rStream)*360>

                                        }
                                }
                        #declare currentLength = currentLength +
thisShingleWidth + gapBetweenShingles;

                #end
                }
#end


#macro
Rows(heightOfShingle,widthOfShingle,depthOfShingle,lengthOfRow,theTexture,Ro
wCount)
        #declare myCount = 0;
        union   {
        #while(myCount <= RowCount )
                object  {
                        RowOfShingles(3,2,0.5,40,theTexture)
                        translate
<0,(heightOfShingle/2)*myCount,(depthOfShingle*myCount)*-1>
                        }
                #declare myCount = myCount + 1;
        #end
                }

#end

#declare myShingles = texture { pigment { P_WoodGrain1A color_map {
M_Wood9A } scale 4} };

object  {
        Rows(3,2,0.5,60,myShingles,12)
        rotate <200,0,0>
        translate <-10,20,0>
        }


Post a reply to this message

<<< Previous 10 Messages Goto Initial 10 Messages

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