<?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: Viewport 2.0 Bump node in Maya Programming Forum</title>
    <link>https://forums.autodesk.com/t5/maya-programming-forum/viewport-2-0-bump-node/m-p/6252005#M13327</link>
    <description>&lt;P&gt;Hi Li!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(Sorry for changing the accounts!)&lt;/P&gt;&lt;P&gt;So I created a simple test scene (maya ascii), there are two planes, one with a bump2d and one with our NormalMap shader, both connected into a different lambert shader (both connected to normalCamera attribute).&lt;/P&gt;&lt;P&gt;As you can see in the scene, the bump2d works fine, but with the NormalMap shader there is no bumping on the surface.&lt;/P&gt;&lt;P&gt;Also there is the mll and the png file as the map.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;P&gt;Ferenc&lt;/P&gt;</description>
    <pubDate>Tue, 05 Apr 2016 11:59:52 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-04-05T11:59:52Z</dc:date>
    <item>
      <title>Viewport 2.0 Bump node</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/viewport-2-0-bump-node/m-p/6241109#M13323</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I am making a VP2.0 surface shader and a seperate bump node. If I use Maya's Bump2d node the output is connected to the shader's Nw property correctly. But if I use my own bump node, it is only connected to the destination property not the Nw.&lt;/P&gt;&lt;P&gt;I read a lot about this method, and in my shader I defined the bumpAttribute() function correctly. As the Maya documentation writes the connection to the Nw property is only made if I connect a bump node to the shader, so I'm guessing that I have to tell somehow at the C++/Python code that the given node is a bump node. I tried to use the&amp;nbsp;&lt;EM&gt;utility/general/bump&amp;nbsp;&lt;/EM&gt;classification, it didn't work either.&lt;/P&gt;&lt;P&gt;Do you have any ideas what am I missing?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thx,&lt;/P&gt;&lt;P&gt;Ferenc&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2016 09:38:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/viewport-2-0-bump-node/m-p/6241109#M13323</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-30T09:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: Viewport 2.0 Bump node</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/viewport-2-0-bump-node/m-p/6251338#M13324</link>
      <description>&lt;P&gt;Hi ferenc,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you send me a sample so I could take a look at it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yours,&lt;/P&gt;
&lt;P&gt;Li&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2016 02:19:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/viewport-2-0-bump-node/m-p/6251338#M13324</guid>
      <dc:creator>cheng_xi_li</dc:creator>
      <dc:date>2016-04-05T02:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: Viewport 2.0 Bump node</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/viewport-2-0-bump-node/m-p/6251724#M13325</link>
      <description>&lt;P&gt;Hi li!&lt;/P&gt;&lt;P&gt;Thanks for helping!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I attached&amp;nbsp;the whole node: the basic, the override and the xml.&lt;/P&gt;&lt;P&gt;Unfortunately, we can't use Maya's default bumping node, because in the end we have to blend more normal maps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;Ferenc&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2016 09:08:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/viewport-2-0-bump-node/m-p/6251724#M13325</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-05T09:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: Viewport 2.0 Bump node</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/viewport-2-0-bump-node/m-p/6251813#M13326</link>
      <description>&lt;P&gt;Hi cluedo11,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'll work on it now.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the meantime, if you could attach a sample of both&amp;nbsp;nodes you mentioned and a sample&amp;nbsp;scene&amp;nbsp;would be better. I could have a full test environment to look at.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yours,&lt;/P&gt;
&lt;P&gt;Li&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2016 09:40:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/viewport-2-0-bump-node/m-p/6251813#M13326</guid>
      <dc:creator>cheng_xi_li</dc:creator>
      <dc:date>2016-04-05T09:40:02Z</dc:date>
    </item>
    <item>
      <title>Re: Viewport 2.0 Bump node</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/viewport-2-0-bump-node/m-p/6252005#M13327</link>
      <description>&lt;P&gt;Hi Li!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(Sorry for changing the accounts!)&lt;/P&gt;&lt;P&gt;So I created a simple test scene (maya ascii), there are two planes, one with a bump2d and one with our NormalMap shader, both connected into a different lambert shader (both connected to normalCamera attribute).&lt;/P&gt;&lt;P&gt;As you can see in the scene, the bump2d works fine, but with the NormalMap shader there is no bumping on the surface.&lt;/P&gt;&lt;P&gt;Also there is the mll and the png file as the map.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;P&gt;Ferenc&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2016 11:59:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/viewport-2-0-bump-node/m-p/6252005#M13327</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-05T11:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: Viewport 2.0 Bump node</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/viewport-2-0-bump-node/m-p/6253714#M13328</link>
      <description>&lt;P&gt;Hi ferenc,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've discussed this with our engineers. The bad news is there is no custom bump node available for Maya right now. Sorry about that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to acheive the goal, I think there will be&amp;nbsp;two possible options:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Write your own surface shader.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. Use MPxVertexBufferMutator to modify the vertexBuffer of certain semantic. I think this way will effect on all maya shaders which use the semantic. &amp;nbsp;There is a sample in our devkit: vertexBufferMutator and hwPhongShader. You can check it out.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yours,&lt;/P&gt;
&lt;P&gt;Li&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2016 05:47:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/viewport-2-0-bump-node/m-p/6253714#M13328</guid>
      <dc:creator>cheng_xi_li</dc:creator>
      <dc:date>2016-04-06T05:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: Viewport 2.0 Bump node</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/viewport-2-0-bump-node/m-p/6253795#M13329</link>
      <description>&lt;P&gt;Hi Li,&lt;/P&gt;&lt;P&gt;Actually we are using our own surface shader, I just didn't put it in the sample scene for keeping it simple.&lt;/P&gt;&lt;P&gt;The main problem, that it has a seperate normal_map attribute (plus a Nw attribute, where Maya connects it's normals).&lt;/P&gt;&lt;P&gt;I exported&amp;nbsp;the full&amp;nbsp;fragment graph and I realised that if I connect the bump2d node to the normal_map attribute Maya autimatically connects it to the Nw parameter and calculates the light with that map. But if I use our own NormalMap node it doesn't do this connection, so Maya uses it's own normals, not the connected map.&lt;/P&gt;&lt;P&gt;Is there anything I have to do in the surface shader to connect the NormalMap perfectly?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;Ferenc&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2016 06:52:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/viewport-2-0-bump-node/m-p/6253795#M13329</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-06T06:52:57Z</dc:date>
    </item>
    <item>
      <title>Re: Viewport 2.0 Bump node</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/viewport-2-0-bump-node/m-p/6253815#M13330</link>
      <description>&lt;P&gt;Hi ferenc,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am afraid you can only modify the normal map inside your own surface shader in that case. It's a part of geometry, the only chances to modify it is using a global MPxVertexBufferMutator or in your custom shader now.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yours,&lt;/P&gt;
&lt;P&gt;Li&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2016 07:07:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/viewport-2-0-bump-node/m-p/6253815#M13330</guid>
      <dc:creator>cheng_xi_li</dc:creator>
      <dc:date>2016-04-06T07:07:41Z</dc:date>
    </item>
  </channel>
</rss>

