- Augmented Reality with Kinect
- Rui Wang
- 341字
- 2021-08-13 16:50:58
Chapter 2. Creating Your First Program
We have already introduced how to install
the Kinect device on Windows in the previous chapter, as well as some official examples showing the basic concepts of Kinect programming. In this chapter, we will prepare a simple OpenGL framework for our Kinect-based game using the C++ language. OpenGL is a well-rounded and evolving cross-platform API for rendering 2D and 3D graphics. It supports multiple languages including C/C++, Java, Python, and C#. As we are working on an Augmented Reality (AR) project, which must consist of the view of the real world and some virtual elements, OpenGL will be a good choice here because of its hardware-accelerated features and popularity all over the world.
Tip
As you may know, Microsoft's DirectX is another reliable 2D/3D graphics API that could fit our requirements. But it is only used under Windows currently, and can hardly support languages except C/C++ and C#. You can learn more about DirectX at:
Also, we have discussed about the installation of Kinect for the Windows SDK in the previous chapter. The SDK provides us libraries and header files for use in the official toolkits and our own applications. To make use of the SDK, we will have to include the header files and link to the necessary libraries in our projects to generate the final executables.
To note, this is not a Kinect API reference book, so we can't list and introduce all the functions and structures here. You can refer to the following website for more information about the Kinect NUI API:
http://msdn.microsoft.com/en-us/library/hh855366.aspx
Before starting to create a C++ project, you should at least have a C++ compiler. For Windows users, the Visual Studio product is always a better choice. You can download Visual C++ 2012 Express for free from:
http://www.microsoft.com/visualstudio/eng/downloads#d-2012-express
It is assumed that you are already familiar with this environment, as well as the C++ language and OpenGL programming. You can refer to the following link for details about the OpenGL API and related resources at http://www.opengl.org/.
- Intel FPGA/CPLD設(shè)計(jì)(基礎(chǔ)篇)
- FPGA從入門到精通(實(shí)戰(zhàn)篇)
- 顯卡維修知識精解
- 電腦維護(hù)與故障排除傻瓜書(Windows 10適用)
- 電腦軟硬件維修大全(實(shí)例精華版)
- Manage Partitions with GParted How-to
- 單片機(jī)系統(tǒng)設(shè)計(jì)與開發(fā)教程
- 固態(tài)存儲:原理、架構(gòu)與數(shù)據(jù)安全
- Blender Quick Start Guide
- VMware Workstation:No Experience Necessary
- 無蘋果不生活:OS X Mountain Lion 隨身寶典
- Managing Data and Media in Microsoft Silverlight 4:A mashup of chapters from Packt's bestselling Silverlight books
- 觸摸屏應(yīng)用技術(shù)從入門到精通
- FPGA實(shí)戰(zhàn)訓(xùn)練精粹
- 計(jì)算機(jī)組成技術(shù)教程