POV-Ray : Newsgroups : povray.binaries.images : Pencil Macro Critique? Server Time
4 Oct 2024 07:13:05 EDT (-0400)
  Pencil Macro Critique? (Message 11 to 18 of 18)  
<<< Previous 10 Messages Goto Initial 10 Messages
From: Spider
Subject: Re: Pencil Macro Critique?
Date: 27 Apr 1999 13:48:41
Message: <3725A32B.954BC74D@bahnhof.se>
This looks really nice, and will probably brighten(dullify?) many desk scenes.

No, I won't make one(i can't get the papers correct at all)
*smile*

well, good work and good luck.

hm.. the text.. a text object translated and scaled rirght, and then with a
"golden" colour, and then difference it? I think that's how they look on my
pencils...

Charles Krause wrote:
> 
> Ok - there are a number of pencil models available - but none that did JUST
> what I wanted. So I whomped up this one.
> 
> _everything_ is controlled by a parameter, and the size is strictly
> controllable, known, and it even gives you the bounding cylinder for the
> pencil. You should be able to place the models this macro creates precisely
> in a scene.
> 
> Attached are a few examples, all pencils are created  by the same macro,
> just with different parameters.
> 
> Any suggestions at how to improve these models is much appreciated.
> 
> NOTE : this combines the ideas of several models as well as a few original
> ideas, and some staring are real pencils. I could not have done this, had
> other people not written, and published their models. Thank you.
> 
> Parameters to date
> ------------------------
> 
> The pencil has it's sharpened point at <0,0,0>, extends in the +y direction,
> and is completely bound by cylinder
>  <0,0,0>,<0,pencil_length,0>,pencil_radius }
> 
> FLAGS
> 
> Round : If yes, make the pencil round, else, make a hexagonal body.
> 
> Sharpened : If yes, trim the pencil body and lead with the shear_cone to
> make a pointed pencil. Otherwise, the pencil will be 'brand-new'
> 
> Eraser : If yes, shorten the pencil body, add an eraser, and add an eraser
> sleeve. The total length of the pencil still equals pencil_length.
> 
> Painted : If yes, slap a coat of paint on the pencil (see Matched flag), if
> not, leave it bare wood_texture.
> 
> Matched : If yes, make the pencil's paint the same color as it's lead. If
> not, make the paint paint_texture.
> 
> VARIABLES
> 
> pencil_radius : The outside radius of the pencil. if the round flag is set,
> this will be the radius of the cylinder, if not, the hexagonal prism that
> makes up the body of the pencil will be inside this cylinder, making the
> midpoints of the sides _less_ distant from the center.
> 
> pencil_length : this is the total length of the pencil, including eraser, if
> included.
> 
> lead_radius : the radius of the cylindrical lead inside the pencil body.
> 
> cone_taper : this is the measure of the angle (in radians) of the 'sharp
> point' of the pencil. Lower values will make the cone narrower, and make the
> sharpened part longer.
> 
> Eraser_length : The length of the rubber eraser on the end of the pencil.
> Partially hidden by the metal sleeve.
> 
> wood_overlap : the amount the metal sleeve fits over the wooden shaft of the
> pencil
> 
> eraser_overlap : the amount the metal sleeve fits over the eraser.
> 
> spacing : the gap between the ends of the eraser sleeve, and the beginning
> of the ridged sections. Note : the way that the ridges are constructed
> sometimes means the gap on the eraser side is less. This only occurs if the
> ridged region is not of a length that is a multiple of 2*ridge_radius.
> 
> ridge_radius : the radius of the individual torus ridges on the metal eraser
> sleeve.
> 
> band_width : the width of the painted band in the middle of the eraser
> sleeve. Can be set to zero if no such band is desired.
> 
> metal_thickness : the thickness of the eraser sleeve.
> 
> Textures
> 
> paint_texture : the texture used for the coat of paint, if the pencil is
> painted, and if the matched flag is not set.
> 
> lead_texture : the texture used for the pencil lead, and the paint_texture
> IF the matched flag is set.
> 
> Wood_texture : the texture of the wood body of the pencil. NOTE : this is
> the texture of the sharpened surfaces, and the trimmed ends only. If the
> pencil is trimmed by CSG, the body of the pencil will show the
> paint_texture.
> 
> eraser_texture : the texture of the eraser, if present.
> 
> holder_texture : the texture of the eraser_sleeve, if present
> 
> band_texture : the texture of the painted band on the eraser sleeve, if
> present.
> 
> ---------------------------------
> 
> I would like to add the ability to put writing on the side of the pencils
> before I post the actual macro, provided there is interest.
> 
> Suggestions anyone?
> 
>  [Image]

