POV-Ray : Newsgroups : povray.general : Is it possible to warp the UV coordinates of a 2D texture map? : Re: Is it possible to warp the UV coordinates of a 2D texture map? Server Time
23 Apr 2024 16:46:17 EDT (-0400)
  Re: Is it possible to warp the UV coordinates of a 2D texture map?  
From: Le Forgeron
Date: 15 Jan 2022 03:04:35
Message: <61e28013$1@news.povray.org>
Le 14/01/2022 à 21:11, tutki a écrit :
> 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?
> 
> 
> 

As per the sphere object itself, the UV mapping are hard-coded (not even
in memory, just computed when needed)
But I wonder if there is something that would stop you from applying
warp to the texture.


Post a reply to this message

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