<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);">
the right one was ATTR_STD_VERTEX_NORMAL but you helped a lot giving me the tip of searching for attributes.</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);">
Thank you!</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>De:</b> Bf-cycles <bf-cycles-bounces@blender.org> en nombre de Mohamed Sakr <3dsakr@gmail.com><br>
<b>Enviado:</b> martes, 6 de febrero de 2018 10:54<br>
<b>Para:</b> Discussion list to assist Cycles render engine developers<br>
<b>Asunto:</b> Re: [Bf-cycles] Set custom normals in a mesh</font>
<div> </div>
</div>
<div>
<div dir="ltr">just use an attribute.<br>
<div><span style="white-space:pre"></span>Attribute *attr = attributes.add(ustring(name), TypeDesc::TypeNormal, ATTR_ELEMENT_CORNER);</div>
<div><span style="white-space:pre"></span>float3 *attr_data = attr->data_float3();</div>
</div>
<div class="x_gmail_extra"><br>
<div class="x_gmail_quote">On Tue, Feb 6, 2018 at 9:01 AM, F Escobar <span dir="ltr">
<<a href="mailto:materialesescobar@hotmail.es" target="_blank">materialesescobar@hotmail.es</a>></span> wrote:<br>
<blockquote class="x_gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div dir="ltr">
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgba(0,0,0,0)">
<div style="font-style:normal; font-weight:400; font-size:12pt; font-family:Calibri,Helvetica,sans-serif,serif,EmojiFont; color:rgb(0,0,0); background-color:rgba(0,0,0,0)">
Besides that trusting in cycles to re-create the smooth normals in the meshes seems to be ok, I was wondering if there is anyway to write custom normals, modify them and so.</div>
<div style="font-style:normal; font-weight:400; font-size:12pt; font-family:Calibri,Helvetica,sans-serif,serif,EmojiFont; color:rgb(0,0,0); background-color:rgba(0,0,0,0)">
<br>
</div>
<div style="font-style:normal; font-weight:400; font-size:12pt; font-family:Calibri,Helvetica,sans-serif,serif,EmojiFont; color:rgb(0,0,0); background-color:rgba(0,0,0,0)">
<br>
</div>
<div style="font-style:normal; font-weight:400; font-size:12pt; font-family:Calibri,Helvetica,sans-serif,serif,EmojiFont; color:rgb(0,0,0); background-color:rgba(0,0,0,0)">
Regards, F.</div>
<br>
</div>
</div>
<br>
______________________________<wbr>_________________<br>
Bf-cycles mailing list<br>
<a href="mailto:Bf-cycles@blender.org">Bf-cycles@blender.org</a><br>
<a href="https://lists.blender.org/mailman/listinfo/bf-cycles" rel="noreferrer" target="_blank">https://lists.blender.org/<wbr>mailman/listinfo/bf-cycles</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</body>
</html>