Tag Archives: open scene graph

Open Scene Graph: Render scene to image

OSG ships with many examples including several applications that renders the scene to image, for instance OsgAutoCapture, and OsgScreenCapture.

Whilst these applications are information rich, yet they lack sufficient conciseness and are not right to the point sometimes. It took me hours to get what I need, and for my specific task, I just need such a simple class OsgSnapshotHelper:

void Capture(osgViewer::Viewer* pViewer, std::string outputImagePath)
OsgSnapshotHelper* osh = new OsgSnapshotHelper(pViewer);
delete osh;
osh = NULL;
std::cout << Ending Capture: << outputImagePath  << std::endl;


And here is my implementation, based on OsgAutoCapture example. I wrapped it to what I need and removed all unnecessary stuff into one single class, which would be very portable then.


Read the rest of this entry »


Posted by on June 30, 2014 in osg, Programming


Tags: , , , , , , ,

OpenSceneGraph for Android 3rd party dependency file download

The official download link for OSG Android 3rd party dependency files is:

However, recently I found this link cannot be accessed sometimes, you might try below links as an alternative.

GoogleDrive | Box.Net | Dropbox

Disclaimer: nothing is guaranteed as to the validity, integrity of these files, and you should download it at your own risk.


Posted by on June 5, 2014 in osg, Programming


Tags: , , , , ,

OpenSceneGraph: texture missing – The Solutions

After developing a program using OSG, you might sooner or later package all needed executable (*.exe, *.dll) and copy/deploy them to the target machines.

It is not uncommon that when you open a model, e.g. OBJ, 3DS, FLT files, all works right, except for the textures, missing!


image    image

Read the rest of this entry »

Leave a comment

Posted by on March 11, 2014 in osg, Programming


Tags: , , , , , , , , ,

Building OpenSceneGraph with Visual Studio 2013

Visual Studio 2013 has been out for a few months, and OpenSceneGraph also has their latest release up to version 3.3.1. It is now possible to build OpenScenegraph, inclusive of most widely used plugins, all with Visual Studio 2013.

  • Extract the dependency packages to “C:\Osg331\3rdParty”, use contents in either the x86 or x64 folder, but not both.

Read the rest of this entry »


Posted by on February 25, 2014 in osg, Programming


Tags: , , , , , , ,

Install OSG for Android On Ubuntu 13.04: Step-by-Step tutorials

Installation of essential tools and packages


Installation of open scene graph


Build the 1st Android OSG Example Application


Read the rest of this entry »


Posted by on September 24, 2013 in Linux, osg, Programming


Tags: , , , , , , , , , , , ,

Installing OpenSceneGraph (osg) on windows

If you would like to install OpenSceneGraph on windows, and would like to add necessary paths to system variables automatically, you can use a batch file to save your day. The procedures will be quite simple 2-step job:


Read the rest of this entry »


Posted by on June 3, 2013 in CAD, Programming


Tags: , , , , , , ,