-
Notifications
You must be signed in to change notification settings - Fork 166
Home
The project is managed by Wang Rui
This project is the source code repository of Rui Wang & Xuelei Qian's book OpenSceneGraph 3.0 Cookbook
,
Packt Publishing, 2012. You may read more details or order this book at:
http://www.packtpub.com/openscenegrap-3-for-advanced-3d-programming-using-api-cookbook/book
This section will show you how to integrate OSG with different kinds of libraries and SDKs. These libraries can add extra functionalities like special effects, visual components and interaction methods to your OSG scene and greatly improve the performance of the applications. These libraries must be free for downloading and for non-commercial purpose of use. The license of the example code may vary according to the license of the third- party library if it does not fit the public domain.
AntTweakBar
A light and intuitive GUI framework.
http://www.antisphere.com/Wiki/tools:anttweakbar
Setup & use: just operate on the embedded GUI window.
Future plan: none.
Awesomium
A web-browser framework for in-app browsing and HTML UIs.
Setup & use: load websites (including HTML5 and Flash) to OSG images.
Future plan: load native files, execute JavaScript programs, and improve the efficiency.
MyGUI
A fast, flexible and simple GUI.
Setup & use: copy MyGUI media files and default resource XMLs to correct locations and then run the demo.
Future plan: support IMEs.
VLC
A cross-platform multimedia player and framework.
Setup & use: put the executable into VLC path, then load movies to OSG images using the command:
./osgvlc movie_file_or_stream
Future plan: improve the efficiency.
Spark
A crossplatform particle engine.
Setup & use: copy integrations/data to executable path, then run with any of the following argument:
./osgspark [--simple/--explosion/--fire/--rain/--smoke]
Future plan: add more effects, and add support for particle callbacks.
libGizmo
Gizmo control library for 3D object manipulation.
https://github.com/CedricGuillemet/LibGizmo
Setup & use: direct drag the gizmo to manipulate, scroll mouse to change gizmo types, and use CTRL and mouse to navigate scene as usual.
Future plan: none.
Microsoft Kinect SDK
http://www.microsoft.com/en-us/kinectforwindows/develop/developer-downloads.aspx
Setup & use: install the XBox Kinect device, and act in front of it.
Future plan: use Kinect to control real human skeletons.
TUIO
A common API for tangible multitouch surfaces.
The source code is already included in the source code. You may also visit http://www.tuio.org/ for updates.
Setup & use: install a TUIO server on some other device (e.g., TUIOpad on iPad, and TUIOdroid on Android), setup the server to connect to correct IP and port (3333), and control the scene with multi-touch gestures.
Future plan: none.
NVIDIA PhysX version 3.2
A well-rounded physics engine.
http://developer.nvidia.com/physx-downloads
Setup & use: simulate the scene and fire sphere objects to the box wall with Enter key.
Future plan: add more physics features (joints, cloth, soft bodies and characters).
AssImp
A library to import various well-known 3D model formats.
http://assimp.sourceforge.net/
Setup & use: load model files (3ds, obj, dae, etc.) with the .assimp extension:
./osgviewer your_model.dae.assimp
Future plan: import skeleton data, and add more material support.
FreeImage
A library supporting popular image formats.
http://freeimage.sourceforge.net/
Setup & use: load image files (dds, jpg, png, psd, etc.) with the .freeimage extension:
./osgviewer your_image.dds.freeimage
Future plan: add writing functions, and add more options.