POV-Ray : Newsgroups : povray.binaries.images : uv_mapping for cylinder, disc, cone & lemon : Re: uv_mapping for cylinder, disc, cone & lemon Server Time
26 Apr 2024 07:42:27 EDT (-0400)
  Re: uv_mapping for cylinder, disc, cone & lemon  
From: clipka
Date: 3 Sep 2018 19:21:06
Message: <5b8dc1e2$1@news.povray.org>
Am 03.09.2018 um 21:12 schrieb Le_Forgeron:
> user control is achieved by adding "uv_mapping direction" in cylinder,
> disc, cone and lemon
> 
> code available at
> https://github.com/LeForgeron/povray/commit/83a269c227ab08e6e426670f30ed18a524360b17
...

> cone { -y * 0.5, 0.5, 0.5 * y, 0.25  uv_mapping x texture { Verso }
> transform{ Trans }  translate VS* y + 6 * x }

I haven't taken a closer look at it yet, but I presume the UV mapping is
oriented such that the seam lies in the half-plane defined by the axis
of rotation and the vector specified after `uv_mapping`?

That's the parameterization I would have suggested, too.

However, I'm not happy with the syntax, as `uv_mapping` without any
parameter is already a valid general object modifier, which allows to
turn on UV mapping in the object rather than in the texture.

That modifier could be hacked to allow for an optional vector parameter
when the object is a cylinder, cone or lemon, but that would indeed be
rather... hackish.


Post a reply to this message

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