POV-Ray : Newsgroups : povray.general : Mapping Textures on irregular shapes : Re: Mapping Textures on irregular shapes Server Time
24 Apr 2024 12:50:17 EDT (-0400)
  Re: Mapping Textures on irregular shapes  
From: Thomas de Groot
Date: 22 Apr 2020 03:06:22
Message: <5e9fecee@news.povray.org>
Welcome indeed to the club!

What you want is uv_mapping; see: 
http://wiki.povray.org/content/Reference:UV_Mapping . For complex 
objects though, you will need to "uv_map" them in another program like 
Wings3D or Blender (possibly the program where you built the complex 
object in the first place) and export, for instance an OBJ file to 
POV-Ray (mesh2 file) using Poseray as bridge for example; see: 
https://sites.google.com/view/poseray .

Thomas



Op 22/04/2020 om 07:52 schreef Josh:
> I am trying to figure out how to map a texture onto 3D shapes that don't
> resemble spheres, cylinders, etc., described by the map_type. Say for example I
> have an asteroid shape that resembles a big baby rattle, where one end bulges
> much more than the other. When I apply an image's texture to the shape, the
> image is very stretched on the parts that bulge and looks shrunk elsewhere. Is
> there a way to map a texture onto an irregular shape where the surface area of
> the texture map is evenly applied to the surface area of the shape?
> 
> I'm a beginner at pov-ray, and I don't know if I'm explaining this well. Does
> that make sense?
> 
> Maybe another way to say it is that for a given surface area of the shape, I
> want the same surface area of the texture to be used, regardless of the shape
> the texture is being applied to.
> 
> I'm using a texture map like this and have tried all the different map_type
> options.
> 
> texture {
>    pigment{ image_map { png "texture.png"  map_type 1 interpolate 2} }
> }
> 
> Thanks for any hints.
> 
> Josh
> 
> 
> 


-- 
Thomas


Post a reply to this message

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