POV-Ray : Newsgroups : povray.text.scene-files : My Attempt at a 3d Wood Surface - Source File Server Time
1 Nov 2024 17:19:31 EDT (-0400)
  My Attempt at a 3d Wood Surface - Source File (Message 1 to 10 of 13)  
Goto Latest 10 Messages Next 3 Messages >>>
From: Eric Freeman
Subject: My Attempt at a 3d Wood Surface - Source File
Date: 26 Oct 1999 16:31:48
Message: <38160fb4@news.povray.org>
// Persistence of Vision Ray Tracer Scene Description File
// File: wood3d.pov
// Vers: 3.1 SuperPatch
// Desc: 3d hite_field wood planks
// Date: 10/24/99
// Auth: Eric L. Freeman

// INITIAL VARIABLES
#declare ScX = 2/12;      file://scale the plank
#declare ScY = 0.05/12;   file://scale the plank
#declare ScZ = 12/12;     file://scale the plank
#declare ScPig = 5.7;     file://scale the pigment
#declare TransPig = 1000; file://for random translating of the texture
#declare Gapper = 0.025;  file://the gap between the planks
#include "colors.inc"
#include "woods.inc"

// LIGHT
light_source {
  <-60,100,30>
  color White*1.23
}

background {DarkBrown/3}

#declare R1 = seed(123);

#declare Looper1 = 0; file://inner loop control
#declare Looper2 = 0; file://outer loop control
#declare NumX = 2;    file://the number of planks in the x direction
#declare NumZ = 2;    file://the number of planks in the z direction

#while (Looper2 < NumX)
  #while (Looper1 < NumZ)
    #declare TransPig = 1000*rand(R1);
    #declare RotPig = <rand(R1)*4,rand(R1)*4,0>;
    object {
      height_field {
        pattern 200,200 {
          hf_gray_16
          // the following 2 pigment definitions are taken
          // from the T_Wood1 texture definintion in woods.inc
          // to change woods, change the wood texture below
          // and the pigment
          // P_WoodGrain1A color_map {M_Wood1A}
          P_WoodGrain1B color_map {M_Wood1B}
          translate <0,0,TransPig>
          scale <1,1,1/ScZ>
          scale ScPig
          rotate RotPig
        }
      }
      texture {
        T_Wood1
        translate <0,0,TransPig>
        scale <1/ScX,1,1/ScZ>
        scale ScPig
        rotate RotPig
      }
      scale <ScX,ScY,ScZ>
      translate <Looper2*(ScX+Gapper),0,Looper1*(ScZ+Gapper)>
      #if ( int(Looper2/2)=Looper2/2 )
        translate <0,0,(ScZ+Gapper)/2>
      #end
    }
    #declare Looper1 = Looper1+1;
  #end
  #declare Looper1 = 0;
  #declare Looper2 = Looper2+1;
#end


// CAMERA
camera {
  location <0,0.15,-0.15>
  look_at <0,0,0>
  rotate y*20
  translate <(ScX+Gapper)*(NumX/2),0,(ScZ+Gapper)*(NumZ/2)>
}


Post a reply to this message

From: Eric Freeman
Subject: Re: My Attempt at a 3d Wood Surface - Source File
Date: 26 Oct 1999 16:37:15
Message: <381610fb@news.povray.org>
Hey all,

Just looking at my post and Outlook Express puts a "file:" in front of all
the double "/"s.  Should source files be posted as attachments instead of
copy/pasting them into the message body???

Eric
---------------
"A wise and frugal government, which shall restrain men from injuring one
another, which shall leave them otherwise free to regulate their own
pursuits of industry and improvement, and shall not take from the mouth of
labor the bread it has earned.  This is the sum of good government."
     - Thomas Jefferson
     - First inaugural address, 1801
---------------
http://www.ametro.net/~ericfree


Post a reply to this message

From: Ron Parker
Subject: Re: My Attempt at a 3d Wood Surface - Source File
Date: 26 Oct 1999 16:45:48
Message: <slrn81c429.v8.ron.parker@ron.gwmicro.com>
On Tue, 26 Oct 1999 15:37:39 -0500, Eric Freeman wrote:
>Hey all,
>
>Just looking at my post and Outlook Express puts a "file:" in front of all
>the double "/"s.  Should source files be posted as attachments instead of
>copy/pasting them into the message body???

No, Microsoft should be bombed into oblivion.  Other newsreaders don't have
that bug.  Your post appears fine to me.

-- 
These are my opinions.  I do NOT speak for the POV-Team.
The superpatch: http://www2.fwi.com/~parkerr/superpatch/
My other stuff: http://www2.fwi.com/~parkerr/traces.html


Post a reply to this message

From: Ken
Subject: Re: My Attempt at a 3d Wood Surface - Source File
Date: 26 Oct 1999 16:56:39
Message: <381614F0.5F6D82B6@pacbell.net>
Ron Parker wrote:

> No, Microsoft should be bombed into oblivion.

Oh come on Ron !    If Microsoft were bombed into oblivion that would leave
us with Macintosh to pick on and that would be about as much fun as shooting
fish in a bowl.

-- 
Ken Tyler -  1100+ Povray, Graphics, 3D Rendering, and Raytracing Links:
http://home.pacbell.net/tylereng/index.html http://www.povray.org/links/


Post a reply to this message

From: Ron Parker
Subject: Re: My Attempt at a 3d Wood Surface - Source File
Date: 26 Oct 1999 17:04:41
Message: <slrn81c55n.v8.ron.parker@ron.gwmicro.com>
On Tue, 26 Oct 1999 13:54:08 -0700, Ken wrote:
>Oh come on Ron !    If Microsoft were bombed into oblivion that would leave
>us with Macintosh to pick on and that would be about as much fun as shooting
>fish in a bowl.

