Nehe OpenGL tutorial implemented by openinventor-Lesson 31st

Source: Internet
Author: User
Nehe OpenGL tutorial implemented by openinventor-Lesson 31st


 

 

The nehe tutorial describes how to load the model file designed by the milkshape3d modeling software. The content of this lesson has little to do with OpenGL and openinventor. It mainly analyzes the model file format of milkshape3d. The code for reading the milkshape3d model file in our program is copied from the nehe tutorial. The only difference is how to create a scenario based on the model vertex data. If you have read our previous example, it is easy to understand the code of this lesson. Here we will not detail the code.

 

Compile and run our program, and the screen will show a cross object with textures on its surface. The effect is the same as that of nehe 31st.

 

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.