OSG Sample Applications (Beginner)

All built and tested with Visual Studio .NET2005 Win32 Console Application (without precompile header file)

Geometry (Draw a Color Square using osg::Geometry & osg::Geode) – osgd.lib osgViewerd.lib
1260404131.cpp
Texture Geometry (Draw a Textured Square using osg::Texture2D & osg::Image & osgDB::readImageFile(filename)) – osgd.lib osgViewerd.lib osgDBd.lib
1034721829.cpp
Shapes (Draw Shapes, such as Box, Sphere, Cone, Cylinder, Capsule using osg::ShapeDrawable) – osgd.lib osgViewerd.lib
1109797805.cpp
Materials (Material Properties for three shape objects using osg::Material) – osgd.lib osgViewerd.lib
1310761035.cpp
Light (Directional Light) – osgd.lib osgViewerd.lib
1086880964.cpp
Light (Positional Light) – osgd.lib osgViewerd.lib
1126632461.cpp
Light (Spot Light) – osgd.lib osgViewerd.lib

Light (Moving Light using osg::Node::setUpdateCallback(…) & MyUpdateCallback) – osgd.lib osgViewerd.lib
1368627098.cpp
Load a Model (Load an Object Model using osg::readNodeFile(filename)) – osgd.lib osgViewerd.lib osgDBd.lib
1009571790.cpp
Object Transformation (Transform Shape Objects using osg::TransformMatrix & osg::PositionAttitudeTransform) – osgd.lib osgViewerd.lib
1010448391.cpp
Object Transformation (Transform Object Models using osg::PositionAttitudeTransform) – osgd.lib osgViewerd.lib osgDBd.lib
1083419069.zip
Object Transformation (Orbiting an Object using osg::Node::setUpdateCallback(…) & osg::NodeCallback) – osgd.lib osgViewerd.lib osgDBd.lib
1050766644.cpp
Object Transformation (Rotating an Object using osg::Node::setUpdateCallback(…) & osg::AnimationPathCallback) – osgd.lib osgViewerd.lib osgDBd.lib
1268505567.cpp
Object Transformation Using Keyboard Input (Rotating Objects triggered by Space-key using KeyboardHandler) – osgd.lib osgViewerd.lib osgDBd.lib osgGAd.lib
1260374002.cpp
Billboards (Objects always facing the camera using osg::Billboard) – osgd.lib osgViewerd.lib osgDBd.lib
1130686974.cpp
LOD (Object Level of Detail using osg::LOD) – osgd.lib osgViewerd.lib osgDBd.lib
This example needs object_model_data.zip, which used in the Object Transformation example
1002965270.cpp
Switch (Switch on one of the three child object models triggered by Space-key written using osg::Switch & Keyboard Input)
1326100890.cpp
Write a Scene (Write a Scene Graph of drawing a square to hard disk using osg::writeNodeFile(filename)) – osgd.lib osgViewerd.lib osgDBd.lib
-To see what this scene graph looks like, use “osgviewer Simple.osg”
1018196408.cpp

Leave a Reply

Your email address will not be published. Required fields are marked *