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
2 answers

OSG/OSGEarth How to move a Camera

I'm making a Drone simulator with OSGEarth. I never used OSG before so I have some troubles to understand cameras. I'm trying to move a Camera to a specific location (lat/lon) with a specific roll, pitch and yaw in OSG Earth. I need to have multiple…
Tom Henoch
  • 13
  • 4
1
vote
1 answer

Embed OSG into QGraphicsView, QGraphicsScene not show

For some reasons, our software's QWidget items are put into a QGraphicsScene, and render by QGraphicsView. Now I tring to embed open scenegraph into this QFraphicsView, Reimplemented the QGraphicsView's drawbackground function like this void…
1
vote
1 answer

Texture Coordinates OSG GLSL

I have an image 500x500 pixels which I converted as Texture2D to GLSL and return back the raw data to C++/OSG. I have faced problems with texture coordinates (the coordinates on GLSL goes from 0 to 1). Can someone help me with this point? C++…
1
vote
1 answer

OpenSceneGraph not loading openflight plugin

I have a problem loading an openflight (*.flt) model into Openscenegraph using a simple test app: #include #include using namespace std; int main(int argc, char* argv[]) { // Setting the message level low so I can…
1
vote
1 answer

OpenSceneGraph: 3rd Person View

Goal: Create a third person view using OpenSceneGraph (OSG) which includes controlling a model. The model is movable using WASD and the mouse. While the right mouse button is clicked, the camera AND the view should change. The direction of the model…
Jay
  • 27
  • 7
1
vote
1 answer

How to create .jpeg osg plugin on windows?

I am trying to build openscenegraph with cmake on windows. At the end it creates .tga image plugin but I cant get .png, .tiff or .jpeg plugins. What are the necessary steps to create those plugins on windows ? Thanks
Grayowl
  • 77
  • 3
  • 12
1
vote
1 answer

OpenSceneGraph integration into Qt Quick

I want to integrate OSG scene into my Qt Quick application. It seems that the proper way to do it is to use QQuickFramebufferObject class and call osgViewer::Viewer::frame() inside QQuickFramebufferObject::Renderer::render(). I've tried to use…
Kamil Zaripov
  • 904
  • 11
  • 33
1
vote
0 answers

Why does open scene graph only render if UseVertexBufferObject is enabled?

I have written a program with OpenSceneGraph (interfaced into Qt Gui) at work and all was fine. Now that I took the program home (i.e. I got the source code home and compiled it at home), I don't see the scene anymore unless I set the option…
Tare
  • 482
  • 1
  • 9
  • 25
1
vote
0 answers

OpenSceneGraph static linking for Android

I'm trying to compile static OpenSceneGraph for Android. However, when I'm trying to open simple .osg model, osg says that it can't load osgPlugins-3.4.0/osgdb_osg.so. Host OS: macOS 10.12.6 CMake version 3.9.0 OpenSceneGraph version 3.4.0 Android…
Kamil Zaripov
  • 904
  • 11
  • 33
1
vote
1 answer

OpenSceneGraph - How to detect two Node are intersect with each other?

Im tring to make a collision between two nodes in OpenSceneGraph. I want to make a way to ensure that two nodes are intersect. how to do that. Im showing as follows my function to detect the collision. void…
Navi.dev1
  • 151
  • 1
  • 5
1
vote
1 answer

GLSL uniform for each object

Currently I have problems by handling uniforms on GLSL shaders. If I have only one object in the scene, the uniform works as I expect. However, for multiple objects, the uniform is not set per object, in other words, the last uniform is used to…
1
vote
2 answers

How can I disable / overrride the Wireframe and Stats key in OpenSceneGraph?

I inherited a decent-sized code base that has a subpar camera control scheme. I'd like to use WASD for controls, but W is for wireframe and S is for statistics. The only solution I could find was: viewer.setKeyEventSetsDone(0); But this doesn't…
user3000724
  • 651
  • 3
  • 11
  • 22
1
vote
1 answer

Implementing seek behaviour of objects on a plane in OpenSceneGraph?

I have created an open plane area with thin cylinders on it like pucks, they bounce around the area and have collision detection for some larger cylinders also placed on the plane. I am trying to get them to now head towards a set point on the plane…
kai Taylor
  • 785
  • 1
  • 7
  • 21
1
vote
0 answers

Build OSVR Tracker viewer Faild, CMake Error : Could NOT find OpenSceneGraph

I compiled the source code of osvr_tracker_viewer with cmake. I set entries like follow: -DBOOST_ROOT="C:/local/boost_1_62_0" ^ -DBOOST_LIBRARYDIR="C:/local/boost_1_62_0/lib64-msvc-12.0" ^ -Dosvr_DIR="d:/Project/OSVR-Build/OSVR/OSVR-Core/build"…
Aaron Lee
  • 2,060
  • 2
  • 15
  • 20
1
vote
1 answer

Rendering point cloud data with draw instancing from OSG Cookbook not working

I am rendering a point cloud using OSG. I followed the example in the OSG cookbook titled "Rendering point cloud data with draw instancing" that shows how to make one point with many instances and then transfer the point locations to the graphics…
Brandon
  • 163
  • 1
  • 9