Header Banner
wonderhowto.mark.png
Gadget HacksNext RealityFood HacksNull ByteThe Secret YumiverseInvisiverseMacgyverismsMind HacksMad ScienceLock PickingDriverless
Home
C++

How to Add texture to 3D objects with OpenGL for C++

Apr 16, 2010 12:10 AM
"How to Add texture to 3D objects with OpenGL for C++" cover image

By now, you should know a few of the basics of programming with OpenGL and GLUT for C++ developing, like shapes, transformations, timers, and colors. Now it's time for lighting. Everything could look right in your 3D program or game, but if you're lighting isn't right, it's a sad world for all of us. This video lesson will show you how to add lighting to 3D scenes with OpenGL for C++, so you can start making your own 3D programs.

Add textures so that you can paint images on 3D polygons. A lot of the time, we'll want to put pictures, or "textures", on our 3D polygons, instead of just color. There are two main reasons for this. The first one is more obvious; we might want to give the shape some detailed appearance. For example, it's much easier to make a person's face if we take a picture of a face and apply the texture to a few polygons in the face, than if we have a million tiny colored faces. The second reason is that we might want to approximate the lit appearance of some small feature, without adding tons of polygons

*Get the text version of this lesson.

*Download the source code.

*Try out the exercises.

Check out the other videos in this video series.

Add texture to 3D objects with OpenGL for C++

Click through to watch this video on videotutorialsrock.com

External Content
www.videotutorialsrock.com

Just updated your iPhone? You'll find updated Apple Intelligence capabilities, new wallpapers, and enhancements to Calculator, PDF cropping, and Live Voicemail, among other useful features. Find out what's new and changed on your iPhone with the iOS 18.3 update.

Related Articles

Comments

No Comments Exist

Be the first, drop a comment!