POV-Ray : Newsgroups : povray.advanced-users : Brick, material, texture, pigment, color.... : Brick, material, texture, pigment, color.... Server Time
16 May 2024 02:08:41 EDT (-0400)
  Brick, material, texture, pigment, color....  
From: Bald Eagle
Date: 28 Aug 2014 14:20:01
Message: <web.53ff71d6848b38545e7df57c0@news.povray.org>
So, I have a two-fer:

I'm simply trying to model a cinder block wall that has been painted a fairly
uniform color.
Problem One arose when I tried to apply BRICK as a normal.  My
acceptable-for-a-WIP texture got fubarred and my walls all now have a banded
effect. (see p.b.i)
Problem Number Two is that I'd like to have the paint look like... paint.  So I
want the brick and the mortar components to have my paint definition.  Which is
a MATERIAL.   BRICK does not seem to play well with MATERIAL, and POV-Ray is
giving me the "number one" sign.

Which leads to my related question:
Is there a way to get the hierarchy of material, texture, pigment, color.... to
play well together?  What I mean is, if I define A = pigment {Red},
then it seems to me that I ought to be able to do the following:
This_Pigment = pigment {A}
That_Texture = texture {A}
My_Material = material {A}
because the pigment is a subordinate component.
It seems ... unnecessary(?)  to have to:
That_Texture = texture {pigment {A}}
My_Material = material {texture {pigment {A}}}
when the material and texture directives are merely wrappers that contain no
additional components.
I'm thinking these things ought to get automatically upgraded somehow...

It's tough to juggle these things and keep them all compatible with each other,
so I started to define everything as a material so I didn't have to keep track
of what was a material and what was a texture and what was only a pigment in my
object definitions.  Seems that's coming around to nip me.

Brick troubles:
================================================================

#declare White_Paint = material { texture {pigment {color White}  finish{diffuse
0.9 } normal {bumps scale <1,.1,.1>}} };

#declare White_Wall =
material { texture{ pigment {brick  //material {White_Paint} //  no likey
     //material {White_Paint} //  no worky
     pigment {Gray50}
     pigment {color rgb <0.96, 0.93, 0.86>}
     brick_size <8, 8, 16> }
     normal {brick brick_size <8, 8, 16>} finish {diffuse 0.9 phong 0.2}} };

Somebody please set me straight here.


Post a reply to this message

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