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

OpenSceneGraph: how to check whether ogsText::Font supports a provided character?

I am trying to check whether the font contains a glyph for a given character. To achieve this, I have loaded the font by readFontFile() and get a glyph of the character. Then, I wanted to check whether the glyph texture is available. I tried the…
1
vote
1 answer

OSG: Why there is texture coordinate array but not texture itself?

I am trying to get texture file name from an osg::Geometry I get the texture coordinates like this: osg::Geometry* geom = dynamic_cast (drawable); const osg::Geometry::ArrayList& texCoordArrayList = dynamic_cast
Tuna
  • 113
  • 1
  • 11
1
vote
0 answers

OSGB - number of tiles per file

I have OSGB models that are created with either software: AgiSoft, Bentley, SkylineSoft, Pix4D. Currently each tile in the output folder is divided into at least two files, one osgb and one or several texture file (jpg). I have a problem in the…
user2012707
  • 51
  • 1
  • 4
1
vote
4 answers

What are the differences between running an executable from a Windows Command Prompt versus from Windows Explorer?

EDIT: This is due to stupidity. It is a multiple monitor issue. It's just that from cmd.exe we always opened in the primary monitor, whilst from explorer, we always opened in the secondary. Thanks all for the help! We hit a weird bug recently. …
Thadeux
  • 146
  • 1
  • 8
1
vote
1 answer

Cannot embed textures in FBX file

I need to rotate/resize an FBX with some embedded textures and I stumbled upon a weird problem. Apparently, the file generated by OSGconv has external textures only, and there is no way to change this. I'm using OSG 3.6.5 and this is the command…
1
vote
1 answer

OSG Earth camera position

I am writing to you after several negative attempts. I am working with OSGEarth, in particular I cannot set the longitude, latitude and height of the camera for the starting position. I'm afraid it is associated with the fact that I use the…
1
vote
1 answer

Lines not showing up in osgEarth & Qt

I am attempting to use osgEarth in a Qt (5.12) application on Windows, and I am having some trouble with it showing lines - as in, they are simply not showing up. Following some of the instructions to build osg, osgQt, and osgEarth here on Stack…
Bavid80
  • 13
  • 2
1
vote
1 answer

Text dissapears on QOpenGLWidget after undocking

I'm trying to integrate Qt5 and OpenSceneGraph. I've found this minimal example of embedding. When I encapsulate the widget, defined in the example, into a QDockWidget and add a simple text label to the example, the text dissapears when I undock the…
user20679
  • 442
  • 4
  • 17
1
vote
1 answer

OSG Outline only appears on one side of geometry

I'm trying to make an outline appear around a piece of 2D geometry in a scene. The outline appears only on one side of the geometry and I want it to appear on both sides. I assume there's a setting I need to specify but being new to OSG I don't know…
Touchdown
  • 494
  • 4
  • 19
1
vote
0 answers

How to place 3D-model on the top of Face Landmarks, like a face-filter app?

I am using two libraries: OpenCV for computer vision functions and OpenSceneGraph for computer graphics functions. Because, the main purpose of the software is augmented reality. The main aim of the software is to create a face-filter like the one…
1
vote
1 answer

Set orthographic camera position to display extents of plane in OSG

I have an orthographic camera in an osg scene. There are flat objects (planes) which will be displayed in that scene, and I want to be able to have the camera automatically point at them to as to view them head-on, and also to be zoomed to show as…
Touchdown
  • 494
  • 4
  • 19
1
vote
0 answers

How to create a osg::Image object in Android?

On iOS/windows I can create a osg::Image object by this: osg::ref_ptr icon = osgDB::readRefImageFile(filePath); the filePath param could be the "Resource/a.png", which is a relative path in the project. but this could not work in…
1
vote
1 answer

How to add osgEarth Features at runtime?

I'm playing around with osgEarth and while it's crazy easy to add features in the .earth file, I'm struggling to do it at runtime via the API. I want to let the user draw polygons on the map/globe so I need to be able to dynamically define geometry…
Moohasha
  • 245
  • 1
  • 13
1
vote
0 answers

Bind already existing cudaTextureObject to texture in OpenSceneGraph(OpenGL) for rendering

I have a cudaTextureObject (2D) which is the result of a chain of signal processing kernels. Now I would like to display this cudaTextureObject in our viewer with OpenSceneGraph. All solutions for OpenGl interop with CUDA I found so far need to…
JFT
  • 41
  • 1
  • 6
1
vote
1 answer

How to disable State attribute in Openscenegraph geometry node?

I tried adding a fragment shader program to OSG::Geometry node as below. osg::ref_ptr node = new osg::Geometry(); osg::ref_ptr m_program= new osg::Program; osg::ref_ptr fragShader = new…
S.Frank Richarrd
  • 488
  • 1
  • 3
  • 15