<?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: Inbuilt Shader in Vuforia Studio</title>
    <link>https://www.ptcusercommunity.com/t5/Vuforia-Studio/Inbuilt-Shader/m-p/1007884#M12961</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/478189"&gt;@Aditya1702&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;regarding your question for the planer shader according to&amp;nbsp;&lt;A href="https://support.ptc.com/help/vuforia/studio/en/#page/Studio_Help_Center%2FModelShaders.html" target="_blank" rel="noopener"&gt;https://support.ptc.com/help/vuforia/studio/en/#page/Studio_Help_Center%2FModelShaders.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;-&amp;gt; required is the center of the cut plane and a normal vector which defines the direction /normal to the cut plane.&lt;/P&gt;
&lt;P&gt;Example of&amp;nbsp; js code which will set at begin the shader and then on change of the slider will move the position of the plane e.g along x:&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;$scope.init = function() {
  $scope.app.planarCutModel=$scope.view.wdg['model-1'];
  $scope.app.planar_cut_str = 'planar_cut; clipCenterX f '+$scope.app.params.clipCenterX+
                                                          '; clipCenterY f ' +$scope.app.params.clipCenterY+
                                                          '; clipCenterZ f ' +$scope.app.params.clipCenterZ+
                                                          '; clipAxisX f '+$scope.app.params.clipAxisX+
    													  '; clipAxisY f '+$scope.app.params.clipAxisY+
    													  '; clipAxisZ f '+$scope.app.params.clipAxisZ+
    													  '; clipLineWidth f '+$scope.app.params.clipLineWidth+';';

 
  $scope.app.planarCutModel.shader =  $scope.app.planar_cut_str;
  $scope.$applyAsync();
};

angular.element(window.document.body).ready($scope.init);
//===========================
$scope.app.updateShaders=()=&amp;gt;{

$scope.app.planar_cut_str = 'planar_cut; clipCenterX f '+$scope.app.params.clipCenterX+
                                                          '; clipCenterY f ' +$scope.app.params.clipCenterY+
                                                          '; clipCenterZ f ' +$scope.app.params.clipCenterZ+
                                                          '; clipAxisX f '+$scope.app.params.clipAxisX+
    													  '; clipAxisY f '+$scope.app.params.clipAxisY+
    													  '; clipAxisZ f '+$scope.app.params.clipAxisZ+
    													  '; clipLineWidth f '+$scope.app.params.clipLineWidth+';';
  $scope.app.planarCutModel.shader = $scope.app.planar_cut_str;
  $scope.$applyAsync();

}&lt;/LI-CODE&gt;
&lt;P&gt;here I used parameter which I could bind to the widget value - e.g. the clipCenerX with the slider 2d widget. There to fit the value some filter in the slider binding like that:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2025-04-01_10-26-59.jpg" style="width: 637px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/120893iDE7ABFD7D09E2167/image-size/large?v=v2&amp;amp;px=999" role="button" title="2025-04-01_10-26-59.jpg" alt="2025-04-01_10-26-59.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;So the clipLineWith is the with of the white clipLine&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2025-04-01_10-30-18.jpg" style="width: 999px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/120897iE667B292EE7B5126/image-size/large?v=v2&amp;amp;px=999" role="button" title="2025-04-01_10-30-18.jpg" alt="2025-04-01_10-30-18.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;So far I know it does not require UV mapping. Mostly shaders which use a texture will require such UV mapping to map the texture correctly . Here it calculates only the values of the cut surface.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.ptc.com/sejnu66972/attachments/sejnu66972/studio/12961/1/TestPlanerBuildInShader-community1.zip" target="_self"&gt;sample project&lt;/A&gt; attached&lt;/P&gt;</description>
    <pubDate>Tue, 01 Apr 2025 08:42:48 GMT</pubDate>
    <dc:creator>RolandRaytchev</dc:creator>
    <dc:date>2025-04-01T08:42:48Z</dc:date>
    <item>
      <title>Inbuilt Shader</title>
      <link>https://www.ptcusercommunity.com/t5/Vuforia-Studio/Inbuilt-Shader/m-p/1007565#M12958</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;
