Example Code

Creating Transparent objects in the 3D picture control

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

Overview: This example demonstrates how to configure the scene so that the alpha values are used instead of default values.


Description:

By default, when creating simple shapes such as cubes and spheres for a 3D image control, the alpha color setting does not have any effect. This example demonstrates how to configure the scene so that the alpha values are used. The required settings are all set in a scene property node.  Once the settings are configured, the alphqa value changes how transparent the shape is -1 for completely solid and 0 for completely transparent.


Requirements: LabVIEW 2012 (or compatible), Hardware: none.


Steps to Implement or Execute Code:

 1. Run the VI.
2. Play with different parameters.
3. Look at the result on the 3D graph. 


Additional Information or References: 

 

Creating Transparent objects in the 3D picture control FP.png

 

Creating Transparent objects in the 3D picture control BD.png


**This document has been updated to meet the current required format for the NI Code Exchange.**  

Al B.
Staff Software Engineer - TestStand
CTA/CLD

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Comments
carter12s
Member
Member
on

Awesome Example Thank You!

Jannis
Member
Member
on

Thank You! (Where's the Kudos button?)

This should be part of the LV-Help