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

How to convert osgjs format to obj or similar formats?

This question deals with how to convert .osg to .obj but I am using the WebGL version. The osgconv cant handle the .osgjs extention. I cannot find any tools with regular search. Typing osgconv model.osgjs model.obj doesnt work.
Souradeep Nanda
  • 3,116
  • 2
  • 30
  • 44
0
votes
1 answer

The right way of adding a Cull Callback to a node in OpenSceneGraph

I have a code that handles a Cull Callback by overriding traverse method: void SomeNode::traverse(osg::NodeVisitor& nv) { if (nv.getVisitorType() == osg::NodeVisitor::CULL_VISITOR) { //adjust child node positions depending on the…
Koban
  • 463
  • 1
  • 6
  • 12
0
votes
1 answer

How to make a node look differently in different views in OpenSceneGraph?

What technique should be used in multi-view app (using CompositeViewer) if some nodes look differently in different views? For example, if some label positions should be recalculated depending on the view's camera parameters? Or if some other kind…
Koban
  • 463
  • 1
  • 6
  • 12
0
votes
2 answers

CullVisitor::apply(Geode&) detected NaN,

I have the following message when I run my OSG application: CullVisitor::apply(Geode&) detected NaN, depth=nan, center=(1.79588 1.50488 1.42179), matrix={ nan nan -nan -nan nan nan -nan -nan nan nan -nan -nan …
0
votes
1 answer

QQuick + OpenSceneGraph flickering

I am using QQuickControls 2 (SwipeView) with OpenSceneGraph for the 3d rendering. Using QQuickFramebufferObject for the integration. Since I have introduced a SwipeView, I observe some flickering of my GUI. I have looked for ages in the doc (it…
arennuit
  • 855
  • 1
  • 7
  • 23
0
votes
1 answer

Why does OpenSceneGraph map all Sampler2D to the first texture

I am currently writing a program with OpenSceneGraph (3.4.0) and my own glsl (330) shaders. It uses multiple textures for input, then does a multiple render target rendering with a pre render camera and reads in those multiple render target textures…
Tare
  • 482
  • 1
  • 9
  • 25
0
votes
1 answer

How to fix processor affinity for Qt 5.9 Thread on Windows with Ryzen 7

I have been developing a program for my Master's Thesis with OpenSceneGraph-3.4.0 and GUI from Qt 5.9 (otherwise in Visual Studio 2015 and 2017). At work everything works fine, but now that I have a new Computer at home I tried to get it…
Tare
  • 482
  • 1
  • 9
  • 25
0
votes
1 answer

Why does the camera not remain child of the other camera after adding it in osg?

I am writing an OpenSceneGraph based program that uses two cameras, one to render the preview for the user and one that uses a callback to make screenshots with MRT. The exporter camera is using an orthographic projection and always from the same…
Tare
  • 482
  • 1
  • 9
  • 25
0
votes
1 answer

__glewBindBuffer Compile Error

I have been trying to compile a code base (CloudyDay) on my Linux machine. After jumping through so many hoops to get it going, I am stuck at this error. Error - undefined reference to `osg::GLBufferObject::Extensions::__glewBindBuffer(unsigned int,…
PaperMoon
  • 105
  • 8
0
votes
1 answer

how to fix error when debugging a OpenSceneGraph sample project

`#include #include int main(int argc, char** argv) { osgViewer::Viewer viewer; viewer.setSceneData(osgDB::readNodeFile("cessna.osg")); return viewer.run(); } ` Exception thrown at 0x7618A832 in…
user8109089
0
votes
1 answer

How do you handle case sensitivity in OpenSceneGraph keyboard input events?

(Please forgive my shorthand as this is from memory) I have code similar to: bool myclass::handle(event ea){ switch (ea.getEventType()){ case(osgGA::KEYDOWN): switch (ea.getkey() ) { case (osgGA::KEY_Lshift): …
user3000724
  • 651
  • 3
  • 11
  • 22
0
votes
1 answer

Error on running sample

I downloaded the source code of openscenegraph and build it using cmake and vc++ 2013. And then I failed to run sample when I set argument like that: set…
Aaron Lee
  • 2,060
  • 2
  • 15
  • 20
0
votes
1 answer

Mouse event picker openscenegraph

I want to use OpenSceneGraph Pickhandler in order to print the name of a node when clicked on with a mouse. I have made a PickHandler Header file and included what I think is the correct code to make this happen. After no errors upon running the…
0
votes
1 answer

iOS | OpenGLES 2/3 - glMatrixMode alternative

I'm moving an application from Windows to iOS. Then I need to convert "OpenGL" in OpenGL ES. In the original application I had glPush/PopAttrib instructions but it doesn't exist in OpenGL ES. Some people talk about an alternative here:…
Valtiel
  • 1
  • 2
0
votes
1 answer

Installing OpenSceneGraph Visual 2015

I have some trouble installing OpenSceneGraph with Visual Studio 2015. I followed this old tutorial : How to build OpenSceneGraph from source and third party dependencies? and it fails at some point Here is what I've done so far : Download OSG 3.4…
Amott
  • 191
  • 9