&lt;P&gt;Good Morning,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can anyone help me out in how to use inbuilt planar cut and flow shader which has been recently introduce in Vuforia Studio 9.25.6.0.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Aditya Gupta&lt;/P&gt;</description>
      <pubDate>Mon, 31 Mar 2025 05:10:26 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Vuforia-Studio/Inbuilt-Shader/m-p/1007565#M12958</guid>
      <dc:creator>Aditya1702</dc:creator>
      <dc:date>2025-03-31T05:10:26Z</dc:date>
    </item>
    <item>
      <title>Re: Inbuilt Shader</title>
      <link>https://www.ptcusercommunity.com/t5/Vuforia-Studio/Inbuilt-Shader/m-p/1007586#M12959</link>
      <description>&lt;P&gt;From "&lt;STRONG&gt;Help Center&lt;/STRONG&gt;":&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;"&lt;STRONG&gt;What’s New in Vuforia Studio 9.25.0&lt;/STRONG&gt;": &lt;A href="https://support.ptc.com/help/vuforia/studio/en/index.html#page/Studio_Help_Center%2FWhats_New_in_Vuforia_Studio_9_25_0_0.html%23wwID0EDMEK" target="_blank"&gt;https://support.ptc.com/help/vuforia/studio/en/index.html#page/Studio_Help_Center%2FWhats_New_in_Vuforia_Studio_9_25_0_0.html%23wwID0EDMEK&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;"&lt;STRONG&gt;Shaders&lt;/STRONG&gt;": &lt;A href="https://support.ptc.com/help/vuforia/studio/en/index.html#page/Studio_Help_Center/ModelShaders.html#wwID0EADST" target="_blank"&gt;https://support.ptc.com/help/vuforia/studio/en/index.html#page/Studio_Help_Center/ModelShaders.html#wwID0EADST&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Mon, 31 Mar 2025 07:43:10 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Vuforia-Studio/Inbuilt-Shader/m-p/1007586#M12959</guid>
      <dc:creator>VladimirN</dc:creator>
      <dc:date>2025-03-31T07:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: Inbuilt Shader</title>
      <link>https://www.ptcusercommunity.com/t5/Vuforia-Studio/Inbuilt-Shader/m-p/1007606#M12960</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/107767"&gt;@VladimirN&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your response.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried but was not able to deploy the planar cut, I am not aware how to bring the plane as shown in the below video link.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.linkedin.com/posts/danielfonai_ar-vuforia-vuforiastudio-activity-7310558207528083457-FcTs?utm_source=share&amp;amp;utm_medium=member_desktop&amp;amp;rcm=ACoAACOBZqUBtf_e1HQokiPvTyeKCLb0h8BeP2U" target="_blank"&gt;https://www.linkedin.com/posts/danielfonai_ar-vuforia-vuforiastudio-activity-7310558207528083457-FcTs?utm_source=share&amp;amp;utm_medium=member_desktop&amp;amp;rcm=ACoAACOBZqUBtf_e1HQokiPvTyeKCLb0h8BeP2U&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, had one more doubt does the flow shader requires uv mapped cad model?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thnaks &amp;amp; Best Regards,&lt;/P&gt;
