POV-Ray : Newsgroups : povray.general : Texture maps Server Time
1 Aug 2024 06:21:42 EDT (-0400)
  Texture maps (Message 1 to 3 of 3)  
From: dragon9654
Subject: Texture maps
Date: 8 Apr 2006 18:20:00
Message: <web.4438363b4d2ff27191f9b85f0@news.povray.org>
ok, I'm a definat noob, and I can not figure out how to do texture maps. I
looked at the tutorial, but that just confused me, is there any sites out
there or ayone who can give an easy to understand answer as to how they
work? I would greatly appriciate it. thanks


Post a reply to this message

From: Bob H
Subject: Re: Texture maps
Date: 8 Apr 2006 19:00:53
Message: <443840a5$1@news.povray.org>
"dragon9654" <dra### [at] yahoocom> wrote in message 
news:web.4438363b4d2ff27191f9b85f0@news.povray.org...
> ok, I'm a definat noob, and I can not figure out how to do texture maps.
> looked at the tutorial, but that just confused me, is there any sites out
> there or ayone who can give an easy to understand answer

texture_map is a way to specify whole textures as parts of another pattern. 
Hopefully the following example is self explanatory, if not don't give up 
yet. If you figure out how color_map in pigments work, well, it's the same 
kind of thing.

#declare Texture1=
texture {
 pigment {
  bozo
  color_map {
   [0 red 1]
   [1 green 1]
  }
 }
 normal {
  wrinkles 0.5
 }
 finish {
  specular 0.5
  roughness 0.005
 }
 scale 0.25
}

#declare Texture2=
texture {
 pigment{
  granite
  color_map {
   [0 blue 1]
   [1 green 1]
  }
 }
 normal {
  bumps 0.5
 }
 finish {
  specular 0.5
  roughness 0.005
 }
 scale 0.5
}

// new texture using those in texture map
#declare TextureMap=
texture {
    marble // turbulence 0.5
    texture_map {
        [0 Texture1]
        [1 Texture2]
    }
}

sphere {0,1 texture {TextureMap}}

camera {location -3*z}
light_source {<10,10,-10>,1}


Post a reply to this message

From: dragon9654
Subject: Re: Texture maps
Date: 9 Apr 2006 01:30:01
Message: <web.44389ba62e9ebcfe91f9b85f0@news.povray.org>
"Bob H" <omniverse@charter%net> wrote:
> "dragon9654" <dra### [at] yahoocom> wrote in message
> news:web.4438363b4d2ff27191f9b85f0@news.povray.org...
> > ok, I'm a definat noob, and I can not figure out how to do texture maps.
> > looked at the tutorial, but that just confused me, is there any sites out
> > there or ayone who can give an easy to understand answer
>
> texture_map is a way to specify whole textures as parts of another pattern.
> Hopefully the following example is self explanatory, if not don't give up
> yet. If you figure out how color_map in pigments work, well, it's the same
> kind of thing.
>
> #declare Texture1=
> texture {
>  pigment {
>   bozo
>   color_map {
>    [0 red 1]
>    [1 green 1]
>   }
>  }
>  normal {
>   wrinkles 0.5
>  }
>  finish {
>   specular 0.5
>   roughness 0.005
>  }
>  scale 0.25
> }
>
> #declare Texture2=
> texture {
>  pigment{
>   granite
>   color_map {
>    [0 blue 1]
>    [1 green 1]
>   }
>  }
>  normal {
>   bumps 0.5
>  }
>  finish {
>   specular 0.5
>   roughness 0.005
>  }
>  scale 0.5
> }
>
> // new texture using those in texture map
> #declare TextureMap=
> texture {
>     marble // turbulence 0.5
>     texture_map {
>         [0 Texture1]
>         [1 Texture2]
>     }
> }
>
> sphere {0,1 texture {TextureMap}}
>
> camera {location -3*z}
> light_source {<10,10,-10>,1}

Thanks a lot, I'll play around with that, it's starting to make
more sense now, thanks


Post a reply to this message

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