<div dir="ltr"><p dir="ltr">Darshan,<br>
</p>
<div>The changes I suggested were just a start to get it working in the most basic case. Good that you got the basic alpha display working!</div><div><br></div><div>So far, you changed cdDM_drawMappedFaces, which is used to draw the faces for a basic type of derived mesh. But there are other kinds of derived meshes too, and you should try to figure out how to change those too, if you can.  Search for drawMappedFaces in the blenkernel/intern directory and you will see the other versions of the drawing function. When you add a Subdivision Surface modifier, the drawing function will be ccgDM_drawMappedFaces in subsurf_ccg.c .  See if you can figure out yourself how to change the function. See if you can figure out in what circumstances other versions of the drawMappedFaces function are called, and whether or not you think those are important cases to fix.<br></div><div><br></div><div>Another case where the current code doesn&#39;t work for displaying alpha is when you have pushed the &#39;Face selection used for masking&#39; or &#39;Vertex selection used for masking&#39; buttons in vertex paint.  You may want to see if you can figure out how to fix those cases too.</div><div><br></div><div>I put some hints on how the drawing code works in the basic case in our shared notes, doc, <a href="https://docs.google.com/document/d/1SX6ASWpYPoJ3EYJri8bX3BfXC5e-mOmraZkKMH8z4_U">https://docs.google.com/document/d/1SX6ASWpYPoJ3EYJri8bX3BfXC5e-mOmraZkKMH8z4_U</a></div><div><br></div><div>You can generally figure out stuff like this yourself by putting breakpoints at interesting places in the code and step through from the breakpoints, to see what code is called, what direction tests go, etc.</div><div><br></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Jul 14, 2017, 5:00 AM Darshan  kadu &lt;<a href="mailto:darsh7807@gmail.com" target="_blank">darsh7807@gmail.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello, Mr. Howard,<div><br>I have pushed the suggested changes. It is working properly for the meshes without subdividing.</div><div>But after the subdivide it is giving the rectangularly shaped spots. I tried, but I am not getting any hints. What can be happening?</div><div><br></div><div>Thank you,</div></div><div class="gmail_extra"><br></div>
</blockquote></div></div>