Example Code

Auto-rotate 3D Scene Snippet 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

Overview

This example demonstrates how to rotate a 3D Picture Scene.

 

Description

Here's a quick piece of code that will automatically rotate a 3D scene graph camera. It rotates the camera around in a circle in the XZ plane around the origin. You can adjust the distance of the camera as well as rotation speed. Just provide it a valid Graph Display Ref.

 

Requirements

 Software

  • LabVIEW Base Development System 2012 (or compatible)

 Hardware

  • No hardware is necessary to use this example VI

 

Steps to Implement or Execute Code

  1. Download and open the attached file
  2. Run the program

 

Additional Information or References

CameraRotationSnippet.png

 

**The code for this example has been edited to meet the new Community Example Style Guidelines. The edited copy is marked with the text ‘NIVerified’. Read here for more information about the new Example Guidelines and Community Platform.**

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