Questions tagged [openscenegraph]

Openscenegraph is an OpenGL renderer and scene management API/toolkit.

Openscenegraph, abbreviated OSG, is in their own words "an open source high performance 3D graphics toolkit". It is written in C++ and is highly object-oriented. The code is licensed under their own derivative of LGPL.

376 questions
1
vote
1 answer

How to undock tab with osgViewer from QTabWidget?

I want to undock a QWidget from a QTabWiget (is set as centralWidget). The tab contains some Open Scene Graph content (OpenGL Window). When removing the Tab from the list and putting it into a new Dialog Window (=> undocking from tab) the scene data…
Beachwalker
  • 7,685
  • 6
  • 52
  • 94
1
vote
1 answer

compiling Openscenegraph 3.1.8 with Qt 5.0.2

I'm trying to compile openscenegraph-3.1.8 with Qt 5.0.2 using mingw-32 compiler after configuring with cmake 2.8.11 on windows 7 (basic). But, in the compilation process i got the following errors :- In file included from…
Lokesh Kumar
  • 682
  • 2
  • 8
  • 27
1
vote
1 answer

OSG: Camera flight with AnimationPathManipulator

I'm trying to apply an osg::AnimationPath to the camera of my osgViewer::Viewer instance by using an osgGA::AnimationPathManipulator. My problem is that the AnimationPathManipulator only applies the change of rotation and no change of position to…
blue_code
  • 31
  • 7
1
vote
1 answer

Using OpenSceneGraph with Code::Blocks

I have to integrate osg into my project on code blocks. In osg web site, there is only one unanswered post. Has anyone used osg and codeblocks together?
mucisk
  • 247
  • 5
  • 13
1
vote
1 answer

How to apply textures to a model in openscenegraph?

I have a flt model which has references to *tga texture files. I converted these *.tga files into *.dds files using Nvidia texture utiilty tool (nvdxt.exe). I know how to read and apply single .dds texture file to my model (terrain.flt)…
Lokesh Kumar
  • 682
  • 2
  • 8
  • 27
1
vote
1 answer

When building with cmake, prevent a third party library from using its own implementation of a find module, if CMake already comes with one

Rephrased Question How can I control the order in which CMake uses FindXXX.cmake modules? My exact issue For example, OpenSceneGraph comes with its own FindZLIB which is not as good as the FindZLIB Cmake comes with.The FindZLIB module that comes…
Ed Rowlett-Barbu
  • 1,611
  • 10
  • 27
1
vote
1 answer

osgText with getBound()

Is it possible to do a getBound() on osgText without setting its position before that i.e. osg::ref_ptr label = new osgText::Text; geode->addDrawable( label.get() ); label->setText("Event: dist = label->getBound().xMax(); and…
sn710
  • 581
  • 5
  • 20
1
vote
1 answer

OpenScenegraph: Texture Mapping Quad

I am trying to do texture map a quad geometry object generated by createTexturedQuadGeometry with a texture that I load from an image. I then add this drawable to a node, add that node to root and render the hierarchy. The code below is how I do…
balajeerc
  • 3,998
  • 7
  • 35
  • 51
1
vote
1 answer

Why model->asGeode(); Returns NULL?

I'm studying the OpenSceneGraph these days: // Assumes the Cessna's root node is a group node. osg::ref_ptr model = osgDB::readNodeFile("cessna.osg"); osg::Group* convModel1 = model->asGroup(); // OK! osg::Geode* convModel2 =…
lightrek
  • 951
  • 3
  • 14
  • 30
1
vote
1 answer

installing openscenegraph with plugins

I'm having trouble installing openscenegraph with vrml plugins Can anyone provide some suggestions? I'm working on Snow Leopard, and I downloaded the latest OpenVRML 0.18, and OpenSceneGraph 3.0.1 I can get OpenSceneGraph to work, however, I need…
mma1480
  • 659
  • 1
  • 9
  • 18
1
vote
1 answer

OpenSceneGraph can't start because osg80-osgd.dll is missing

Would appreciate some help finally tackling this problem in Visual 2010. I am trying to run a sample project that should run fine, only I get an error popup with the message The program can't start because osg80-osgd.dll is missing from your…
Kobojunkie
  • 6,375
  • 31
  • 109
  • 164
1
vote
1 answer

OpenSceneGraph FirstPerson Walking Camera

I am new to OpenSceneGraph and would appreciate help figuring out which of the existing CameraManipulator classes, or even any out there, I would need to use for Walking/Running/Jogging simulations. So far I have checked out about 10 of the…
Kobojunkie
  • 6,375
  • 31
  • 109
  • 164
1
vote
3 answers

OpenSceneGraph C++ Access Violation reading location 0x00421000

Working with OpenSceneGraph, and I keep running into this violation issue that I would appreciate some help with. The problem is with the particular line below which happens to be the first in my main function. osg::ref_ptr bench =…
Kobojunkie
  • 6,375
  • 31
  • 109
  • 164
1
vote
1 answer

What is The Correct View Matrix For The HUD Camera?

I'm using OpenSceneGraph in Android with GLES2. I have two cameras: one for the scene and the other for the HUD. The scene camera is the main camera in my osgViewer. My trouble is with the HUD's camera. I am trying to add an OSG geometry to the 2D…
Dyn0myte
  • 650
  • 1
  • 5
  • 11
1
vote
0 answers

OpenSceneGraph - Drawing a 3D Wall

I have the code below. I got the idea from a tutorial but my code does not show anything when run. The goal is to draw Wall in 3d. My guess is that my points may be off but I am not sure how best to pick points, and also scale. void…
Kobojunkie
  • 6,375
  • 31
  • 109
  • 164