|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
On Wed, 23 Aug 2000 02:32:28 +0200, Jens Strohmeyer wrote:
>Hello out there...
>I'd like to know how to create a "Zebra-look" texture
>which I want to apply to an object.
>Are spotted color maps a possible solution to my problem ?
>Don't have much experience with them so far.
>Can anyone help me ? Thx in advance !
>Jens
How about:
pigment{gradiant x
colour_map{
[0.0 colour White]
[0.3 colour Black]
[0.6 colour White]
[1.0 colour Black]
}
scale 0.5
turbulence 0.5
translate x*100 // don't want to see the bit that's
// at x*zero
}
Havn't checked the spelling so things like turbulence and gradient
mibht be wrong, (I always get them wrong).
--
Cheers
Steve email mailto:ste### [at] zeroppsuklinuxnet
%HAV-A-NICEDAY Error not enough coffee 0 pps.
web http://www.zeropps.uklinux.net/
or http://start.at/zero-pps
12:26pm up 2 days, 16:44, 2 users, load average: 1.04, 1.06, 1.05
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Steve wrote:
> Havn't checked the spelling so things like turbulence and gradient
> mibht be wrong, (I always get them wrong).
You spelled color wrong in six places :)
--
Ken Tyler - 1400+ POV-Ray, Graphics, 3D Rendering, and Raytracing Links:
http://home.pacbell.net/tylereng/index.html http://www.povray.org/links/
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Hello Steve !
Thanks for your assistance....
It indeed comes very close to what I have been looking for.
I think I can get on with it !
Best regards,
Jens
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
On Thu, 24 Aug 2000 16:31:06 -0700, Ken wrote:
>
>
>Steve wrote:
>
>> Havn't checked the spelling so things like turbulence and gradient
>> mibht be wrong, (I always get them wrong).
>
>You spelled color wrong in six places :)
>
No colour is was the correct spelling but there was a big mistake
code wise, which came to me while walking in the woods this fine
evening.
pigment{gradiant x
colour_map{
[0.0 colour White]
[0.25 colour White]
[0.25 colour Black]
[0.5 colour Black]
[0.5 colour White]
[0.75 colour White]
[0.75 colour Black]
[1.0 colour Black]
}
scale 0.5
turbulence 0.5
translate x*100 // don't want to see the bit that's
// at x*zero
}
This is the corrected code, I'll let you work out what the big
mistake was in the earlier version that I posted.
--
Cheers
Steve email mailto:ste### [at] zeroppsuklinuxnet
%HAV-A-NICEDAY Error not enough coffee 0 pps.
web http://www.zeropps.uklinux.net/
or http://start.at/zero-pps
1:38am up 3 days, 5:56, 2 users, load average: 1.04, 1.05, 1.07
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Steve wrote:
> colour_map{
> [0.0 colour White]
> [0.25 colour White]
> [0.25 colour Black]
> [0.5 colour Black]
> [0.5 colour White]
> [0.75 colour White]
> [0.75 colour Black]
> [1.0 colour Black]
> }
Why not
{
[ 0 White ]
[1/2 White ]
[1/2 Black ]
[ 1 Black ]
}
?
--
Anton Sherwood -- br0### [at] p0b0xcom -- http://ogre.nu/
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Steve wrote:
>
> On Thu, 24 Aug 2000 16:31:06 -0700, Ken wrote:
> >
> >
> >Steve wrote:
> >
> >> Havn't checked the spelling so things like turbulence and gradient
> >> mibht be wrong, (I always get them wrong).
> >
> >You spelled color wrong in six places :)
> >
>
> No colour is was the correct spelling but there was a big mistake
> code wise, which came to me while walking in the woods this fine
> evening.
>
> pigment{gradiant x
[snip]
> This is the corrected code, I'll let you work out what the big
> mistake was in the earlier version that I posted.
Try again ... it's spelled gradient. Tsk, tsk, tsk! ;-) Nice
Zebrapigment, btw.
--
------------------------------------------------------------------------
+47 90 62 71 78 DoD#2101, DoDRT#017, NIC#015, PJ#006, OGM#007
azo### [at] dodno, Ducati M600, Clementine Ubesudlet: Aldri eid en J&%#PS.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
On Thu, 24 Aug 2000 19:49:07 -0700, Anton Sherwood wrote:
>Steve wrote:
>> colour_map{
>> [0.0 colour White]
>> [0.25 colour White]
>> [0.25 colour Black]
>> [0.5 colour Black]
>> [0.5 colour White]
>> [0.75 colour White]
>> [0.75 colour Black]
>> [1.0 colour Black]
>> }
>
>Why not
> {
> [ 0 White ]
> [1/2 White ]
> [1/2 Black ]
> [ 1 Black ]
> }
>?
Don't know, I always prefer to have two instances of each colour,
just one of my idiosyncracies I suppose.
--
Cheers
Steve email mailto:ste### [at] zeroppsuklinuxnet
%HAV-A-NICEDAY Error not enough coffee 0 pps.
web http://www.zeropps.uklinux.net/
or http://start.at/zero-pps
11:56am up 3 days, 16:14, 2 users, load average: 2.07, 2.01, 1.74
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Anton Sherwood wrote:
>
> Why not
> {
> [ 0 White ]
> [1/2 White ]
> [1/2 Black ]
> [ 1 Black ]
> }
> ?
While you're at it, why not:
{
[ 1/2 White ]
[ 1/2 Black ]
}
? :-)
--
* Doctor Jekyll had something * mailto:ber### [at] inamecom
* to Hyde... * http://www.enst.fr/~jberger
*******************************
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
>Anton Sherwood wrote:
>>
>> Why not
>> {
>> [ 0 White ]
>> [1/2 White ]
>> [1/2 Black ]
>> [ 1 Black ]
>> }
>> ?
> While you're at it, why not:
>{
> [ 1/2 White ]
> [ 1/2 Black ]
>}
>? :-)
I didn't know that would work.
OK this looks good for zebra stripes. The camera is looking at a y plane.
pigment{
gradient x
turbulence 0.3
colour_map{
[1/2 White]
[1/2 Black]
}
scale <1,1,8>
}
>
>--
>* Doctor Jekyll had something * mailto:ber### [at] inamecom
>* to Hyde... * http://www.enst.fr/~jberger
>*******************************
--
Cheers
Steve email mailto:ste### [at] zeroppsuklinuxnet
%HAV-A-NICEDAY Error not enough coffee 0 pps.
web http://www.zeropps.uklinux.net/
or http://start.at/zero-pps
1:20pm up 6 days, 17:38, 2 users, load average: 1.17, 1.11, 1.09
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |