POV-Ray : Newsgroups : povray.general : Vertex Color Map to UV mapped texture Server Time
27 Dec 2024 05:52:14 EST (-0500)
  Vertex Color Map to UV mapped texture (Message 1 to 6 of 6)  
From: Herve
Subject: Vertex Color Map to UV mapped texture
Date: 16 Dec 2005 10:20:01
Message: <web.43a2da7f23c2de89b2b09a220@news.povray.org>
I'm looking for a tool that would convert Vertex Color Map to UV mapped
texture.

I have a soft that generates either pov or vrml files in which objects that
count several hundreds thousand faces have their colors described
respectively with colored smooth triangles (in pov files) or colored
vertices (in vrml files). I would like to use the objects generated by this
software in moray.
The most convenient way that I was able to come with would consist to
convert the vrml object in a mesh for its import in moray. This part works
fine for the geometry but during this process the color information is
lost. Is there any mean to make a UV-map from the pov or vrml colored
objects in order to put it back on the geometry imported  in moray?


Post a reply to this message

From: Warp
Subject: Re: Vertex Color Map to UV mapped texture
Date: 17 Dec 2005 05:54:00
Message: <43a3ee48@news.povray.org>
Herve <her### [at] hotmailcom> wrote:
> I'm looking for a tool that would convert Vertex Color Map to UV mapped
> texture.

  I didn't understand what would you be using the uv information for.

  UV coordinates are texture coordinates. What would be your texture
where these coordinates are pointing at?

-- 
                                                          - Warp


Post a reply to this message

From: Herve
Subject: Re: Vertex Color Map to UV mapped texture
Date: 17 Dec 2005 13:05:02
Message: <web.43a45300c0865a5a93e52c210@news.povray.org>
hm...maybe my problem is meaningless or not very well explained since i'm a
real newbie!

The main problem here is that the color information of a vrml object is lost
during import in moray. The only way that i was thinking of to rescue the
colors in moray was 1st) to generate a UV map with the vertex color map of
the vrml object and 2nd) to use the generated UV map in moray to restore
the color of the imported vrml geometry.
To this end, we could imagine a tool that would generate a UV map by
projection of the color vertices or something like that...

Is there a basic notion that i don't get here??





Post a reply to this message

From: Warp
Subject: Re: Vertex Color Map to UV mapped texture
Date: 17 Dec 2005 16:48:55
Message: <43a487c7@news.povray.org>
Herve <her### [at] hotmailcom> wrote:
> 1st) to generate a UV map with the vertex color map of
> the vrml object and 2nd) to use the generated UV map in moray to restore
> the color of the imported vrml geometry.

  I don't really understand what you are trying to say.

  UV-coordinates are just that, coordinates (more specifically,
2D coordinates). There's nothing else to them. Basically they have
nothing to do with colors.

  UV coordinates can be used to map a texture onto the mesh. IOW the
UV coordinates say how the texture should be "stretched" (if we can
use that kind of description) and put onto the surface of the mesh.
One could think of a UV coordinate (eg. <0.1, 0.2>) as saying
"transform the texture so that the point at <0.1, 0.2> in the texture
ends up at this point in space (ie. the location of the vertex)".

  This is a bit different from specifying a per-vertex texture (which
can be just a single color).

  With UV coordinates one texture is applied to the mesh (and transformed
so that the texture coordinates coincide with the vertex coordinates).
With per-vertex textures several (non-transformed) textures are used and
interpolation is done from one texture to another.

-- 
                                                          - Warp


Post a reply to this message

From: Vincent LE CHEVALIER
Subject: Re: Vertex Color Map to UV mapped texture
Date: 18 Dec 2005 05:53:58
Message: <43a53fc6@news.povray.org>
Warp wrote:
> Herve <her### [at] hotmailcom> wrote:
> 
>>1st) to generate a UV map with the vertex color map of
>>the vrml object and 2nd) to use the generated UV map in moray to restore
>>the color of the imported vrml geometry.
> 
> 
>   I don't really understand what you are trying to say.
> 
>   UV-coordinates are just that, coordinates (more specifically,
> 2D coordinates). There's nothing else to them. Basically they have
> nothing to do with colors.
> 
>   UV coordinates can be used to map a texture onto the mesh. IOW the
> UV coordinates say how the texture should be "stretched" (if we can
> use that kind of description) and put onto the surface of the mesh.
> One could think of a UV coordinate (eg. <0.1, 0.2>) as saying
> "transform the texture so that the point at <0.1, 0.2> in the texture
> ends up at this point in space (ie. the location of the vertex)".
> 
>   This is a bit different from specifying a per-vertex texture (which
> can be just a single color).
> 
>   With UV coordinates one texture is applied to the mesh (and transformed
> so that the texture coordinates coincide with the vertex coordinates).
> With per-vertex textures several (non-transformed) textures are used and
> interpolation is done from one texture to another.
> 
I think that Herve is looking for something that would take the geometry 
and vertex colors as input, and output a UV-map (that is, an image 
containing color information, interpolated as needed) and the associated 
UV-coordinates for each vertex, in order to approximate per-vertex 
textures with a UV-map.
That said, I don't know of any such program...

-- 
Vincent


Post a reply to this message

From: Herve
Subject: Re: Vertex Color Map to UV mapped texture
Date: 31 Dec 2005 16:20:01
Message: <web.43b6f54fc0865a5a93e52c210@news.povray.org>
Absolutly Vincent!

You are right and I'm still stuck with my problem!
How to restore the colors of a vrml object imported in moray?


Post a reply to this message

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