POV-Ray : Newsgroups : povray.bugreports : uv_mapping bug on cylinders : Re: uv_mapping bug on cylinders Server Time
18 Apr 2024 08:20:10 EDT (-0400)
  Re: uv_mapping bug on cylinders  
From: Thomas de Groot
Date: 4 Aug 2022 02:40:01
Message: <62eb69c1@news.povray.org>
Op 04/08/2022 om 01:35 schreef Bald Eagle:
> Supplemental Aside #3:
> 
> You can also uv-map an object by writing your own function to texture the
> object's surface.   If you're into that sort of thing.
> 
>
http://news.povray.org/povray.binaries.images/thread/%3Cweb.5d5757a84c72a7284eec112d0%40news.povray.org%3E/?ttop=430135
> &toff=50
> 

...which reminds me to ask you (curiosity): how does

#declare U = function (X, Y, Z) {(0.5 + atan2 (N(Z, X,Y,Z), N(X, 
X,Y,Z))/(2*pi))}
#declare V = function (X, Y, Z) {(0.5 + asin(N(Y, X,Y,Z))/pi)}

work? is puzzling, as far as atan2 and asin are concerned.

-- 
Thomas


Post a reply to this message

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