|
|
While working on tiles texture, I ran into a problem. I want to give the
tile and the joint a different finish but cant get it done. There is no
sutch thing as a finish_map, and turning the pigment_map into a
texture_map won't work because the warps only work with pigments.
I'm stuck, is there a way out?
Ingo
--
#version 3.1;
global_settings{assumed_gamma 1.0}
light_source {<500,500,-500>, 1}
camera{
location <0,0,-1.3>
look_at <0,0,0>
right x // On commandline set +w equal to +h
angle 90
orthographic
}
#declare TilePigm= pigment
wood
rotate <0,32,33>
translate <0,45,0>
scale 1/1.5
turbulence 0.6
octaves 6
omega 0.2
lambda 0.5
colour_map {
[0.6, rgb <0.9,0.9,0.9>]
[0.8, rgb <0,0,0.4>]
[1.0, rgb <0.2,0.5,1>]
}
}
#declare TilePigm= pigment {
TilePigm
warp {repeat x}
warp {repeat y}
translate <1,0,0>
}
#declare Tnorm= normal {
boxed
slope_map {
[0.01, <0.3,0>]
[0.03, <0.0,2>]
[0.10, <1.0,0>]
}
warp {repeat x flip x}
warp {repeat y flip y}
}
#declare Tile=
ture{
pigment {
boxed
pigment_map {
[0.03, rgb 0.5]
[0.03, TilePigm]
}
warp {repeat x flip x}
warp {repeat y flip y}
}
normal {
average
normal_map {
[2, Tnorm]
[1, granite 0.1 scale 0.2]
}
}
finish {phong 0.7 phong_size 77}
}
plane {
-z, 0
texture {Tile}
}
Post a reply to this message
|
|
|
|
ingo <ing### [at] homenl> wrote:
: turning the pigment_map into a
: texture_map won't work because the warps only work with pigments.
I really don't understand how would you use warps with finishes. How do
you warp a phong finish, for example?
--
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/
Post a reply to this message
|
|
|
|
Nieminen Juha <war### [at] cctutfi> schreef in berichtnieuws
37de296d@news.povray.org...
> I really don't understand how would you use warps with finishes. How
do
> you warp a phong finish, for example?
>
Mmm, it is not my intention to warp finishes. It just happens that I
made a tile_texture, using pigment- and normalwarps. To this texture I
want to assign a finish for one region and an other for an other region
(tile and joint). How to do that so that the finish repeats in the same
way the tile does?
I often have this kind of problems with finishes, for me a "finish_map"
would be a nice feature. Also it would be nice if a complete texture, or
even material could be warped. From a users point of view that is, I
have no idea of the technical feasibility of this.
Ingo
Post a reply to this message
|
|
|
|
On Tue, 14 Sep 1999 17:09:18 +0200, ingo wrote:
>I often have this kind of problems with finishes, for me a "finish_map"
>would be a nice feature. Also it would be nice if a complete texture, or
>even material could be warped. From a users point of view that is, I
>have no idea of the technical feasibility of this.
It seems relatively feasible. You can transform such things, so there's
no good reason why you couldn't warp them.
Post a reply to this message
|
|
|
|
ingo <ing### [at] homenl> wrote in message news:37de651f@news.povray.org...
> I often have this kind of problems with finishes, for me a "finish_map"
> would be a nice feature. Also it would be nice if a complete texture, or
> even material could be warped. From a users point of view that is, I
> have no idea of the technical feasibility of this.
I agree. I just layered a texture and used the identical warping on all
layers -- be easier if I could warp the whole thing.
And I know the warp applies to the pigment only -- the finish and normal is
taken from the final object's position. In my case, that's fine. But it
would be nicer if my bumps duplicated the warping (my thing is also floor
tiles, BTW)
--John
Post a reply to this message
|
|