POV-Ray : Newsgroups : povray.general : Mapping Textures on irregular shapes : Mapping Textures on irregular shapes Server Time
15 Jul 2024 07:39:33 EDT (-0400)
  Mapping Textures on irregular shapes  
From: Josh
Date: 22 Apr 2020 01:55:00
Message: <web.5e9fdb9c556fd9dfdc1270cd0@news.povray.org>
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


Post a reply to this message

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