javascript - Three.js - Render an object always on top -
I am trying to apply a command arrow that follows the mouse on the screen, but sometimes it One is hidden behind another object. Is there any way to touch the z-buffer or always render the arrow at the top I would not want to create a second view on the top (as seen in the solution:. Thanks. Thanks.
Can you further explain what a "command arrow" is? If you want to have the mouse around the 2D Follow, one option is to create something like this:
& Lt;! - If the use of a library is like jQuery, in which there is a Muesmov event handler - & gt; $ ('body'). Mousemove ({document.getElementById ('mouseHover < P> If you want something <3. Em> actually to submit to 3D which is in the pursuit of the mouse This problem is only relative position. You can create a THREE.WebGLRenderTarget
on a transparent background, map it to a texture, and apply it to a THREE.PlaneGemometry
which is used for camera Moves in front. I provide some code for you, but I will need more information about your special setup to do this.
Comments
Post a Comment