[Bf-cycles] Set custom normals in a mesh

F Escobar materialesescobar at hotmail.es
Tue Feb 6 14:54:21 CET 2018

the right one was ATTR_STD_VERTEX_NORMAL but you helped a lot giving me the tip of searching for attributes.

Thank you!
De: Bf-cycles <bf-cycles-bounces at blender.org> en nombre de Mohamed Sakr <3dsakr at gmail.com>
Enviado: martes, 6 de febrero de 2018 10:54
Para: Discussion list to assist Cycles render engine developers
Asunto: Re: [Bf-cycles] Set custom normals in a mesh

just use an attribute.
Attribute *attr = attributes.add(ustring(name), TypeDesc::TypeNormal, ATTR_ELEMENT_CORNER);
float3 *attr_data = attr->data_float3();

On Tue, Feb 6, 2018 at 9:01 AM, F Escobar <materialesescobar at hotmail.es<mailto:materialesescobar at hotmail.es>> wrote:
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.

Regards, F.

Bf-cycles mailing list
Bf-cycles at blender.org<mailto:Bf-cycles at blender.org>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.blender.org/pipermail/bf-cycles/attachments/20180206/a502ebff/attachment.html>

More information about the Bf-cycles mailing list