OpenSceneGraph - PowerPoint PPT Presentation

1 / 20
About This Presentation
Title:

OpenSceneGraph

Description:

Loading geometric models from files and positioning them in a scene ... Debian, MinGW, Mac OSX, IRIX, Suse 9.1, Fedora core 3. Win32 binaries. http://mew.cx/osg ... – PowerPoint PPT presentation

Number of Views:118
Avg rating:3.0/5.0
Slides: 21
Provided by: poste5
Category:

less

Transcript and Presenter's Notes

Title: OpenSceneGraph


1
OpenSceneGraph
  • Jinseok Seo

2
Outline
  • What is OpenSceneGraph?
  • Getting Started
  • Examples
  • Loading geometric models from files and
    positioning them in a scene
  • Finding named nodes, updating DOF and switch
    nodes
  • Using an update callback to articulate a node
    within a scene
  • Using tracking devices
  • Available Resources

3
What is OpenSceneGraph?
  • A C API built on OpenGL for
  • Scene Management
  • Graphics Rendering Optimization
  • Cross-platform
  • Windowing system agnostic
  • Open Source

4
What is OpenSceneGraph?
  • Functional Components

OSGUtil Traversers Enhancements
OSG Scene Graph Rendering Elements
OSGDB Data Base Loading Plug-in Management
Plug-Ins
OSGText
OSGSim
Node Kits
5
What is OpenSceneGraph?
  • File Formats Supported
  • File Formats
  • 3dc, 3ds, ac3, dw, flt, Freetype
  • Iv, ive, logo, lwo, md2, obj
  • osg, osgtgz, tgz, txp, directX, zip
  • Image Formats
  • Bmp, dds, pic, png
  • pnm, qt, rgb, tga

6
What is OpenSceneGraph?
  • Who is Using OSG?
  • Magic Earth - Geoprobe - Oil Gas
  • Boeing - Flight simulation
  • Indra - Train simulation
  • STN Atlas - Simulation
  • NASA - Earth visualization
  • Norcontrol - Maritime simulation
  • Real World Entertainment - Gaming (Releasing Java
    Bindings)
  • Terrex - LOD Paging
  • POSTECH -

7
Getting Started
  • Downloading and Building Source Code
  • http//www.openscenegraph.org
  • 3rdParty_Win32binaries_2004-07-25a.zip
  • OpenSceneGraph-Data.zip
  • Optional (OpenGL Performer, GDAL, )
  • OSG_OP_OT-0.9.8-2.zip

8
Getting Started
  • Downloading and Installing Binaries
  • Debian, MinGW, Mac OSX, IRIX, Suse 9.1, Fedora
    core 3
  • Win32 binaries
  • http//mew.cx/osg
  • Includes OpenSceneGraph-Data, 3rdParty
    dependencies, and osgVRPN

9
Getting Started
  • Compiling with MS Visual Studio
  • Visual Studio .NET
  • Works well
  • Visual Studio 6.0
  • Install STLport-4.5
  • http//www.stlport.org/download.html
  • Uncomment the sentence at about line 45 in the
    file stlport/stl_user_config.h
  • define _STL_NO_OWN_IOSTREAM 1
  • Setting up include path and library path

10
Getting Started
  • Running Examples
  • Setting up the path to the applications and DLLs
    (PATH)
  • where/you/put/OpenSceneGraph/bin
  • Setting the OpenSceneGraph Data file path
    (OSG_FILE_PATH)
  • Where/you/put/OpenSceneGraph-Data
  • osgviewer cow.osg

11
Examples
  • Jason McVeigh's OpenSceneGraph Tutorial Set.
  • http//openscenegraph.org/documentation/NPSTutoria
    ls/

12
Example 1
  • Loading geometric models from files and
    positioning them in a scene

13
Example 1
root (osgGroup)
tankXform (osgPositionAttitudeTransform)
tankNode (osgNode)
14
Example 2
  • Finding named nodes, updating DOF and switch nodes

15
Example 2
root (osgGroup)
tankOneGroup (osgGroup)
tankThreePAT (osgPositionAttitudeTransform)
tankTwoPAT (osgPositionAttitudeTransform)
tankThreeGroup (osgGroup)
tankTwoGroup (osgGroup)
16
Example 3
  • Using an update callback to articulate a node
    within a scene

17
Example 4
  • Manually positioning a camera
  • Create and initialize a matrix with the correct
    world position and orientation.
  • Get the inverse of this matrix and
  • Provide a world up orientation. In this case by
    rotating from Y up to Z up.

18
Example 5
  • Using tracking devices

19
Available Resources
  • www.openscenegraph.org
  • OpenSceneGraphReferenceDocs.zip
  • Tutorials
  • Examples
  • Source Code
  • Mailing List Archives
  • jsseo_at_postech.ac.kr

20
Thank you!
Write a Comment
User Comments (0)
About PowerShow.com