-- 
//Spider
        [ spi### [at] bahnhofse ]-[ http://www.bahnhof.se/~spider/ ]
What I can do and what I could do, I just don't know anymore
                "Marian"
        By: "Sisters Of Mercy"


Post a reply to this message

From: bankspad
Subject: Re: Pencil Macro Critique?
Date: 27 Apr 1999 16:28:09
Message: <37260B94.2E2FBAF3@pacbell.net>
>
> Oh - you seem to think the lead is a textural device - while I never thought
> of that - although NOW it seems obvious. The lead is another cylinder
> entirely.

I thought that it was. What I was thinking was that instead of using just the
graphite pigment for the lead that you combine it with whatever wood texture
(and parameters ) that was used for the pencil in the texture for the cylinder.
I slapped together a real basic image, hope you don't mind.   ;-]

KB-

cone { <-1, 0.001, -1>, 0.001, <2, 4, 2>, 1.2
texture {
planar
turbulence 0.4
texture_map {
 [0.01 T_Wood23 finish { ambient 0.3 } scale 4 rotate z*-40 ]//whatever Wood
texture you choose
 [0.2 pigment { rgb 0.65 } finish {specular 0.5 roughness 0.15 }]
 }
translate y*0.6
}
}


Post a reply to this message


Attachments:
Download 'lead.jpg' (20 KB)

Preview of image 'lead.jpg'
lead.jpg


 

From: connerc
Subject: Re: Pencil Macro Critique?
Date: 27 Apr 1999 16:47:32
Message: <37261455$1$pbaarep$mr2ice@news.povray.org>
In <37260B94.2E2FBAF3@pacbell.net>, on 04/27/99 
   at 12:10 PM, bankspad <ban### [at] pacbellnet> said:


>>
>> Oh - you seem to think the lead is a textural device - while I never thought
>> of that - although NOW it seems obvious. The lead is another cylinder
>> entirely.

>I thought that it was. What I was thinking was that instead of using just
>the graphite pigment for the lead that you combine it with whatever wood
>texture (and parameters ) that was used for the pencil in the texture for
>the cylinder. I slapped together a real basic image, hope you don't mind.  
>;-]

>KB-

>cone { <-1, 0.001, -1>, 0.001, <2, 4, 2>, 1.2
>texture {
>planar
>turbulence 0.4
>texture_map {
> [0.01 T_Wood23 finish { ambient 0.3 } scale 4 rotate z*-40 ]//whatever
>Wood texture you choose
> [0.2 pigment { rgb 0.65 } finish {specular 0.5 roughness 0.15 }]
> }
>translate y*0.6
>}
>}


The only thing I could add is that if you keep it as two
cylinders, add a certain randomness that places the lead
slightly off center, and possibly even the sharpened end.
When was the last time you were able to sharpen a pencil
in a perfectly aligned point?


-- 
============================================================
  Dreams are renewable.  No matter what our age or condition,
  there are still untapped possibilities within us and new
  beauty waiting to be born. 
  
  -- Dale Turner
============================================================
   Tuesday, April 27, 1999 - 03:45 PM (EDT) 
============================================================

_-~-_-~-_-~-_-~-_-~-_-~-_-~-_-~-_-~-_-~-_-~-_-~-_-~-_-~-_-~-_
+                           +                               +
+  Chris C. Conner          +     con### [at] geocitiescom     +
+  cco### [at] amerisurecom    +     con### [at] usanet           +
+                           +                               +
~-_-~-_-~-_-~-_-~-_-~-_-~-_-~-_-~-_-~-_-~-_-~-_-~-_-~-_-~-_-~


Post a reply to this message

From: Steve
Subject: Re: Pencil Macro Critique?
Date: 27 Apr 1999 21:44:22
Message: <37261F20.DAD40A6D@ndirect.co.uk>
That's what I call inspiration.

Cheers
Steve.

PS: thought I had one of my objects finished, now I've got to go
through the whole lot fixing the textures.



bankspad wrote:
> 
> >
> > Oh - you seem to think the lead is a textural device - while I never thought
> > of that - although NOW it seems obvious. The lead is another cylinder
> > entirely.
> 
> I thought that it was. What I was thinking was that instead of using just the
> graphite pigment for the lead that you combine it with whatever wood texture
> (and parameters ) that was used for the pencil in the texture for the cylinder.
> I slapped together a real basic image, hope you don't mind.   ;-]
> 
> KB-
> 
> cone { <-1, 0.001, -1>, 0.001, <2, 4, 2>, 1.2
> texture {
> planar
> turbulence 0.4
> texture_map {
>  [0.01 T_Wood23 finish { ambient 0.3 } scale 4 rotate z*-40 ]//whatever Wood
> texture you choose
>  [0.2 pigment { rgb 0.65 } finish {specular 0.5 roughness 0.15 }]
>  }
> translate y*0.6
> }
> }
> 
>   -----------------------------------------------------------------
>  [Image]


Post a reply to this message

From: bankspad
Subject: Re: Pencil Macro Critique?
Date: 29 Apr 1999 01:51:42
Message: <3727E13C.5A38E7B8@pacbell.net>
Whatcha makin'? Will we get to see?  ;-]

KB-

Steve wrote:

