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

MiniMap/PIP for OpenSceneGraph

So I am trying to create a mini-map/PIP. I have an existing program with scene that runs inside a Qt Widget. I have a class, NetworkViewer, which extends CompositeViewer. In NetworkViewer's constructor I call the following function. Notice the root…
David Mokon Bond
  • 1,576
  • 2
  • 18
  • 42
2
votes
1 answer

Ignore keyboard presses on Qt inside OSG

I’m newbie with Qt, and experiencing one problem I cannot deal with for, like, a month. The situation is like this: I’ve OpenSceneGraph project (which is OpenGL) and trying to make Qt interface inside the 3d scene. I think its not necessary how I…
Kilazi
  • 308
  • 3
  • 14
2
votes
1 answer

Trying to make Qt HUD in OSG, camera issue

I'm kind of newbie in both OSG and Qt, still I'm trying to make Qt HUD upon my OSG window, what I want is Qt interface elements fixed inside OSG scene, not spinning with the model. The thing is, I need Qt elements INSIDE osg scene, not OSG scene…
Kilazi
  • 308
  • 3
  • 14
2
votes
0 answers

Openscenegraph - How to create an invisible boundary beyond which camera does not go

I am new to 3d programming so here goes. I am trying to simulate a room. I don't have images for the walls loaded but I want to in code simulate the boundaries. How do I accomplish this please? Below is the code that handles the movement of the…
Rac Main
  • 191
  • 1
  • 1
  • 7
2
votes
1 answer

Fail to install PyOSG because of osgProducer linking error

I am trying to install the Python wrapper for OSG with pip install PyOSG. But it failed with this error: g++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions build/temp.linux-x86_64-2.6/Producer/Referenced.o…
satoru
  • 31,822
  • 31
  • 91
  • 141
2
votes
3 answers

Is there a quick way to convert a .dae file to a .osg file?

So is there a quick way to convert a .dae file (COLLADA) to a .osg (OpenSceneGraph) file?
user1385816
  • 99
  • 1
  • 2
  • 12
2
votes
3 answers

OpenScenegraph sample code issue

The code below is from a book. When I try to run it, it fails on the line osg::ref_ptr geom = new osg::Geometry(); and, the output window does not seem to contain much information on why it crashes, other than telling me that it did. Any idea what…
Kobojunkie
  • 6,375
  • 31
  • 109
  • 164
2
votes
2 answers

3D Programming Frustum Culling

Would appreciate a good explanation of Frustum Culling in 3D graphic programming please. I need to learn 3D (have never done serious graphic programming up to this point), and I am having a bit of a hard time understanding some of the terminologies…
user272671
  • 657
  • 4
  • 13
  • 26
2
votes
2 answers

Updating Textures on Runtime in OpenSceneGraph

I am working on a project in which I am required to capture frames from external device video and render them on openSceneGraph Node. I am also using GLSL shaders. But I don't know how to update textures on runtime. For other uniforms we need to…
Abhishek Bansal
  • 5,197
  • 4
  • 40
  • 69
2
votes
4 answers

Multiple Qt widgets depicting different OpenSceneGraph nodes without performance loss

We are currently facing the following problem: We have an application that needs to display a multitude of separate OpenSceneGraph scenes in different Qt widgets. For example, we might have one Qt widget depicting a sphere, while another widget…
Gnosophilon
  • 1,340
  • 7
  • 24
2
votes
2 answers

OpenGL blending function to elminate primitive overlap but maintain overall opacity

I have some geometry which has a single primitive set that's a tri-strip. Some of the triangles in the primitive overlap, so when I add a material to the geometry with an alpha value I see the overlap (as expected). I want to get rid of this effect…
Prismatic
  • 3,338
  • 5
  • 36
  • 59
1
vote
1 answer

Problems compiling shader source within osg application

I have an OSG application that I want to texture map a full screen quad in the finalDrawCallback because I need everything in my scene to be rendered before the texturing is done. This is why I have to use the openGL calls instead of the osg calls…
Fajak
  • 51
  • 1
  • 6
1
vote
2 answers

OpenSceneGraph Texture2D image "dirty" vs "setImage" performance

I have a 2D texture placed over rectangular area - it's a dynamic texture image (640x480). tex = new osg::Texture2D; tex->setDataVariance( osg::Object::DYNAMIC ); tex->setResizeNonPowerOfTwoHint( false ); tex->setFilter( osg::Texture2D::MIN_FILTER,…
Mikhail Churbanov
  • 4,436
  • 1
  • 28
  • 36
1
vote
1 answer

relocation R_X86_64_32 against symbol `ff_a64_muxer' can not be used when making a shared object; recompile with -fPIC

I am trying to build osg v 3.4 following the github readme, however i get the following compilation error after on the make VERBOSE=1 step: [ 94%] Linking CXX shared module ../../../lib/osgPlugins-3.4.0/osgdb_ffmpeg.so cd…
1
vote
1 answer

How to correctly loading shp file by code

I am trying to load a .shp file by OGRFeatureSource class, and it is not showing in the scene, but when I load .earth file, using osgearth_viewer by arguments, the shape file works. Any errors are printing on terminal. I based my code on tutorials…
Victor
  • 13
  • 2