LANG: CLAMP and REPEAT

Cindy Reed ([email protected])
Thu, 7 Dec 1995 20:41:04 -0800


On Dec 7, 6:36pm, Adrian Scott wrote:
>
> i still don't understand the difference between CLAMP and REPEAT that
well.
>
>-- End of excerpt from Adrian Scott

Here's an updated version of the little test file I posted yesterday. To
compare CLAMP with REPEAT just change the effected lines.

--------------------------- Cut here -----------------------
#VRML V1.0 ascii

DEF Tex_Wrap_Test Separator {
Material {
diffuseColor 1 1 1
}
Texture2Transform {
rotation 0 # for wierd angles (around W)
scaleFactor 5 5 # Scale U and V
center 0 0 # texture origin (0 0 = bottom left?)
}
Texture2 {
filename "marble2.gif" # your favorite texture map
wrapS CLAMP # Don't rspeat in S (U)
wrapT CLAMP # Don't rspeat in T (V)
}
Cube {
width 2
height 2
depth 2
}
}
#EOF
-------------------------- cut here ------------------------

I hope this helps.

Cindy.

-- 
         _________________________________________
        |                                         |
    |\  | Cindy Reed          [email protected] |
  _/ .`-| 3Name3D / Yglesias,Wallock,Divekar,Inc. |    ,
  \ .4  |       CGI - MODELING - ANIMATION        |\__//
   `--'\|          http://www.ywd.com/            |`--'
       C|_________________________________________|

  • Next message: Cindy Reed: "LANG: CLAMP and REPEAT"
  • Previous message: Cindy Reed: "Re: LANG: rspeating textures"