Nehe OpenGL tutorial implemented by openinventor-Lesson 30th

Source: Internet
Author: User
Nehe OpenGL tutorial implemented by openinventor-Lesson 30th


 

 

The nehe tutorial introduces Collision Detection in this lesson. Collision detection is a complex technology. The nehe tutorial only detects collision between objects with rules such as plane, sphere, and cylinder. Openinventor provides collision detection between any shape objects. Of course, such collision detection requires more computing time.

 

The collision detection algorithm has been explained in detail in the nehe tutorial, so we will not go into details. The main part of the program is the Collision Detection Algorithm Implementation. You can get all the information from the source code. Once the collision principle is known, the code is very simple.

 

 

Download the complete code for this lesson. (VC 2003 + coin2.5)

 

 

Postscript

Openinventor is an object-oriented 3D graphics software development kit based on OpenGL. With this development kit, programmers can quickly and concisely develop various types of interactive 3D graphics software. I will not describe openinventor in detail here. If you are interested, you can read this article "Introduction to openinventor" in my blog.

 

Nehe is currently the best OpenGL tutorial for beginners. It can help readers learn OpenGL programming skills from the ground up. Until now (November 2007), there have been 48 sections in the nehe tutorial. My plan is to use openinventor to achieve the same effect for all 48 courses. The objective is to review and consolidate OpenGL knowledge, and to share with you the use skills of openinventor.

 

Due to space limitations, I will not introduce the implementation process of OpenGL in the nehe tutorial, because the nehe tutorial has already explained clearly, and the Chinese version of nehe is also available on the network. I will use VC 2003 as the main compiler. The program framework adopts the same Win32 program framework as nehe, and does not use MFC. The program can be compiled in VC express and VC 2005/2008. The openinventor development environment I use is coin, which is a free and open-source openinventor development library. The article "OpenInventor-Coin3D Development Environment" introduces how to use coin in VC. I use coin 2.5. You can download it from www.coin3d.org for free.

 

Readers can freely use and modify the code of this article in compliance with the GNU protocol. The reason for the level, the Code may not be optimized, and I am always expecting readers to correct and communicate. For more information, see. Thank you.

My contact information:

E-mail: <openinventor@gmail.com> <openinventor@126.com>

Blog: http://blog.csdn.net/RobinHao>

Site:

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.