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
2
votes
1 answer

Set CheckForGLErrors State

I have a problem with multiple "Warning: detected OpenGL error 'invalid value' after RenderBin::draw(...)" error messages emitted by OSG. I found this thread showing a way to add additional debug information. Unfortunately I can't find a way to set…
2
votes
2 answers

Scene Graph Update Callback Design

So Im using Open Scene graph to create an application and I have a callback class that extends from OSG's callback class. Its just a callback that is called each frame in the update event traversal of the scene graphs nodes. I need different…
Chris Shields
  • 151
  • 1
  • 12
2
votes
1 answer

World to screen space coordinates in OpenSceneGraph

So I've got a class Label that inherits from osg::Geode which I draw in the world space in OpenSceneGraph. After displaying each frame, I then want to read the screen space coordinates of each Label, so I can find out how much they overlap in the…
cassava
  • 578
  • 6
  • 14
2
votes
1 answer

Access violation writing location with openSceneGraph

Im setting up oculus rift with openSceneGraph(osgOculusViewer) but, the program stop work in this line: viewer.apply(oculusViewConfig). When i run the debug the error message is: "Unhandled exception at 0x00007ffc20cd8030 (ot13-OpenThreadsd.dll) in…
André Alves
  • 245
  • 1
  • 2
  • 12
2
votes
0 answers

Embed OpenSceneGraph in a Windows form

I'm new to OpenSceneGraph and I'm trying to test it with Visual Studio 2010. In OpenSceneGraph examples models are usually shown with osgViewer::Viewer, fullscreen. I need to embed such viewer (or anything else that can display a model) inside a…
bluish
  • 26,356
  • 27
  • 122
  • 180
2
votes
1 answer

OpenSceneGraph and GLSL 330 light and shadows

I've written plenty of #version 330 core GLSL shaders I'd like to reuse along with the OpenSceneGraph (OSG) 3.2.0 framework, and try to figure out how to get the state from the OSG I need to pass in by uniforms, and how to set them without having…
Solkar
  • 1,228
  • 12
  • 22
2
votes
1 answer

Getting axis of rotation in osgSim::DOFTransform?

I'm working on a OSG model which contains several DOFTransform nodes. In order to perform geometric calculations on the 3D model I need to know which are the axis of rotation and the point where this axis is placed, is that possible?
Pablo Stark
  • 682
  • 10
  • 34
2
votes
1 answer

OSG: GLSL Shader working on AMD but not on NVIDIA

currently I am working on a OSG Project for my study and wrote a CelShading shader (alongside a simpleFog Shader). I first render with the CelShader along with the depth buffer to Texture and then use the fogShader. Everything works fine on my AMD…
glost
  • 31
  • 6
2
votes
1 answer

Error loading texture with Openscenegraph

I'm trying to make an animation with openscenegraph but I can't load the texture with this code : osg::ref_ptr createSceneGraph(){ osg::ref_ptr root = new osg::Group; osg::ref_ptr m1 = new…
2
votes
0 answers

Error LNK2019 unresolved external symbol when using osg-Headers in MSVS2012

I'm trying to compile a example program for learning to work with osg, but the way to success seems hard as always. Here is the code: #include #include #include int main() { osgViewer::Viewer…
thunder09
  • 53
  • 2
  • 6
2
votes
1 answer

Show a QWidget after pressing a button

I want to change a QWidget in a QMainWindow dynamically. Therefore, the old widget (if it exists) will be deleted, a new one will be constructed and added to the main window. The widget (_visualization) is a QMainWindow itself that contains a menu…
maria90
  • 269
  • 4
  • 10
2
votes
2 answers

How to put osgEarth's ViewerWidget into an tabbed MdiArea?

Is there something special about putting osgEarth's ViewerViewer into a QMdiArea? I created a QMdiArea as central Widget (called setCentralWidget) instead of taking osgEarth's viewer directly as central widget. QMdiArea *mdiArea = new…
Beachwalker
  • 7,685
  • 6
  • 52
  • 94
2
votes
2 answers

Game engine for augmented reality

For an augmented reality project I want to display a high resolution live camera feed. Then in front of this I want to display a model than can be manipulated (translate, stretch, etc) in real time. I was going to use OpenSceneGraph but realized it…
hoju
  • 28,392
  • 37
  • 134
  • 178
2
votes
1 answer

Can OpenSceneGraph use less bytes for RGB colors?

I'm loading a large coloured point cloud into OpenSceneGraph using a Vec4Array for per vertex for colors. This is very memory inefficient, requiring 16 bytes of color information per vertex where I'd like to store 4 or less. The datasets I'm…
SmacL
  • 22,555
  • 12
  • 95
  • 149
2
votes
0 answers

OpenSceneGraph 3D Programming Toggle Mouse Sensitivity

I have a requirement to put code in to toggle the sensitivity of the mouse - increase or decrease the speed of my Camera’s walk speed in the scene. Currently, I have an eventhandler wired up to intercept keyboard commands, and process them…
Kobojunkie
  • 6,375
  • 31
  • 109
  • 164