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

Summary


In this chapter, we mainly discussed about the file I/O mechanism, including the use of plugins and the chain-of-responsibility design pattern in OSG. The osgDB::Registry is the singleton class storing all of the reader-writers and wrappers which are linked in at runtime for reading native and non-native file formats. By the end of this chapter, we were able to understand how OSG plugins work, and how to implement a new plugin reading and writing interface with user-defined subclasses of the osgDB::ReaderWriter base class.

In this chapter, we have learnt:

  • How to load files of a specified extension, and searching for a specific plugin in the table provided

  • How to understand the pseudo-loaders, and how to load files from the Internet, using the osgdb_curl plugin

  • Re-configuring the CMake build system to set third-party dependency options for OSG plugins, which will enable related file formats to be readable or writable

  • A basic way to construct the native compiling tool-chain of OSG and third...

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