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

Conversion to non-scalar type with std c++11 smart pointer

I am currently playing around with openscenegraph and it uses its own smart pointer. But I want to use the std c++11 smart pointer. now this is the working example code osg::ref_ptr SineUniform = new osg::Uniform( "Sine", 0.0f…
Maik Klein
  • 15,548
  • 27
  • 101
  • 197
3
votes
1 answer

Difference between OpenSG and OpenSceneGraph

First of all I read the offcial comparison OpenSG and OpenSceneGraph. My current goal is to create a small game engine for learning purpose. I started with pure OpenGL but then I found those scene graph libraries which are looking quite nice. I…
Maik Klein
  • 15,548
  • 27
  • 101
  • 197
3
votes
1 answer

Using OSG's osgViewerQt example with Qt signals/slots

I have already posted this in the OSG mailing list, but the mailing list seems to be a bit slow. Anyway, I'm trying to modify the osgViewerQt example by adding a new class of my own that will contain the viewer. The design is: wrapper.h: Defines…
Adri C.S.
  • 2,909
  • 5
  • 36
  • 63
3
votes
2 answers

Coordinate Transformation C++

I have a webcam pointed at a table at a slant and with it I track markers. I have a transformationMatrix in OpenSceneGraph and its translation part contains the relative coordinates from the tracked Object to the Camera. Because the Camera is…
David
3
votes
3 answers

Working OpenSceneGraph bindings for Python?

I'm building a rendering engine in Python for fun. I need to load 3D scenes. Any standard modern format like DAE, 3DS, or MAX would work: I can convert my files easily between standard formats. OpenSceneGraph seems to be the most comprehensive and…
user1859060
  • 31
  • 1
  • 3
3
votes
2 answers

OpenSceneGraph float Image

Using C++ and OSG I'm trying to upload a float texture to my shader, but somehow it does not seem to work. At the end I posted some part of my code. Main question is how to create an osg::Image object using data from a float array. In OpenGL the…
Nero
  • 1,295
  • 1
  • 16
  • 23
3
votes
6 answers

C++ bad_alloc at memory location Exception

Unhandled exception at 0x758cd36f in OSGP.exe: Microsoft C++ exception: std::bad_alloc at memory location 0x0028ef70.. I am trying to execute the code below in Visual Studio. However, i keep running into the exception above. I added a try catch to…
user272671
  • 657
  • 4
  • 13
  • 26
3
votes
1 answer

How to build OpenSceneGraph from source and third party dependencies?

How can I build OpenSceneGraph from source? What should I do to get the third party dependencies for OSG built?
Nav
  • 19,885
  • 27
  • 92
  • 135
3
votes
2 answers

Qt and OSG Integration Issue, Scene Graph Disappearing

So I've run into a problem while integrating QT and OSG. I've had a QT/OSG program that been working just fine. The layout is simlar to what you see below. |--------------------------| | 1 | 2 | | | | | …
David Mokon Bond
  • 1,576
  • 2
  • 18
  • 42
2
votes
1 answer

camera matrix to OpenSceneGraph camera

I have a problem. I Have a OpenGl project and i want to set the camera matrix of the OpenGl into a OpenSceneGraph camera to have the same view. I've this code to get OpenGl camera : GLdouble camera_pos[3]; double rationZoom = //…
Dada
  • 21
  • 5
2
votes
1 answer

Change color of Node read from dxf file on OpenSceneGraph

I'm a newbie on OpenSceneGraph and 3D development. I have a dxf file that contains a bunch of 3DPOLYLINES (with different colors). So far I have been able to read and display them on a viewer, but I haven been able to change the color of the…
user20679
  • 442
  • 4
  • 17
2
votes
0 answers

OSG: get coordinates of transformed primitive line? Building wireframes

I have two, more or less related, questions: Currently I'm working on the creation of a simple wire-frame model of a more complicated object in OpenSceneGraph. After creating a very primitive object (a line) at a certain coordinate in space,…
marvin2k
  • 1,573
  • 2
  • 14
  • 18
2
votes
1 answer

How to calculate 3D point (World Coordinate) from 2D mouse clicked screen coordinate point in Openscenegraph?

I was trying to place a sphere on the 3D space from the user selected point on 2d screen space. For this iam trying to calculate 3d point from 2d point using the below technique and this technique not giving the correct solution. mousePosition.x =…
S.Frank Richarrd
  • 488
  • 1
  • 3
  • 15
2
votes
0 answers

Multiple Render Targets (MRT) and OSG

Folks, I have studied about FBO, RTT and MRT to include this feature in my application, however I faced with some problems/doubts I did not find answers/tips during my search. Follows below the description of my scenario. I´ll be grateful if anyone…
2
votes
0 answers

How to check validity of Handle in swig wrapper

I am trying to correctly dispose a scene graph from C# via swig wrapped open scene graph nodes. If I dispose of an osg node, I may get back to it via another pointer later on, so that I would call a method on the osg node which has already been…
Tare
  • 482
  • 1
  • 9
  • 25