[Soc-2017-dev] vertex paint project - ply exporter

Howard Trickey howard.trickey at gmail.com
Tue Jul 18 15:48:55 CEST 2017


Darshan,

I made a little python function to dump the vertex (loop) colors on the
console.  You may find this useful.  If you put this in, say, the
release/scripts/startup folder then you can use the <Space>-menu to search
for 'Dump Vertex Colors'.  To see which faces and vertices correspond to
which dumped colors, you can start blender with --debug and then enable the
'indices' visualization box in the right-hand panel of view3d (when in Edit
mode) to see the indices of the currently selected elements.

I think there may be a problem with the ply exporter, discovered by using
this. I made a simple plane quad and put different colors and alphas on
each, and then the ply exporter seemed to have an off-by-one error in
lining up colors with vertices. But I looked briefly at the code and didn't
see what was wrong.

I also checked the interpolation of alpha's when subdividing and agree with
you that it seems to be doing approximately the right thing, so the problem
is somehow in the visualization code.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.blender.org/pipermail/soc-2017-dev/attachments/20170718/6b4d7747/attachment.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vertex_color_dump.py
Type: text/x-python
Size: 1400 bytes
Desc: not available
Url : http://lists.blender.org/pipermail/soc-2017-dev/attachments/20170718/6b4d7747/attachment.py 


More information about the Soc-2017-dev mailing list