POV-Ray : Newsgroups : povray.binaries.utilities : Checkers of textures Server Time
26 Jun 2024 08:03:15 EDT (-0400)
  Checkers of textures (Message 1 to 10 of 10)  
From: Eitan Tal
Subject: Checkers of textures
Date: 16 Feb 2000 15:10:38
Message: <38AB03B2.AA13DE53@netvision.net.il>
Pigment {checker texture{...} texture{...}} doesn't work... any ways to
fix it? or checker only works
for colors?


Post a reply to this message

From: Bob Hughes
Subject: Re: Checkers of textures
Date: 16 Feb 2000 15:49:12
Message: <38ab0d48@news.povray.org>
box {-1,1
        texture {checker
                texture {pigment {granite color_map {[0 color rgb 0][1 color rgb
1]}}}
                texture {pigment {wrinkles color_map {[0 color rgb 0][1 color
rgb 1]}}}
        }
}

Bob

"Eitan Tal" <eit### [at] netvisionnetil> wrote in message
news:38AB03B2.AA13DE53@netvision.net.il...
| Pigment {checker texture{...} texture{...}} doesn't work... any ways to
| fix it? or checker only works
| for colors?
|


Post a reply to this message

From: Peter Popov
Subject: Re: Checkers of textures
Date: 16 Feb 2000 19:06:42
Message: <iDirOH8Hx=7CAL66c1nmMoehC1If@4ax.com>
On Wed, 16 Feb 2000 22:08:18 +0200, Eitan Tal
<eit### [at] netvisionnetil> wrote:

>Pigment {checker texture{...} texture{...}} doesn't work... any ways to
>fix it? or checker only works
>for colors?

How about a comma between the two texture entries?


Peter Popov
pet### [at] tagpovrayorg
ICQ: 15002700


Post a reply to this message

From: Ken
Subject: Re: Checkers of textures
Date: 16 Feb 2000 19:27:15
Message: <38AB4020.BABCB9C0@pacbell.net>
Peter Popov wrote:
> 
> On Wed, 16 Feb 2000 22:08:18 +0200, Eitan Tal
> <eit### [at] netvisionnetil> wrote:
> 
> >Pigment {checker texture{...} texture{...}} doesn't work... any ways to
> >fix it? or checker only works
> >for colors?
> 
> How about a comma between the two texture entries?

You can't use texture statements inside a pigment statement.

texture { checker
           texture {...}
           texture {...}
}

-- 
Ken Tyler -  1300+ 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: Peter Popov
Subject: Re: Checkers of textures
Date: 16 Feb 2000 20:41:06
Message: <DlCrOOUv3iVDrg4QKGPIxhZqNm6j@4ax.com>
On Wed, 16 Feb 2000 16:26:08 -0800, Ken <tyl### [at] pacbellnet> wrote:

>
>
>You can't use texture statements inside a pigment statement.

Yes you can. This works:

sphere 
{ 0, 5
  texture { checker texture { T_Wood1 }, texture { T_Wood2 } }
}

It also works if you replace the texture identifies with texture
declarations. It even works with the comma left out even though
technically it should parse it as a two-layer texture and a void
texture (i.e. the second entry in the checker pattern should default
to whatever it defaults for textures)


Peter Popov
pet### [at] tagpovrayorg
ICQ: 15002700


Post a reply to this message

From: Ken
Subject: Re: Checkers of textures
Date: 16 Feb 2000 21:02:29
Message: <38AB5670.D7AB0A0C@pacbell.net>
Peter Popov wrote:
> 
> On Wed, 16 Feb 2000 16:26:08 -0800, Ken <tyl### [at] pacbellnet> wrote:
> 
> >
> >
> >You can't use texture statements inside a pigment statement.
> 
> Yes you can. This works:
> 
> sphere
> { 0, 5
>   texture { checker texture { T_Wood1 }, texture { T_Wood2 } }
> }

Your missing the point, Peter. The original posters example was:

pigment {checker texture{...} texture{...}}

You said to add a comma. It just won't work because he is trying to
use textures in a pigment statement. I was right when I said you
were wrong :)

-- 
Ken Tyler -  1300+ 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: Peter Popov
Subject: Re: Checkers of textures
Date: 16 Feb 2000 21:20:24
Message: <wFmrOGCXpxUi5zqLBk=vCTb4FtQR@4ax.com>
On Wed, 16 Feb 2000 18:01:20 -0800, Ken <tyl### [at] pacbellnet> wrote:

>Your missing the point, Peter. The original posters example was:
>
>pigment {checker texture{...} texture{...}}
>
>You said to add a comma. It just won't work because he is trying to
>use textures in a pigment statement. I was right when I said you
>were wrong :)

I admit. Guilty. Please have mercy oh mighty Ken. How dare I doubt
your knowledge! :)

Upon a second look I see why I missed that pigment word the first
time. It's capitalized. My POV-keyword-only filter must have rejected
it.


Peter Popov
pet### [at] tagpovrayorg
ICQ: 15002700


Post a reply to this message

From: Ken
Subject: Re: Checkers of textures
Date: 16 Feb 2000 21:24:55
Message: <38AB5BB4.2D696EE8@pacbell.net>
Peter Popov wrote:

> I admit. Guilty. Please have mercy oh mighty Ken. How dare I doubt
> your knowledge! :)

You are free to doubt my knowlege because I sure do sometimes.

-- 
Ken Tyler -  1300+ 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: Eitan Tal
Subject: Re: Checkers of textures
Date: 19 Feb 2000 02:44:46
Message: <38AE495F.2409B92A@netvision.net.il>
huh? that sphere he mentioned worked here.
is there some difference between metals and woods? because as long as I can
use
texture....

Ken wrote:

> Peter Popov wrote:
>
> > I admit. Guilty. Please have mercy oh mighty Ken. How dare I doubt
> > your knowledge! :)
>
> You are free to doubt my knowlege because I sure do sometimes.
>
> --
> Ken Tyler -  1300+ 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: Ken
Subject: Re: Checkers of textures
Date: 19 Feb 2000 03:02:14
Message: <38AE4DB7.DACC22A1@pacbell.net>
Eitan Tal wrote:
> 
> huh? that sphere he mentioned worked here.
> is there some difference between metals and woods? because as long as I can
> use
> texture....

You can use textures inside a texture statement like the one example
that Peter provided.

This IS OK - texture { checker texture{...} texture{....} }

You cannot use textures inside a pigments statement like the example
you provided.

This is NOT OK - pigment { checker texture{....} texture{....} }

 If you need to use different pigment patterns inside a pigment statement
you could do it like this this example illustrates -


#declare Pig1 = pigment{checker color rgb 0 color rgb 1}
#declare Pig2 = pigment{hexagon color red 1 color green 1 color blue 1}

box { -1,1
           pigment { checker
                     pigment { Pig1 scale .5 }
                     pigment { Pig2 rotate 90*x scale .5 }
                   }
    }

-- 
Ken Tyler -  1300+ 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

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