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.


  • Similar Content

    • By Moes
      Hello everyone i am relative new to labview and currently i am bit stuck need help...
      i want to capture data with a digital trigger on my chassis PFI0 (9178), the pulse is 20ms long and occurs on my straingauge 9237 module.
      The pulse comes in 10 times in a row with couple of miliseconds between it, can i measure it every time and push it inside an array like a "last in first out" memmory to evaluate it slower for the user?
       
      I am currently struggeling with the loop dividing into more then one loop approach.
       
       
      How to breach out from accquire->store->plot in one loopdone right with good performance? I don't know how to shape the cure because there is a dependency from loop time to datapoints with the daqmx task inside of it :-/
      Capturing should always be possible and run in background and the user just uses the frontend to play around with filters (me learning what filter shape the cure in which way)
       
      It would be nice if someone can share their knowledge towards realizing multiple graphs from a pulse that comes in and is stored in a graph.
      I know my program is not pretty right now but with progress it will be nicer, function first to learn!

      WheatstoneSix_6.vi
    • By Taylorh140
      I am trying to use a mixed signal graph to plot a set of digital data (12 lines) and 4 arrays of analog data in XY format.  For the analog data I want each array to be assigned to a different group in the graph, but at runtime they seem to all default to Group 1 (the Pressure graph shown below).  I have been able to change them using the legend or the graph properties for each plot, but cannot find a way to do it programmatically.  Is there a property node that can be used to set this?
       

    • By Axelwlt
      Hi,
      Is there a way to make a type def behave as a Strict Type Def during development (so that cosmetic changes made to the .ctl are propagated), and as a Type Def. at runtime (so that the cosmetics can be still be changed with property nodes)?
      My use case is that the code just needs to colour the controls at runtime, the other property values are decided during development.
    • By Tomi Maila
      At JKI, we have found that a professional user interface design can make a huge difference for LabVIEW applications. That’s why we’re very proud to announce we have just released the JKI Flat UI Controls for LabVIEW, a beautiful, professionally-designed set of LabVIEW controls that we use on some of our own projects at JKI!  We hope that by sharing these with the community, we can help make it easy for just about anyone to build their own beautiful and intuitive user interfaces in LabVIEW.
       
      Learn More & Download 

    • By Francois Normandin
      View File UI Tools
      UI Tools v1.4.0
      Copyright © 2009-2016, François Normandin
      All rights reserved.
      Author:François Normandin
      Contact Info: Contact via PM on www.lavag.org
      LabVIEW Versions:
      Created and tested with LabVIEW 2012
      Dependencies:
      OpenG Application Control Library >= 4.1.0.7
      OpenG Array Library >= 4.1.1.14
      OpenG File Library >= 4.0.1.22
      OpenG LabVIEW Data Library >= 4.2.0.21
      OpenG String Library >= 4.1.0.12
      LAVA Palette >= 1.0.0.1
      Description:
      This package contains tools for designing user interfaces.
      A first palette helps create special effects using transparency of front panel. Using them allows to quickly create fade-ins or outs using linear or exponential variation of the intensity. A second palette contains VIs to calculate the position of GObjects for many purposes like alignment, snap, mouse follow, etc. A third palette contains VIs to create dialog boxes based on class instances. "Simple Error Dialog" and "Simple Selection List" are featured with or without backrground blackening effect. A fourth palette includes some VIs to move objects programmatically on the front panel, using a basic deceleration algorithm to provide an impression of a smooth movement. The packaged VIs are all namespaced using a suffix “__lava_lib_ui_tools” which should not conflict with any of your own code.
      Includes:
      Front Panel Transparency (Fade In & Fade Out) Utilities (Alignment, Snap) Dialog (OOP based, extensible) Engine (Beta) for object movement Instructions:
      This package is distributed on the LabVIEW Tools Network (version 1.3) and updates are on LAVA (1.4). It can be installed directly in the addon folder of any LabVIEW version from 2012 to now. The addon installs automatically under the LAVA palette of the addon submenu.
      License:
      Distributed under the BSD license.
      Support:
      If you have any problems with this code or want to suggest features, please go to www.lavag.org and navigate to the discussion page.
       
      Submitter Francois Normandin Submitted 09/21/2009 Category LabVIEW Tools Network Certified LabVIEW Version  
×
×
  • Create New...

Important Information

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