Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
OpenSceneGraph 3.0: Beginner's Guide

You're reading from   OpenSceneGraph 3.0: Beginner's Guide This book is a concise introduction to the main features of OpenSceneGraph which then leads you into the fundamentals of developing virtual reality applications. Practical instructions and explanations accompany you every step of the way.

Arrow left icon
Product type Paperback
Published in Dec 2010
Publisher Packt
ISBN-13 9781849512824
Length 412 pages
Edition 1st Edition
Languages
Arrow right icon
Toc

Table of Contents (22) Chapters Close

OpenSceneGraph 3.0
Credits
1. Foreword
About the Authors
2. Acknowledgement
About the Reviewers
3. www.PacktPub.com
4. Preface
1. The Journey into OpenSceneGraph FREE CHAPTER 2. Compilation and Installation of OpenSceneGraph 3. Creating Your First OSG Program 4. Building Geometry Models 5. Managing Scene Graph 6. Creating Realistic Rendering Effects 7. Viewing the World 8. Animating Scene Objects 9. Interacting with Outside Elements 10. Saving and Loading Files 11. Developing Visual Components 12. Improving Rendering Efficiency Pop quiz—Answers Index

Discovery of specified extension


The basic principles of searching and locating a plugin for the handling of a specified file type can be described in two steps:

Firstly, OSG manages a commonly-used plugin list in the osgDB::Registry class. This class is designed as a singleton and can be only instantiated and obtained with the instance() method. The protected plugin list of the osgDB registry can help quickly find and call the corresponding reading or writing entries of the required format, based on the chain-of-responsibility design pattern. This means that each plugin object, called a reader-writer in OSG, will try to process the extension of the input file, and pass it off to the next plugin in the list if the extension is unrecognizable to that plugin.

In case all prestored reader-writers fail to handle the file extension, OSG will use the extension as a keyword to find and load a plugin from an external shared module, that is, the osgdb_<ext> library file. Here,<ext> represents...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime