[Soc-2017-dev] Weekly Report #07 - Vertex Painting Improvement.

Darshan kadu darsh7807 at gmail.com
Fri Jul 14 20:36:33 CEST 2017


Hello everyone,

Here are the updates of the seventh week.

*What I did this week:*

This week I continued my work on vertex alpha.

 In last week's code for the alpha channel, there was a problem that it was
not setting the alpha value properly to all the vertices. It was due to the
fac that goes into the mcol functions, if fac was out of range that is(
0,255) then alpha was not set. I changed it, so that vertex has the alpha
value defined by the used irrespective of the fac value.

I completed the ply exporter. It was taking the vertex color information
from the Mcol,
but it was limited to 3 colors i.e RGB, so I extended the corresponding RNA
so that now it is possible to access the alpha from the ply exporter.
Hence, once I got the access to the alpha I just append it to the RGB in
the ply exporter.

The next task was fbx exporter. I took me some time to understand it, as it
is in python. There was an addon created for it by the artists
https://forum.unity3d.com/threads/vertex-rgba-blender-2-5x.254038/
The current fbx exporter was setting the alpha to 1 by default. I replaced
it with the alpha value from mloopcol. It is working well as tested on
unity with c# script.

I faced the problem to commit the code in the addon folder.  So, I moved
the modified addon files into the startup folder and then commit the code.
This is the temporary solution as the add-ons have the separate repository.

Next, I did Collada exporter. I was simple. I extended the current code for
alpha.

Then, I started the task of showing the alpha in the 3d view. I have made
the preliminary changes to it. It is working for basic cases still, have to
make many changes to.

*What I plan to do next:*

I will complete the task of the alpha in 3d view, it is lacking for the
cases like mesh subdivide, face selection etc.

I am getting the feedback on the blender artist thread about the vertex
alpha e.g. setting the alpha value. I will solve this problem.

Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.blender.org/pipermail/soc-2017-dev/attachments/20170715/200deb9a/attachment.htm 


More information about the Soc-2017-dev mailing list