Add vertices normal

Component:YafaRay Core
Category:feature request
Assigned:David Bluecame


I would like to make a request.

It would be really useful to be able to add vertices normals to the mesh and disable the automatic calculation based on the smooth angle of the mesh.

It's possible?

Best regards


Acca Software S.p.a




Will you please explain this with more details, and examples if possible?

Thanks and best regards.


Hello David.

The idea is to add the vertex normals to define the smooth edges; then disable the smootging angle.

<mesh id="0" vertices="8" faces="12" has_norm="true" has_orco="false" has_uv="true" type="0">
<p x="1" y="1" z="0"/>
<p x="0" y="1" z="0"/>
<p x="0" y="1" z="1"/>
<p x="1" y="1" z="1"/>

<n x="0.000"     y="0.000"     z="0.000"/>
<n x="0.000000"  y="0.000000"  z="-0.025400"/>
<n x="-0.025400" y="0.000000"  z="0.000000"/>
<n x="0.000000"  y="0.000000"  z="0.025400"/>


<uv u="0" v="3.28083992004395"/>
<uv u="-3.28083992004395" v="0"/>
<uv u="0" v="0"/>
<uv u="-3.28083992004395" v="0"/>

<set_material sval="Material_0" />
<f a="2" b="0" c="1" n_a="0" n_b="1" n_c="2" uv_a="0" uv_b="1" uv_c="2"/>
<f a="0" b="2" c="3" n_a="0" n_b="2" n_c="3" uv_a="3" uv_b="4" uv_c="5"/>
<f a="2" b="4" c="5" n_a="0" n_b="1" n_c="2" uv_a="6" uv_b="7" uv_c="8"/>
<f a="4" b="2" c="1" n_a="0" n_b="1" n_c="2" uv_a="9" uv_b="10" uv_c="11"/>

<smooth ID="0" angle="45"/>  //non used with has_norm="true";

Best regards.


Assigned to:Anonymous» David Bluecame