POV-Ray : Newsgroups : povray.general : uv mapping : Re: uv mapping Server Time
9 Aug 2024 01:19:58 EDT (-0400)
  Re: uv mapping  
From: Gilles Tran
Date: 9 Sep 2000 05:17:20
Message: <39B9FF93.71F90177@inapg.inra.fr>
ryan constantine wrote:

> i tried to 'UVMapper' an obj file i exported from hamapatch, and then
> tried to convert it with pose2pov and objuvpov with no luck.  i can't
> get the uvmap to look right and i keep getting an error when i run the
> pov file that says 'mesh normal index out of range'.

Perhaps you could try the latest version of 3DWIN, which seems to be quite
reliable when converting to mesh2 (no crash so far).

> i don't have a uv map.  i was using uvmapper to generate one
> and it looked kind of messed up no matter what i tried.

What do you mean by "messed up" ? I've seen a lot a weird things there...
I've no experience with Hamapatch though.
If you mean that the model looks right but that the different parts are
superposed, there's nothing you can do but exporting and mapping the parts
separately, using the most appropriate mapping model (box, sphere, cylinder
etc.) for each part. One very important thing is to save both the uvmap AND
the obj model in uvmapper, otherwise the uv info is not added to the obj.


> by the way, in uvmapper, when you set the uvmap size, are you just
> setting the image size or does that information get passed to the pov
> and/or inc files?

AFAIK, the uvmap size and ratio does not affect the way it's shown on the
object (the coordinates are not absolute but relative to the map width and
height). Note that I know this just from observation (I often scale down the
maps for testing purposes) and the reality could be more complex.
I hope this helps
G.


Post a reply to this message

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