Making a laser light scanning

Question Materials and Textures

Screenshot_1.png

So I created a mesh and shading it as a laser light scanning but the problem is the laser goes through the coin as you can see. 

Is there a way to stop the laser from passing through?

Thank you very much

  • Martin Bergwerf replied

    Hm, interesting,

    The simplest thing would be to cut away part of the Mesh, but I suppose you want to be able to move the coin and that the shader reacts to that...

    My first idea, would be to use Geometry Nodes; it has a Raycast Node you might be able to use and then Switch between two Shaders (Emission and Transparent)...

    Not sure if that would work, I'll try that later...(or maybe tomorrow)



    1 love
  • Omar Domenech replied

    A boolean can be another idea. If the laser is a mesh, you can have a boolean in the shape of the place the laser isn't supposed to show, the boolean would cut it away.

    1 love
  • Quang Tran(costelo123) replied

    Thank you for your answers, spikeyxxx, I have been watching the Raycast node on youtube but I don't know how to incorporate it into this scene as you suggest though

    dostovel I haven't figured out how to cut the mesh with the coin rotating