Difference between revisions of "Osgkinect"

From Immersive Visualization Lab Wiki
Jump to: navigation, search
m (Kinect Installation Instructions)
m (Bonus: Getting models to load faster)
Line 35: Line 35:
 
If obj  files are taking more than a minute to load, consider converting them to osgt format.  
 
If obj  files are taking more than a minute to load, consider converting them to osgt format.  
  
Once you have osg installed, in the command prompt, go to the directory type osgconv *.obj *.osgt,
+
Once you have osg installed, in the command prompt, go to the directory with your model files and type osgconv *.obj *.osgt,
  
 
where * is the name of the file, (example usage: osgconv campus.obj campus.osgt)
 
where * is the name of the file, (example usage: osgconv campus.obj campus.osgt)

Revision as of 20:12, 14 January 2014

Contents

Tutorial instructions

Disclaimer: This tutorial was tested on a Windows 7 32-bit machine. It is not guaranteed to work on your own machine.

This is a tutorial for getting OpenSceneGraph 3.0.1 *and* the Microsoft Kinect working together with Visual Studio 2010.

Prerequisites:

First, you'll need Visual C++ 2010, which can be downloaded here.

You'll also need the latest version of Microsoft's Kinect SDK, which can be found here.

OpenSceneGraph Installation Instructions

Please follow the instructions listed on this website.


Kinect Installation Instructions

Right-click the Visual Studio 2010 Project and click Properties.

•Under C/C++ > Additional Include Directories, add "$(KINECTSDK10_DIR)\include".

•Under Linker > Additional Library Directories, add "$(KINECTSDK10_DIR)\lib\x86".

•Under Linker > Input > Additional Dependencies, add "kinect10.lib".

#include <NuiApi.h> // Add this to the top of your .cpp file
  • Note* : depending on where and when you installed the Kinect SDK, the names of the files and file paths above may differ,

so please double-check that all letters match *your* files and file paths. (i.e. you may need to capitalize the K in kinect10.lib -> Kinect10.lib).

Bonus: Getting models to load faster

If obj files are taking more than a minute to load, consider converting them to osgt format.

Once you have osg installed, in the command prompt, go to the directory with your model files and type osgconv *.obj *.osgt,

where * is the name of the file, (example usage: osgconv campus.obj campus.osgt)