Oh, you are still alive.  I was worried someone kicked your power cord from
the wall.  Admit it, you're too busy cataloging all those links I gave you
this morning to bother with us mere mortals, aren't you?

-- 
These are my opinions.  I do NOT speak for the POV-Team.
The superpatch: http://www2.fwi.com/~parkerr/superpatch/
My other stuff: http://www2.fwi.com/~parkerr/traces.html


Post a reply to this message

From: Ken
Subject: Re: My Attempt at a 3d Wood Surface - Source File
Date: 26 Oct 1999 17:06:52
Message: <38161758.3E467180@pacbell.net>
Ron Parker wrote:

> 
> Oh, you are still alive.  I was worried someone kicked your power cord from
> the wall.  Admit it, you're too busy cataloging all those links I gave you
> this morning to bother with us mere mortals, aren't you?

Yeah I'm still alive. I am just suffering from sensory overload... overload...

-- 
Ken Tyler -  1100+ Povray, Graphics, 3D Rendering, and Raytracing Links:
http://home.pacbell.net/tylereng/index.html http://www.povray.org/links/


Post a reply to this message

From: omniVERSE
Subject: Re: My Attempt at a 3d Wood Surface - Source File
Date: 26 Oct 1999 21:19:44
Message: <38165330@news.povray.org>
The solution is to never follow a comments // immediately with any
character.  Spaces prevent this from happening and I'm already relearning my
commenting habits to try and prevent this.
There's always the Edit/Replace in the Windows versions editor also. You
could make all // into //(spc) or remove the "file:" likewise.

Bob

Eric Freeman <eri### [at] ametronet> wrote in message
news:381610fb@news.povray.org...
> Hey all,
>
> Just looking at my post and Outlook Express puts a "file:" in front of all
> the double "/"s.  Should source files be posted as attachments instead of
> copy/pasting them into the message body???
>
> Eric
> ---------------
> "A wise and frugal government, which shall restrain men from injuring one
> another, which shall leave them otherwise free to regulate their own
> pursuits of industry and improvement, and shall not take from the mouth of
> labor the bread it has earned.  This is the sum of good government."
>      - Thomas Jefferson
>      - First inaugural address, 1801
> ---------------
> http://www.ametro.net/~ericfree
>
>
>


Post a reply to this message

From: omniVERSE
Subject: Re: My Attempt at a 3d Wood Surface - Source File
Date: 26 Oct 1999 21:37:28
Message: <38165758@news.povray.org>
Joke is on me, in Outlook my // (spc) came out wrong.

Bob

omniVERSE <inv### [at] aolcom> wrote in message
news:38165330@news.povray.org...
> The solution is to never follow a comments // immediately with any
> character.  Spaces prevent this from happening and I'm already relearning
my
> commenting habits to try and prevent this.
> There's always the Edit/Replace in the Windows versions editor also. You
> could make all // into file://(spc) or remove the "file:" likewise.
>
> Bob
>
> Eric Freeman <eri### [at] ametronet> wrote in message
> news:381610fb@news.povray.org...
> > Hey all,
> >
> > Just looking at my post and Outlook Express puts a "file:" in front of
all
> > the double "/"s.  Should source files be posted as attachments instead
of
> > copy/pasting them into the message body???
> >
> > Eric
> > ---------------
> > "A wise and frugal government, which shall restrain men from injuring
one
> > another, which shall leave them otherwise free to regulate their own
> > pursuits of industry and improvement, and shall not take from the mouth
of
> > labor the bread it has earned.  This is the sum of good government."
> >      - Thomas Jefferson
> >      - First inaugural address, 1801
> > ---------------
> > http://www.ametro.net/~ericfree
> >
> >
> >
>
>


Post a reply to this message

From: Jerome M  BERGER
Subject: Re: My Attempt at a 3d Wood Surface - Source File
Date: 26 Oct 1999 22:38:02
Message: <3816657E.E7FFA081@enst.fr>
omniVERSE wrote:
> 
> Joke is on me, in Outlook my // (spc) came out wrong.
> 
> Bob
> 
	OTOH it fixes the problem for netscape...

		Jerome

-- 
*******************************

* they'll tell you what can't * mailto:ber### [at] inamecom
* be done and why...          * http://www.enst.fr/~jberger
* Then do it.                 *
*******************************


Post a reply to this message

From: Eric Freeman
Subject: Re: My Attempt at a 3d Wood Surface - Source File
Date: 27 Oct 1999 00:36:14
Message: <3816813e@news.povray.org>
omniVERSE <inv### [at] aolcom> wrote in message
news:38165758@news.povray.org...
>
> Joke is on me, in Outlook my // (spc) came out wrong.

Same here.  In my original post I spent about 5 minutes trying to type //
(without the space) and finally had to resort to 'double "/"' instead.

WAIT!!!!  I just got the // above to work!!!!  Type a slash, then a space,
then another slash, then another space, then back up and remove the space in
between the slashes.  Who said MS products aren't user friendly??

//  //  //  //  //  //  //

Eric
---------------
"A wise and frugal government, which shall restrain men from injuring one
another, which shall leave them otherwise free to regulate their own
pursuits of industry and improvement, and shall not take from the mouth of
labor the bread it has earned.  This is the sum of good government."
     - Thomas Jefferson
     - First inaugural address, 1801
---------------
http://www.ametro.net/~ericfree


Post a reply to this message

Goto Latest 10 Messages Next 3 Messages >>>

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