POV-Ray : Newsgroups : povray.binaries.images : Re: Zebra-look Server Time
1 Oct 2024 13:20:19 EDT (-0400)
  Re: Zebra-look (Message 1 to 9 of 9)  
From: Steve
Subject: Re: Zebra-look
Date: 24 Aug 2000 11:18:04
Message: <slrn8qa7of.7ov.steve@zero-pps.localdomain>
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

From: Ken
Subject: Re: Zebra-look
Date: 24 Aug 2000 19:33:35
Message: <39A5B03A.536F843F@pacbell.net>
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

From: Jens Strohmeyer
Subject: Re: Zebra-look
Date: 24 Aug 2000 21:55:43
Message: <39A5D244.5141D960@tu-bs.de>
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

From: Steve
Subject: Re: Zebra-look
Date: 24 Aug 2000 22:06:17
Message: <slrn8qbie2.8n9.steve@zero-pps.localdomain>
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

From: Anton Sherwood
Subject: Re: Zebra-look
Date: 24 Aug 2000 22:42:05
Message: <39A5DEA3.5B240024@pobox.com>
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

From: Børge Berg-Olsen
Subject: Re: Zebra-look
Date: 25 Aug 2000 08:24:51
Message: <39A6656E.F21EF7DE@dod.no>
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

From: Steve
Subject: Re: Zebra-look
Date: 25 Aug 2000 15:54:06
Message: <slrn8qcku0.9q8.steve@zero-pps.localdomain>
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

From: Jérôme Berger
Subject: Re: Zebra-look
Date: 28 Aug 2000 07:38:27
Message: <39AA4F34.A21D60AC@enst.fr>
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

From: Steve
Subject: Re: Zebra-look
Date: 28 Aug 2000 09:12:19
Message: <slrn8qkof4.mb8.steve@zero-pps.localdomain>

>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

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