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

Linking of Openscenegraph libraries for CMake

Well,I am new to CMake and want to edit flight simulation code in eclipse instead of visual studio. For that purpose, I downloaded the source code of Simgear, CMake, Boost libraries, open scene graph and openalsoft. Now I have all the data available…
MSM
  • 410
  • 6
  • 16
1
vote
0 answers

OpenSceneGraph/OpenGL Image internalFormat

I need to pass a 2D texture array to a fragment shader that performs texelFetch and bitwise operations over uchar elements. For this reason, I need to create a texture with a very specific internal format, that guarantees that my texels are in…
manatttta
  • 3,054
  • 4
  • 34
  • 72
1
vote
2 answers

FBO errors when getting stencil buffer using OSG

I'm trying to get the stencil index of a node using offline rendering in OSG. My main procedures are listed below: deeply copy the node I want to offline render and get the stencil index; create a offline render camera, and make the previous copied…
Jimmy Chen
  • 490
  • 3
  • 13
1
vote
0 answers

vertex attribute cannot be passed into vertex shader in OSG

everyone, I am using vertex attribute in a vertex shader with OSG. I followed the routine which includes addBindAttribLocation and setVertexAttribArray. The problem is that if I use VBO, then the vertex attribute cannot be passed to vertex shader.…
Jimmy Chen
  • 490
  • 3
  • 13
1
vote
1 answer

Unresolved externals on static linking OpenSceneGraph libraries in Visual Studio

I'm using OpenSceneGraph libraries in my application and I want to link them statically, so I don't have to carry DLLs with binary. I have downloaded OpenSceneGraph 3.4.0 sources and generated Visual Studio project by cmake. I did disabled…
Łukasz
  • 31
  • 4
1
vote
1 answer

Texture mapping of the cessna.osg via GLSL shaders

What I am trying to do should be pretty simple, I guess, but I am not getting what I want (maybe because I am kind of newbie in this kind of tools). I just want to map a certain texture image (typical bricks, for instance) into the existing…
user3417052
  • 141
  • 11
1
vote
0 answers

Multitouch Openscenegraph and Qt

I have a Qt application with an integrated OSG scene. The problem is that Multitouch events are not working correctly on my Surface-Tablet. Maybe they are not forwarded to the Qt-Widget which holds the OSG scene. One finger touch works fine like…
1
vote
1 answer

How to make align objects, autorotated to screen, to pixel grid?

I'm trying to show a rectangular object so that it doesn't change its look on rotations and zoom in OpenSceneGraph. I've found that osg::AutoTransform should work for me. But with the following code it appears to give broken results even if I set…
Ruslan
  • 18,162
  • 8
  • 67
  • 136
1
vote
1 answer

OpenSceneGraph osg::Quat: shape not rotating

I have a small function to create a new instance of a WorldObject. I want to use osg::ref_ptr for translation and rotation but there is a problem I can't figure out. I use setTranslation() with a Vec3 which works very…
Dropye
  • 214
  • 3
  • 18
1
vote
1 answer

Load big image in osg

i am using openscenegraph to show a bridge model.I use Texture2D to represent an image.Now,the problem is that the image is too large, about 1G .if i load the whole image at one time,it would be a waste of computer memory. I want to implement the…
yyLiao
  • 41
  • 4
1
vote
1 answer

Read Shader Storage Buffer Object data after computer shader execution in openscenegraph

I'm trying to read back data, a simple float array, from a shader storage buffer object after execution of a compute shader. I need this data into my application code running osg library. Following the osgssbo example I setup a shader storage buffer…
Bikappa
  • 86
  • 6
1
vote
0 answers

Understanding OpenSceneGraph AddChild in an other thread

I am replacing the OpenGL code of my C++ app with code that uses OpenSceneGraph. The app is based on Qt and using Qt Threads. The main thread is calling the viewer->frame() while other threads are loading data. Those threads directly works whith my…
Krag
  • 79
  • 1
  • 9
1
vote
1 answer

Compiling osgconv on Linux statically with support for obj files

I've compiled OpenSceneGraph 3.4.0 on Linux (32-bit) setting OFF DYNAMIC_OPENSCENEGRAPH and DYNAMIC_OPENTHREADS flags and enabling apps and examples on CMake. Build was successful and I have static libraries and also the example osgstaticviewer…
Francesco Argese
  • 626
  • 4
  • 11
1
vote
1 answer

OpenGL to OpenSceneGraph migration: Incorrect display in case of certain texture dimensions

I am replacing the OpenGL code of my app with code that uses OpenSceneGraph. I am working with large images (resolution higher than 5000x5000px), therefore images are split into smaller tiles. The OpenGL code to draw the tiles uses…
Krag
  • 79
  • 1
  • 9
1
vote
2 answers

undefined reference openscenegraph

I'm trying to compile a ROS OSG project from here https://github.com/uji-ros-pkg/visualization_osg and keep getting following error: CMakeFiles/osg_interactive_markers_demo.dir/examples/osg_interactive_markers_demo.cpp.o: In function…
Etimr
  • 51
  • 6