&lt;P&gt;Aditya Gupta&lt;/P&gt;</description>
      <pubDate>Mon, 31 Mar 2025 09:09:25 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Vuforia-Studio/Inbuilt-Shader/m-p/1007606#M12960</guid>
      <dc:creator>Aditya1702</dc:creator>
      <dc:date>2025-03-31T09:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: Inbuilt Shader</title>
      <link>https://www.ptcusercommunity.com/t5/Vuforia-Studio/Inbuilt-Shader/m-p/1007884#M12961</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/478189"&gt;@Aditya1702&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;regarding your question for the planer shader according to&amp;nbsp;&lt;A href="https://support.ptc.com/help/vuforia/studio/en/#page/Studio_Help_Center%2FModelShaders.html" target="_blank" rel="noopener"&gt;https://support.ptc.com/help/vuforia/studio/en/#page/Studio_Help_Center%2FModelShaders.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;-&amp;gt; required is the center of the cut plane and a normal vector which defines the direction /normal to the cut plane.&lt;/P&gt;
&lt;P&gt;Example of&amp;nbsp; js code which will set at begin the shader and then on change of the slider will move the position of the plane e.g along x:&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;$scope.init = function() {
  $scope.app.planarCutModel=$scope.view.wdg['model-1'];
  $scope.app.planar_cut_str = 'planar_cut; clipCenterX f '+$scope.app.params.clipCenterX+
                                                          '; clipCenterY f ' +$scope.app.params.clipCenterY+
                                                          '; clipCenterZ f ' +$scope.app.params.clipCenterZ+
                                                          '; clipAxisX f '+$scope.app.params.clipAxisX+
    													  '; clipAxisY f '+$scope.app.params.clipAxisY+
    													  '; clipAxisZ f '+$scope.app.params.clipAxisZ+
    													  '; clipLineWidth f '+$scope.app.params.clipLineWidth+';';

 
  $scope.app.planarCutModel.shader =  $scope.app.planar_cut_str;
  $scope.$applyAsync();
};

angular.element(window.document.body).ready($scope.init);
//===========================
$scope.app.updateShaders=()=&amp;gt;{

$scope.app.planar_cut_str = 'planar_cut; clipCenterX f '+$scope.app.params.clipCenterX+
                                                          '; clipCenterY f ' +$scope.app.params.clipCenterY+
                                                          '; clipCenterZ f ' +$scope.app.params.clipCenterZ+
                                                          '; clipAxisX f '+$scope.app.params.clipAxisX+
    													  '; clipAxisY f '+$scope.app.params.clipAxisY+
    													  '; clipAxisZ f '+$scope.app.params.clipAxisZ+
    													  '; clipLineWidth f '+$scope.app.params.clipLineWidth+';';
  $scope.app.planarCutModel.shader = $scope.app.planar_cut_str;
  $scope.$applyAsync();

}&lt;/LI-CODE&gt;
&lt;P&gt;here I used parameter which I could bind to the widget value - e.g. the clipCenerX with the slider 2d widget. There to fit the value some filter in the slider binding like that:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2025-04-01_10-26-59.jpg" style="width: 637px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/120893iDE7ABFD7D09E2167/image-size/large?v=v2&amp;amp;px=999" role="button" title="2025-04-01_10-26-59.jpg" alt="2025-04-01_10-26-59.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;So the clipLineWith is the with of the white clipLine&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2025-04-01_10-30-18.jpg" style="width: 999px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/120897iE667B292EE7B5126/image-size/large?v=v2&amp;amp;px=999" role="button" title="2025-04-01_10-30-18.jpg" alt="2025-04-01_10-30-18.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;So far I know it does not require UV mapping. Mostly shaders which use a texture will require such UV mapping to map the texture correctly . Here it calculates only the values of the cut surface.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.ptc.com/sejnu66972/attachments/sejnu66972/studio/12961/1/TestPlanerBuildInShader-community1.zip" target="_self"&gt;sample project&lt;/A&gt; attached&lt;/P&gt;</description>
      <pubDate>Tue, 01 Apr 2025 08:42:48 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Vuforia-Studio/Inbuilt-Shader/m-p/1007884#M12961</guid>
      <dc:creator>RolandRaytchev</dc:creator>
      <dc:date>2025-04-01T08:42:48Z</dc:date>
    </item>
  </channel>
</rss>

