 |
 |
|
 |
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Very excellent, Tim! Like everybody else, I am always amazed at the details
and quality of your project. Must become obsessive, isn't it? ;-)
I have used, and adapted, your slopetexture / wornwood macro for my own
needs in my windows_room adaptation of Tim Nikias'. For what it's worth,
here it is for use and comment for everybody.
Thomas
/***************************************************************************
*******
Persistence of Vision Ray Tracer Scene Description File
File name : TM_SlopeTex.inc
Version : 3.6 / MegaPOV 1.0
Description : a slope texture by Tim McMurdo
(with some additions/changes by TdG)
Date : July 2005
Author : Tim McMurdo
E-mail : p.b.i.
Copyright (C) 2005. All rights reserved.
****************************************************************************
******/
/* ADDED/CHANGED FEATURES (by Thomas de Groot):
The following parameters have been added by me:
- Polish: which controls the specular of the paint finish (instead of
phong).
- WoodType: which controls the type of wood.
- WearSharp: which controls the transition between wood and paint.
- Woodscale: which controls the size of the underlying wood texture.
- Paintscale: which controls the size of the wood+paint texture. You should
first
fix Paintscale before changing Woodscale, as the two are
linked together.
*/
#macro
WornWood(RGB,Polish,WoodType,WearFlat,WearEdge,WearSharp,Norm,Woodscale,Pain
tscale,Rot,Tran)
#declare Texture1 =
texture {
pigment {
wood
turbulence <0.1, 0.5, 1>
octaves 5
lambda 3.25
scale <0.15, .5, 1>
rotate <5, 10, 5>
translate -x*2
color_map {
[0.0 color RGB]
[0.1 color RGB]
[0.1 color 0.95*RGB]
[0.9 color 0.95*RGB]
[1.0 color RGB]
}
}
normal {
wood 0.2 // any pattern optionally
followed by an intensity value [0.5]
//turbulence <0.1, 0.5, 1>
turbulence <0.2, 0.2, 0.01>
octaves 5
lambda 3.25
//scale <0.15, 0.5, 0.2>
scale <0.5, 0.5, 0.9>
rotate <3, 2, 0>
translate -x*2
accuracy 0.02 // changes the scale for normal
calculation [0.02]
//scale 0.3 // any transformations
}
finish{
ambient 0
specular Polish // TdG
roughness 0.01
//phong 0.35
//phong_size 100
}
}
#declare TWood1 =
texture {WoodType scale Woodscale}
texture {pigment{color rgbt <255, 155, 23,
0.999999*256>/256*0.25} }
#declare TWood2 =
texture {WoodType scale Woodscale}
texture {pigment{color rgbt <255, 155, 23,1.5*256>/256*0.45} }
#declare PaintedWood1 =
texture {
bozo
//granite
texture_map {
[0 TWood1]
[WearFlat TWood2]
[WearFlat+WearSharp Texture1]
[1.0 Texture1]
}
warp {turbulence 0.2}
scale Paintscale
}
#declare PaintedWood2 =
texture {
bozo
//granite
texture_map {
[0 TWood1]
[WearEdge TWood2]
[WearEdge+WearSharp Texture1]
[1.0 Texture1]
}
warp {turbulence 0.2}
scale Paintscale
}
#declare TM_SlopeTex =
texture {
slope { <0, -1, 0> }
texture_map{
[0 PaintedWood1]
//[0.1 PaintedWood1] // comment out for smooth
transition
[0.1 PaintedWood2]
//[0.4 PaintedWood2] // comment out for smooth
transition
[0.4 PaintedWood1]
[0.6 PaintedWood1]
//[0.6 PaintedWood2] // comment out for smooth
transition
[0.9 PaintedWood2 ]
[1.0 PaintedWood1]
}
warp {turbulence 0.05}
rotate Rot
translate Tran
}
#end
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
"Chris" <lho### [at] nwlink com> wrote:
> Tim,
> Great job. I like the wood texture too. According to a book I have at home
> (Steele's Elements of Naval Architecture), most of the bolts holding the
> planking to the frames would have been made of wood (oak was a favorite).
> These "treenails" are typically 1.5" to 2" in diameter and may have been
> rounded off where they poked through the interior of the hull. The reason
> for the wood was that iron was expensive and it was also very dangerous
> should a cannon ball knock the head off of the bolt and sent it flying into
> the crew.
> What a fantastic project. Keep up the good work.
>
> Chris Holtorf
Good morning Chris and thank you for your comments. I am familiar with tree
nails and thought they were the rule. I based the iron rivets on this photo
of the USS Constitution whish is of the sme time period.
http://www.ussconstitution.navy.mil/Bowchasers.htm
I may have to do a little more investigation on this issue. So far I have
not been able to find clear images of the interior planking on the Niagara.
:)
Tim
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Skip Talbot <Ski### [at] aol com> wrote:
> Clever solution to your problem, and those textures look fantastic.
> Tim, the amount of work you are putting into this project is crazy, you
> know that right? Its going to be a stunning masterpiece when its done
> though. How are you planning on showing off the final result?
>
> Skip
Thanks for the encouragement Skip. I do know I am a bit crazy, but it is
very relaxing for me. I have a very stressful job and being able to lose
myself in this project has been wonderful.
I have in mind a web site dedicated to the project. I will post details in
the future, but I am currently working on written content.
Tim
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
"Thomas de Groot" <t.d### [at] inter nl net> wrote:
> Very excellent, Tim! Like everybody else, I am always amazed at the details
> and quality of your project. Must become obsessive, isn't it? ;-)
> I have used, and adapted, your slopetexture / wornwood macro for my own
> needs in my windows_room adaptation of Tim Nikias'. For what it's worth,
> here it is for use and comment for everybody.
>
> Thomas
>
Thomas!
I am pleased to see somebody using the worn wood macro...better yet,
improving on it. I love the changes you have made. I am seriously
considering using your changes in my own work. Thank you!
Me? Obsessive? Sometimes!
Tim
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
"Tim McMurdo" <jod### [at] woh rr com> wrote:
> "Thomas de Groot" <t.d### [at] inter nl net> wrote:
> > Very excellent, Tim! Like everybody else, I am always amazed at the details
> > and quality of your project. Must become obsessive, isn't it? ;-)
> > I have used, and adapted, your slopetexture / wornwood macro for my own
> > needs in my windows_room adaptation of Tim Nikias'. For what it's worth,
> > here it is for use and comment for everybody.
> >
> > Thomas
> >
>
> Thomas!
>
> I am pleased to see somebody using the worn wood macro...better yet,
> improving on it. I love the changes you have made. I am seriously
> considering using your changes in my own work. Thank you!
>
> Me? Obsessive? Sometimes!
>
> Tim
Looks good. You must try the wood's finish parameters and light.
Thomas, can you post a samplet for this macro?..
Hasan.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
"Tim McMurdo" <jod### [at] woh rr com> schreef in bericht
news:web.434f9a5955de2096395d82550@news.povray.org...
>
> I am pleased to see somebody using the worn wood macro...better yet,
> improving on it. I love the changes you have made. I am seriously
> considering using your changes in my own work. Thank you!
>
<grin>
You are welcome! Often one builds a macro for a specific task, and then
changes are needed for another one. So it keeps growing and mutating. Very
fascinating.
I am sure you can yet again improve further on the macro :-)
btw, I wondered about the Norm parameter that is there in your original
macro, but without any use, are/were you considering uv_mapping at some
stage?
Thomas
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
"Thomas de Groot" <t.d### [at] inter nl net> wrote:
> You are welcome! Often one builds a macro for a specific task, and then
> changes are needed for another one. So it keeps growing and mutating. Very
> fascinating.
> I am sure you can yet again improve further on the macro :-)
> btw, I wondered about the Norm parameter that is there in your original
> macro, but without any use, are/were you considering uv_mapping at some
> stage?
>
> Thomas
Thomas,
The Norm is reguired by the the slope function.
:)
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
"Tim McMurdo" <jod### [at] woh rr com> schreef in bericht
news:web.4351606455de2096395d82550@news.povray.org...
>
> The Norm is reguired by the the slope function.
>
I am not sure I understand this. Because in your original example Norm did
not seem to be used.
Do you mean that Norm is what in the docs is called the <Direction> of
slope? That would make sense to me.
Thomas
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
"Thomas de Groot" <t.d### [at] inter nl net> schreef in bericht
news:4351fa60@news.povray.org...
> Do you mean that Norm is what in the docs is called the <Direction> of
> slope? That would make sense to me.
>
That works fine indeed....! I feel rather stupid :-(
The truth is that I didn't pay attention in the first place to what Norm was
for as it seemed not to be used in the macro. Didn't think further on a
little smarter level... :-)
Thomas
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
"Hasan3" <PRO### [at] Yahoo com> schreef in bericht
news:web.43502d7c55de2096d5e23d330@news.povray.org...
>
> Looks good. You must try the wood's finish parameters and light.
> Thomas, can you post a samplet for this macro?..
>
Here is an example of what the macro does.
Thomas
Post a reply to this message
Attachments:
Download 'SlopeTexTest.jpg' (54 KB)
Preview of image 'SlopeTexTest.jpg'

|
 |
|  |
|  |
|
 |
|
 |
|  |