POV-Ray : Newsgroups : povray.general : Is it possible to warp the UV coordinates of a 2D texture map? : Is it possible to warp the UV coordinates of a 2D texture map? Server Time
17 Aug 2022 10:21:09 EDT (-0400)
  Is it possible to warp the UV coordinates of a 2D texture map?  
From: tutki
Date: 14 Jan 2022 15:15:00
Message: <web.61e1d8a1565413375c8e85ceb98f01db@news.povray.org>
I have a sphere that I want to apply a 2D texture to, using UV mapping.  But I
want to distort the UV coordinates such that the texture looks like it's pushed
away from a hole that I'm CSG-subtracting from the sphere.  Basically, given
some (u,v) that povray generates when a ray intersects with the sphere, is it
possible to "post-process" the coordinates with some functions f, g, so that the
texture is looked up at coordinates (f(u), g(v)) instead of (u,v)?

Is it possible to do this, or do I have to somehow distort the texture itself?


Post a reply to this message

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