POV-Ray : Newsgroups : povray.newusers : uv mapping on a bicubic patch question : Re: uv mapping on a bicubic patch question Server Time
29 Jul 2024 20:21:41 EDT (-0400)
  Re: uv mapping on a bicubic patch question  
From: Mike Williams
Date: 26 Feb 2005 02:54:53
Message: <Ac3IbAA9sCICFwSS@econym.demon.co.uk>
Wasn't it Mienai who wrote:
>So I have a bicubic patch and I'm trying to apply two marble pattern
>textures to it with uv mapping, one rotated 90 degrees from the other.
>Unfortunately the rotation causes the pattern to become stretched instead
>of being rotated.  Anyone know why and/or how to fix this?

You have to rotate around the z axis only.

(I suppose, theoretically, as a UV mapped texture you ought to rotate
around the W axis, but there isn't one.)

I used 


  uv_mapping
  
  texture {pigment {marble 
    scale 0.1 
    colour_map {[0.5 rgb 1][0.5 rgb x]}
    rotate z*90
  }}
  texture {pigment {marble
    scale 0.1 
    colour_map {[0.5 rgbt 1][0.5 rgb x]}
  }}



-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

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