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

Terrain Deformation as per road profile in OpenGL/DirectX

I am planning to use OSG (Openscenegraph) for terrain deformation as per road profile. The road mesh has been generated separately and I shall put it on the terrain. The terrain generated by OSG must deform itself as per the road profile. Also…
umesh
  • 21
  • 1
2
votes
0 answers

QQuickFramebufferObject: where is the custom FBO used ? How can this cause flickering?

I am currently integrating a custom OpenGL viewport within QML via QQuickFramebufferObject. I observe some flickering of the whole app window (not only of the QQuickFramebufferObject window) and I am wondering why. My custom…
arennuit
  • 855
  • 1
  • 7
  • 23
2
votes
1 answer

Class 'stat64' doesn't have constructor stat64(const char *,stat64*)

I am trying to build my android application with support for OpenSceneGraph. I am trying to render a simple box from my project's raw folder. However, when I build the project I am getting this compile error in the FileUtils class of the…
Georgi Koemdzhiev
  • 11,421
  • 18
  • 62
  • 126
2
votes
1 answer

How to fix this error which comes building the VirtualplannetBuilder source on visual studio 2013?

I already installed GDAL 1.11.4 32Bit and OpenSceneGraph-3.4.0 on my windows 10 machine. 1>gdal.lib(cpl_odbc.obj) : error LNK2019: unresolved external symbol _SQLAllocConnect@8 referenced in function "public: int __thiscall…
user8109089
2
votes
3 answers

Allocating heap memory greater than 32-bit allows

I am working on a 32-bit OSGEarth project, where I have to mosaic a selection of images together into one large image. Switching to 64-bit is not an option. Images are stored in-memory as a collection of 256x256 tiles. The problem arises when the…
Acorn
  • 1,147
  • 12
  • 27
2
votes
1 answer

Converting osg image to opencv mat for processing

Edit: The problem has since been solved, but the root of the problem lies elsewhere, the following is left as-is to help others who might need to do conversions OpenCV<->OSG In OSG, I have an osg::ImageStream, and an osg::Image. The ImageStream…
2
votes
1 answer

Controlling depth buffer and drawing order in OpenSceneGraph

I'm working on a little GIS app using OSG, but i'm quite a newbie with it. As the view is not changing a lot, i'm not struggling to keep a decent fps ratio. I have to draw multiple layers on the same view. Layers may overlaps, but not always. Right…
Krag
  • 79
  • 1
  • 9
2
votes
2 answers

OSG render scene into image

I trying to render an OSG scene into a image in my Qt program. Refer to the example of SnapImageDrawCallback(https://www.mail-archive.com/osg-users@lists.openscenegraph.org/msg45360.html). class SnapImageDrawCallback : public…
2
votes
1 answer

OpenSceneGraph memory usage when resetting scene

I have spent a great deal of time trying to figure out OSG's memory management. I have a scene graph with several children (actually a LOD based on an octree). However, when I need to reset my scene (I just want to wipe ALL nodes from de scene and…
manatttta
  • 3,054
  • 4
  • 34
  • 72
2
votes
2 answers

How to update Geometry properly

I am trying to display a point cloud, consisting of vertices and color with OSG. A static point cloud to display is rather easy with this guide. But I am not capable of updating such a point cloud. My intention is to create a geometry and attach it…
Daniel R.
  • 774
  • 1
  • 7
  • 19
2
votes
2 answers

how to get AABB Bounding Box from MatrixTransform Node in OpenSceneGraph

The structure here is osg::MatrixTransform | osg::Geode | several drawables how can i get AABB bounding box from osg::MatrixTransform?
Johnsondu
  • 21
  • 1
2
votes
2 answers

3DS file loader for opengl

this is my 1st question in the site. I need a 3DS model loader for opengl applications. Loader should also be able to load .jpg textures. I tried to use OpenSceneGraph for this purpose but this time I have to also use the whole OpenSceneGraph data…
2
votes
1 answer

How to remove a node from its callback function?

There is a Geode whose Geometry is a ball with a MatrixTransform() assigned above it. It's callback function makes it falls. When the ball intersects with the ground, I hope to remove it from the scene. The following code throws exception: //inside…
DarkZero
  • 2,259
  • 3
  • 25
  • 36
2
votes
1 answer

How to change background at runtime on openscenegraph

I try to add an 3d object on viewer and change background dynamically. I capture webcam using opencv VideoCapture. I did below steps : Open video capture and get frame Create openscenegraph root Add a child to root ( read from .osg file 3d…
zakjma
  • 2,030
  • 12
  • 40
  • 81
2
votes
1 answer

Cmake: link openscenegraph to my shared library

I'm new in using CMake, and I need to link openscenegraph library to my shared library. Part of code responsible for it looks like this: add_library (MyLib SHARED ${${PROJECT_NAME}_sources}) target_link_libraries(MyLib…