<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to properly set vertex normal in an editable mesh in 3ds Max Programming Forum</title>
    <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/how-to-properly-set-vertex-normal-in-an-editable-mesh/m-p/4220403#M19504</link>
    <description>Two and a half years later... (sorry for the bump btw)&lt;BR /&gt;&lt;BR /&gt;Is this ever going to be fixed? SetNormal and setFaceNormal have been broken for god knows how long.&lt;BR /&gt;&lt;BR /&gt;My friend and I are working on a geometry generation script and would really like to automate normals as well.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;P.S. I know vertex normals can be set with the Edit_Normals modifier, but it's very very slow.</description>
    <pubDate>Sun, 31 Mar 2013 16:53:37 GMT</pubDate>
    <dc:creator>RaduCosma</dc:creator>
    <dc:date>2013-03-31T16:53:37Z</dc:date>
    <item>
      <title>How to properly set vertex normal in an editable mesh</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/how-to-properly-set-vertex-normal-in-an-editable-mesh/m-p/4220400#M19501</link>
      <description>Hi, I was trying something simple. Change the vertex normal in an editable mesh.&lt;BR /&gt;At least I thought it was simple. Here it is:&lt;BR /&gt;&lt;BR /&gt;- Start a new scene&lt;BR /&gt;- Create a sphere in , 50m of radius and with 10 segments&lt;BR /&gt;- Convert the sphere to Editable_Mesh&lt;BR /&gt;- With Maxscript, I am trying to change the normal for vertex index 3&lt;BR /&gt;- First, read the normal for vertex index 3&lt;BR /&gt;- Second, set the normal to something else&lt;BR /&gt;- Third, read the normal for the same vertex, to be sure it changed&lt;BR /&gt;- Update the mesh&lt;BR /&gt;- Read the normal again. This time, it's back to the original value&lt;BR /&gt;&lt;BR /&gt;In Maxscript editor:&lt;BR /&gt;&lt;BR /&gt;getNormal $Sphere001 3 --The result will be &lt;BR /&gt;setNormal $Sphere001 3 &lt;BR /&gt;getNormal $Sphere001 3 --The result will be  as expected, but no changes in the viewport&lt;BR /&gt;update $Sphere001 --To update the mesh&lt;BR /&gt;getNormal $Sphere001 3 --The result is the same as the original normal&lt;BR /&gt;&lt;BR /&gt;I am probably doing something wrong and forgeting something.&lt;BR /&gt;Any help is very appreaciate.&lt;BR /&gt;Thanks in advance.</description>
      <pubDate>Fri, 16 Sep 2011 19:02:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/how-to-properly-set-vertex-normal-in-an-editable-mesh/m-p/4220400#M19501</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-09-16T19:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to properly set vertex normal in an editable mesh</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/how-to-properly-set-vertex-normal-in-an-editable-mesh/m-p/4220401#M19502</link>
      <description>Maybe I am wrong, it's just an idea, but can you really set the normal of a vertice ? &lt;BR /&gt;I thought the normal of a given vertice was "by constrution" the mean value of the normals of the "associated" faces.&lt;BR /&gt;&lt;BR /&gt;-amarhys</description>
      <pubDate>Mon, 19 Sep 2011 12:19:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/how-to-properly-set-vertex-normal-in-an-editable-mesh/m-p/4220401#M19502</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-09-19T12:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to properly set vertex normal in an editable mesh</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/how-to-properly-set-vertex-normal-in-an-editable-mesh/m-p/4220402#M19503</link>
      <description>And you are right. The vertex normal is the result of all the adjacent face normals and smooth groups.&lt;BR /&gt;But Maxscript help states that one could change the vertex normal using the following line:&lt;BR /&gt;&lt;BR /&gt;setNormal "mesh" "vert_index_integer" "point3"&lt;BR /&gt;Sets the indexed vertex's normal vector.&lt;BR /&gt;&lt;BR /&gt;You would find this under Mesh Vertex Method.&lt;BR /&gt;But it's not working for me.&lt;BR /&gt;I thought the principle was the same as using the Edit_Normal modifier.&lt;BR /&gt;&lt;BR /&gt;I am trying to get an answer from Autodesk about the reason, why this line of code doen't work.</description>
      <pubDate>Mon, 19 Sep 2011 18:29:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/how-to-properly-set-vertex-normal-in-an-editable-mesh/m-p/4220402#M19503</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-09-19T18:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to properly set vertex normal in an editable mesh</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/how-to-properly-set-vertex-normal-in-an-editable-mesh/m-p/4220403#M19504</link>
      <description>Two and a half years later... (sorry for the bump btw)&lt;BR /&gt;&lt;BR /&gt;Is this ever going to be fixed? SetNormal and setFaceNormal have been broken for god knows how long.&lt;BR /&gt;&lt;BR /&gt;My friend and I are working on a geometry generation script and would really like to automate normals as well.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;P.S. I know vertex normals can be set with the Edit_Normals modifier, but it's very very slow.</description>
      <pubDate>Sun, 31 Mar 2013 16:53:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/how-to-properly-set-vertex-normal-in-an-editable-mesh/m-p/4220403#M19504</guid>
      <dc:creator>RaduCosma</dc:creator>
      <dc:date>2013-03-31T16:53:37Z</dc:date>
    </item>
  </channel>
</rss>

