<?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 Is this Raycast normal behavior? in Bifrost Forum</title>
    <link>https://forums.autodesk.com/t5/bifrost-forum/is-this-raycast-normal-behavior/m-p/12839442#M378</link>
    <description>&lt;P&gt;I have an irregular surface (mountains) where I will scatter points.&lt;BR /&gt;The goal was just to cull points display behind each other along camera line. So I thought about the raycast node. But it was a bit costly to make the setup to work so I am here to double check.&lt;BR /&gt;&lt;BR /&gt;I have to first remove points where normals were facing out the camera.&lt;BR /&gt;But the problem is that for the mountain surface, some faces will still face the camera even if they were culled a surface nearer the camera.&lt;BR /&gt;I tried to raycast from the camera to the remaining points. It works by clearing the points culled by nearer surfaces but instead of deleting these points, the node reproject it on the nearer surface (on the video, you can see the "dancing/sliding" blue circles) So to get the effect I needed, I had to compare the points original positions with the points after raycast (dancing) and remove those which distance were &amp;gt; 0.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;GRAY POINTS displays the intended result&lt;BR /&gt;&lt;BR /&gt;&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-6354998505112w520h540r264" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6354998505112" data-account="6057940548001" data-player="default" data-embed="default" class="vjs-fluid" controls="" data-application-id="" style="width: 100%; height: 100%;"&gt;&lt;/video-js&gt;&lt;/div&gt;&lt;script src="https://players.brightcove.net/6057940548001/default_default/index.min.js"&gt;&lt;/script&gt;&lt;script&gt;(function() {  var wrapper = document.getElementById('lia-vid-6354998505112w520h540r264');  var videoEl = wrapper ? wrapper.querySelector('video-js') : null;  if (videoEl) {     if (window.videojs) {       window.videojs(videoEl).ready(function() {         this.on('loadedmetadata', function() {           this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) {             bar.setAttribute('role', 'presentation');             bar.setAttribute('aria-hidden', 'true');           });         });       });     }  }})();&lt;/script&gt;&lt;a class="video-embed-link" href="https://forums.autodesk.com/t5/video/gallerypage/video-id/6354998505112"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="complicated raycast.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1375950i7711BEB3D4FE9AC3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="complicated raycast.png" alt="complicated raycast.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Notice points will not overlap on camera. Below, the holes on the mesh can be see more clearly.&lt;BR /&gt;&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-6354999222112w446h540r658" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6354999222112" data-account="6057940548001" data-player="default" data-embed="default" class="vjs-fluid" controls="" data-application-id="" style="width: 100%; height: 100%;"&gt;&lt;/video-js&gt;&lt;/div&gt;&lt;script src="https://players.brightcove.net/6057940548001/default_default/index.min.js"&gt;&lt;/script&gt;&lt;script&gt;(function() {  var wrapper = document.getElementById('lia-vid-6354999222112w446h540r658');  var videoEl = wrapper ? wrapper.querySelector('video-js') : null;  if (videoEl) {     if (window.videojs) {       window.videojs(videoEl).ready(function() {         this.on('loadedmetadata', function() {           this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) {             bar.setAttribute('role', 'presentation');             bar.setAttribute('aria-hidden', 'true');           });         });       });     }  }})();&lt;/script&gt;&lt;a class="video-embed-link" href="https://forums.autodesk.com/t5/video/gallerypage/video-id/6354999222112"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;&lt;BR /&gt;&lt;BR /&gt;Why raycast is reprojecting points back?&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
    <pubDate>Fri, 14 Jun 2024 08:41:57 GMT</pubDate>
    <dc:creator>brandaosa</dc:creator>
    <dc:date>2024-06-14T08:41:57Z</dc:date>
    <item>
      <title>Is this Raycast normal behavior?</title>
      <link>https://forums.autodesk.com/t5/bifrost-forum/is-this-raycast-normal-behavior/m-p/12839442#M378</link>
      <description>&lt;P&gt;I have an irregular surface (mountains) where I will scatter points.&lt;BR /&gt;The goal was just to cull points display behind each other along camera line. So I thought about the raycast node. But it was a bit costly to make the setup to work so I am here to double check.&lt;BR /&gt;&lt;BR /&gt;I have to first remove points where normals were facing out the camera.&lt;BR /&gt;But the problem is that for the mountain surface, some faces will still face the camera even if they were culled a surface nearer the camera.&lt;BR /&gt;I tried to raycast from the camera to the remaining points. It works by clearing the points culled by nearer surfaces but instead of deleting these points, the node reproject it on the nearer surface (on the video, you can see the "dancing/sliding" blue circles) So to get the effect I needed, I had to compare the points original positions with the points after raycast (dancing) and remove those which distance were &amp;gt; 0.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;GRAY POINTS displays the intended result&lt;BR /&gt;&lt;BR /&gt;&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-6354998505112w520h540r434" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6354998505112" data-account="6057940548001" data-player="default" data-embed="default" class="vjs-fluid" controls="" data-application-id="" style="width: 100%; height: 100%;"&gt;&lt;/video-js&gt;&lt;/div&gt;&lt;script src="https://players.brightcove.net/6057940548001/default_default/index.min.js"&gt;&lt;/script&gt;&lt;script&gt;(function() {  var wrapper = document.getElementById('lia-vid-6354998505112w520h540r434');  var videoEl = wrapper ? wrapper.querySelector('video-js') : null;  if (videoEl) {     if (window.videojs) {       window.videojs(videoEl).ready(function() {         this.on('loadedmetadata', function() {           this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) {             bar.setAttribute('role', 'presentation');             bar.setAttribute('aria-hidden', 'true');           });         });       });     }  }})();&lt;/script&gt;&lt;a class="video-embed-link" href="https://forums.autodesk.com/t5/video/gallerypage/video-id/6354998505112"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="complicated raycast.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1375950i7711BEB3D4FE9AC3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="complicated raycast.png" alt="complicated raycast.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Notice points will not overlap on camera. Below, the holes on the mesh can be see more clearly.&lt;BR /&gt;&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-6354999222112w446h540r712" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6354999222112" data-account="6057940548001" data-player="default" data-embed="default" class="vjs-fluid" controls="" data-application-id="" style="width: 100%; height: 100%;"&gt;&lt;/video-js&gt;&lt;/div&gt;&lt;script src="https://players.brightcove.net/6057940548001/default_default/index.min.js"&gt;&lt;/script&gt;&lt;script&gt;(function() {  var wrapper = document.getElementById('lia-vid-6354999222112w446h540r712');  var videoEl = wrapper ? wrapper.querySelector('video-js') : null;  if (videoEl) {     if (window.videojs) {       window.videojs(videoEl).ready(function() {         this.on('loadedmetadata', function() {           this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) {             bar.setAttribute('role', 'presentation');             bar.setAttribute('aria-hidden', 'true');           });         });       });     }  }})();&lt;/script&gt;&lt;a class="video-embed-link" href="https://forums.autodesk.com/t5/video/gallerypage/video-id/6354999222112"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;&lt;BR /&gt;&lt;BR /&gt;Why raycast is reprojecting points back?&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2024 08:41:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/bifrost-forum/is-this-raycast-normal-behavior/m-p/12839442#M378</guid>
      <dc:creator>brandaosa</dc:creator>
      <dc:date>2024-06-14T08:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: Is this Raycast normal behavior?</title>
      <link>https://forums.autodesk.com/t5/bifrost-forum/is-this-raycast-normal-behavior/m-p/12841217#M379</link>
      <description>&lt;P&gt;Without looking at a file, difficult to help.&amp;nbsp;It could be also the method that you are projecting or a bug. Also, worth having a look at these threads.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;A href="https://discord.com/channels/872260298508222534/1065636496637435924" target="_blank" rel="noopener"&gt;https://discord.com/channels/872260298508222534/1065636496637435924&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://discord.com/channels/872260298508222534/1067839241331150889" target="_blank" rel="noopener"&gt;https://discord.com/channels/872260298508222534/1067839241331150889&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Jun 2024 04:46:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/bifrost-forum/is-this-raycast-normal-behavior/m-p/12841217#M379</guid>
      <dc:creator>sepu6</dc:creator>
      <dc:date>2024-06-15T04:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: Is this Raycast normal behavior?</title>
      <link>https://forums.autodesk.com/t5/bifrost-forum/is-this-raycast-normal-behavior/m-p/12846307#M380</link>
      <description>&lt;P&gt;by the way the file, except for the montain = a plane with two wave modifiers - can be replicated by looking at the graph. I will check if this is the behaviour in a different version. THanks&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2024 09:31:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/bifrost-forum/is-this-raycast-normal-behavior/m-p/12846307#M380</guid>
      <dc:creator>brandaosa</dc:creator>
      <dc:date>2024-06-18T09:31:02Z</dc:date>
    </item>
    <item>
      <title>Re: Is this Raycast normal behavior?</title>
      <link>https://forums.autodesk.com/t5/bifrost-forum/is-this-raycast-normal-behavior/m-p/12851610#M381</link>
      <description>&lt;P&gt;The "dancing circles" you are seeing are the results of the location scope - it's showing you where the rays are hitting on the surface closest to the camera.&amp;nbsp; If you turn off "circles at sample" on the location scope, they will disappear.&lt;BR /&gt;&lt;BR /&gt;The method I use for doing this still uses a raycast, but is simpler - what I do is set everything up so that the rays are being cast at the camera, then look for any rays that register a hit.&amp;nbsp; You have to be careful that you have `min_distance` on the raycast compound set to a number above zero, or the hits will happen at the very start of the raycast.&lt;BR /&gt;&lt;BR /&gt;Hope this helps&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jasontbrown_0-1718890725716.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1378221i85A134D99D92126A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jasontbrown_0-1718890725716.png" alt="jasontbrown_0-1718890725716.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2024 13:41:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/bifrost-forum/is-this-raycast-normal-behavior/m-p/12851610#M381</guid>
      <dc:creator>jason-t-brown</dc:creator>
      <dc:date>2024-06-20T13:41:17Z</dc:date>
    </item>
  </channel>
</rss>

