POV-Ray : Newsgroups : povray.binaries.images : black reflections on shiny balls Server Time
3 Aug 2024 04:14:12 EDT (-0400)
  black reflections on shiny balls (Message 11 to 12 of 12)  
<<< Previous 10 Messages Goto Initial 10 Messages
From: Johan Feyaerts
Subject: Re: black reflections on shiny balls
Date: 29 Jan 2007 13:34:02
Message: <45be3e1a$1@news.povray.org>
tried the following:
//#if (strcmp(texturepic,"")=0)
        texture{
                pigment { color rgb <1,1,1>  }
                finish{ finball  }

                }
//#end
        #if (strcmp(pic,"")!=0)
        texture{
                pigment {

                        image_map
                                {
                                        gif   pic
                                        //  map_type 1
                                        #declare j=0;
                                        #declare 
jmax=dimension_size(filterarr,1);
                                        #while (j<jmax)
                                                filter   filterarr[j], 1
                                        #declare j=j+1;
                                        #end//

                                        once
                                }
                        scale <1,1,1>*1.2

                        warp {
                                spherical

                                orientation z
                                dist_exp 1
                                }

                        // translate <0,1.1,0>
                        //  rotate 100*y  //color rgbf <1,1,0>
                        // rotate x*-22
                        // scale  0.1

                        }
                scale mapscale
                rotate y*130
                finish{finpic}
                }
#end
#declare ttextur=   texture { pigment {rgbt <1,1,1,1>} normal {bumps 1 scale 
.01}};
#if (strcmp(texturepic,"")!=0)

      texture { uv_mapping
        image_pattern { gif texturepic  }
        texture_map {
                [0 uv_mapping ttextur]
                [1 uv_mapping textur scale 1/mapscale]
                }

         scale mapscale
         translate <0,1.02*mapscale,0>
rotate <0,15,0>
translate <0,1,0>

        }
but pov complains that it cannot layer a patterned texture over another. I 
think it's the first and the last texture that are conflicting. If I just 
put the shiny finish in the texture map then it gets bumps like the metal 
part in textur which is not the intention.

#end
"Ben Chambers" <ben### [at] pacificwebguycom> wrote in message 
news:45bd78e5@news.povray.org...
> Johan Feyaerts wrote:
>> I think I tried that already but pov protested that image maps could not 
>> be combined with texture maps.
>
> An image_map is a pigment type, which is part of a texture.  So you 
> shouldn't try to combine the two.
>
> Instead, declare the image map as the pigment of a complete texture, and 
> layer that with another complete texture.
>
> ...Chambers


Post a reply to this message

From: Ben Chambers
Subject: Re: black reflections on shiny balls
Date: 2 Feb 2007 03:56:39
Message: <45c2fcc7@news.povray.org>
Johan Feyaerts wrote:
> but pov complains that it cannot layer a patterned texture over another. I 
> think it's the first and the last texture that are conflicting. If I just 
> put the shiny finish in the texture map then it gets bumps like the metal 
> part in textur which is not the intention.
> 

Try it like this:

#declare foo = texture { <first texture here> }
#declare bar = texture { <texture w/ image map here> }

texture {average texture_map {[1 foo][1 bar]}}

...Chambers


Post a reply to this message

<<< Previous 10 Messages Goto Initial 10 Messages

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