Example Code

3D Cube Menu With Unique Textures on All Faces Using LabVIEW

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

Download All

Overview

The purpose of this application is to show how using simple 3-d drawing functions you can create a cube which has different textures on each face. 

 

Description

When you run the project and main application you will be presented with the finest of cubes which have dice faces textured to its surfaces. By pressing left, right, up or down you can navigate the faces of the cube. If you do not have a very quick GPU I would recommend changing the refresh rate of the drawing.

 

cube menu in action.png

 

Requirements

  • LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code

  1. Open the project "3D Menu With Unique Textures 2012.lvproj"
  2. Run "3D Menu With Unique Textures 2012 NIVerified.vi"
  3. Press arrow keys on the keyboard to change the face

 

Additional Information or References

VI Block Diagram

3D Cube.PNG

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

 


Larry Colvin
Associate Principal Engineer
Dyson Technology Ltd.

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