POV-Ray : Newsgroups : povray.general : Mapping Textures on irregular shapes : Re: Mapping Textures on irregular shapes Server Time
23 Apr 2024 20:19:11 EDT (-0400)
  Re: Mapping Textures on irregular shapes  
From: Josh
Date: 22 Apr 2020 19:50:01
Message: <web.5ea0d80a72e01857dc1270cd0@news.povray.org>
Thanks, this is helpful! If I have a shape in Wings3D for example and export it
as an OBJ, will it automatically have a "uv_map"? Or do I have to 'create' one
by hand?

Josh


Thomas de Groot <tho### [at] degrootorg> wrote:
> 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.