> That's what I call inspiration.
>
> Cheers
> Steve.
>
> PS: thought I had one of my objects finished, now I've got to go
> through the whole lot fixing the textures.
>
> bankspad wrote:
> >
> > >
> > > Oh - you seem to think the lead is a textural device - while I never thought
> > > of that - although NOW it seems obvious. The lead is another cylinder
> > > entirely.
> >
> > I thought that it was. What I was thinking was that instead of using just the
> > graphite pigment for the lead that you combine it with whatever wood texture
> > (and parameters ) that was used for the pencil in the texture for the cylinder.
> > I slapped together a real basic image, hope you don't mind.   ;-]
> >
> > KB-
> >
> > cone { <-1, 0.001, -1>, 0.001, <2, 4, 2>, 1.2
> > texture {
> > planar
> > turbulence 0.4
> > texture_map {
> >  [0.01 T_Wood23 finish { ambient 0.3 } scale 4 rotate z*-40 ]//whatever Wood
> > texture you choose
> >  [0.2 pigment { rgb 0.65 } finish {specular 0.5 roughness 0.15 }]
> >  }
> > translate y*0.6
> > }
> > }
> >
> >   -----------------------------------------------------------------
> >  [Image]


Post a reply to this message

From: Steve
Subject: Re: Pencil Macro Critique?
Date: 29 Apr 1999 11:00:39
Message: <37286330.801256D0@ndirect.co.uk>
It'll be finished thes weekend I hope and will be posted on this
very NG for suggestions/coments, insults whatever.

Cheers
Steve

bankspad wrote:
> 
> Whatcha makin'? Will we get to see?  ;-]
> 
> KB-
> 
> Steve wrote:
> 
> > That's what I call inspiration.
> >
> > Cheers
> > Steve.
> >
> > PS: thought I had one of my objects finished, now I've got to go
> > through the whole lot fixing the textures.
> >
> > bankspad wrote:
> > >
> > > >
> > > > Oh - you seem to think the lead is a textural device - while I never thought
> > > > of that - although NOW it seems obvious. The lead is another cylinder
> > > > entirely.
> > >
> > > I thought that it was. What I was thinking was that instead of using just the
> > > graphite pigment for the lead that you combine it with whatever wood texture
> > > (and parameters ) that was used for the pencil in the texture for the cylinder.
> > > I slapped together a real basic image, hope you don't mind.   ;-]
> > >
> > > KB-
> > >
> > > cone { <-1, 0.001, -1>, 0.001, <2, 4, 2>, 1.2
> > > texture {
> > > planar
> > > turbulence 0.4
> > > texture_map {
> > >  [0.01 T_Wood23 finish { ambient 0.3 } scale 4 rotate z*-40 ]//whatever Wood
> > > texture you choose
> > >  [0.2 pigment { rgb 0.65 } finish {specular 0.5 roughness 0.15 }]
> > >  }
> > > translate y*0.6
> > > }
> > > }
> > >
> > >   -----------------------------------------------------------------
> > >  [Image]


Post a reply to this message

From: Charles Krause
Subject: Re: Pencil Macro Critique?
Date: 2 May 1999 21:22:45
Message: <372cec55.0@news.povray.org>
>cone { <-1, 0.001, -1>, 0.001, <2, 4, 2>, 1.2
>texture {
>planar
>turbulence 0.4
>texture_map {
> [0.01 T_Wood23 finish { ambient 0.3 } scale 4 rotate z*-40 ]//whatever
Wood
>texture you choose
> [0.2 pigment { rgb 0.65 } finish {specular 0.5 roughness 0.15 }]
> }
>translate y*0.6
>}
>}
>



Been away for a bit. But getting back to this.....

Aha! I understand - and that would work great! Much less hassle than the CSG
chipping idea for the paint edge too - although I might toggle the two
schemes on a quality flag. Thanks!!

Aha!


Post a reply to this message

From: bankspad
Subject: Re: Pencil Macro Critique?
Date: 4 May 1999 20:14:35
Message: <372F7B3E.B6FC982@pacbell.net>
Cool!   ;-]

Can't wait to see the finished macro.

KB-

Charles Krause wrote:

> >cone { <-1, 0.001, -1>, 0.001, <2, 4, 2>, 1.2
> >texture {
> >planar
> >turbulence 0.4
> >texture_map {
> > [0.01 T_Wood23 finish { ambient 0.3 } scale 4 rotate z*-40 ]//whatever
> Wood
> >texture you choose
> > [0.2 pigment { rgb 0.65 } finish {specular 0.5 roughness 0.15 }]
> > }
> >translate y*0.6
> >}
> >}
> >
>
> Been away for a bit. But getting back to this.....
>
> Aha! I understand - and that would work great! Much less hassle than the CSG
> chipping idea for the paint edge too - although I might toggle the two
> schemes on a quality flag. Thanks!!
>
> Aha!


Post a reply to this message

<<< Previous 10 Messages Goto Initial 10 Messages

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