Hello!
I have used OpenGL for some time and am used to having a color for each vertex
in objects.
Is there some way to convert an object (such as a triangle mesh) where there are
colors for each vertex into some POV-Ray equivalent?
I used image maps with uv mapping when it is simple to construct an image from
the colors, for example when they are placed in a regular 2D grid, but for
arbitrary meshes I don't really know any easy way out.
I know that one can "unwrap" a mesh with for example Blender, but I would prefer
to just be able to specify the vertex colors directly.
From: Warp
Subject: Re: Color per vertex triangle mesh to suitable POV-Ray construct
Date: 4 Dec 2009 13:48:07
Message: <4b195967@news.povray.org>
PerNyblom <per### [at] hotmailcom> wrote:
> Is there some way to convert an object (such as a triangle mesh) where there are> colors for each vertex into some POV-Ray equivalent?
You can define a texture for each vertex point of a mesh.
--
- Warp
From: Hugo
Subject: Re: Color per vertex triangle mesh to suitable POV-Ray construct
Date: 4 Dec 2009 15:08:58
Message: <op.u4fjkxcc52h720@blackbishop>
On Fri, 04 Dec 2009 16:38:51 -0200, PerNyblom <per### [at] hotmailcom> wrote:
> Hello!>> I have used OpenGL for some time and am used to having a color for each > vertex> in objects.> Is there some way to convert an object (such as a triangle mesh) where > there are> colors for each vertex into some POV-Ray equivalent?
Yes, a mesh2 lets you specify textures for each triangle vertex.
(http://www.povray.org/documentation/view/3.6.1/293/ )
Hugo.