Jump to content
gbettega

Sensor mapping - text not hidden

Recommended Posts

Hi,

the Express VI "Sensor mapping" puts a 3D text object into the scene:

the text position follows the mouse position, like a pointer.

The text is never hidden by the solid, irrespective of the its orientation

(see attached picture).

This is not trivial: using the "pick point" method I tried to do the same thing in one of my Vis:

a (actually) slighlty shifted text is inserted into the scene: when the mouse moves

the text changes its position. However, and this is expected, when the orientation

of the solid is changed the text is hidden: see the other figure.

How to obtain the "sensor mapping" effect (without using transparency)?

Thanks in advance

Giovanni

 

 

post-52404-0-16126200-1430843308_thumb.j

post-52404-0-91941400-1430843914.jpg

Share this post


Link to post
Share on other sites

Hello Shoneill,

bilboarding is used only to make the text face the camera.

The solution is highlighted in the attached picture.

The point in the window coordinate is projected onto the near plane,

obtaining a point P(x_P,y_P,z_P), then the 3D text is translated in that position.

Giovanni

post-52404-0-93226400-1430982640_thumb.j

Share this post


Link to post
Share on other sites

You can do this better with the blending bin and blending mode.  Your solution is always running after the 3D control to patch things up whereas a solution with the correct blending bin and blending mode will be automatic.  I recommend you re-visit the other methods posted as it's a far more robust solution.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.