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

OpenSceneGraph performance between Qt 4.7 and 4.8

I'm working with OpenSceneGraph 3.0.1 (the latest stable) and Qt. OSG has a module named osgQt to create a widget for OSG rendering. I have noticed a strange frame rate drop switching from Qt 4.7 to 4.8. With 4.7.3, the frame rate was maximum 60fps…
Marco Fiocco
  • 352
  • 2
  • 15
3
votes
1 answer

build OpenSceneGraph 3.0.1 for iOS

I'm trying to build the OpenSceneGraph for iOS as specified in the README file. cmake -G Xcode \ -D OSG_BUILD_PLATFORM_IPHONE:BOOL=ON \ -D CMAKE_CXX_FLAGS:STRING="-ftree-vectorize -fvisibility-inlines-hidden -mno-thumb -arch armv6 -pipe…
Aruna
  • 701
  • 10
  • 26
3
votes
2 answers

Rotate a 3D object (OSG & vc++)

I'm developing a 3D environment using VC++ and OSG and I need some help I'm using this code below to charge the 3D models for the scene mueble00Node = osgDB::readNodeFile("Model/mueble_desk.3ds"); mueble00Transform = new…
erik
  • 31
  • 1
  • 3
3
votes
2 answers

Near-uniform tessellation of a concave polygon for heightmaps

I am given the contour/boundary of a concave polygon which cannot have holes, and I need to apply a heightmap to it. To this end, I need to perform a near-uniform tessellation of the polygon like so: . How can I perform this tessellation? Ideally,…
Kanpachi
  • 31
  • 4
3
votes
2 answers

How to invert the Rotation of one Axis in a Camera Matrix (e.g. OSG CameraViewMatrix)

For an augmented reality application I am using some slam algorithm to predict the current orientation of my mobile phone. The algorithm (LSD-Slam) supplies the current pose in form of a SE3 lie group (using Sophus::Sim3f). If I got this right,…
3
votes
2 answers

How to display Collada (.dae) file on Android with layers support?

The project I am working on is the augmented reality Android app. I need to display 3D objects in any way using Collada file format (.dae). The client want to use Collada because it is easy to export 3D projects into this format and .dae supports…
3
votes
3 answers

Memory usage and minimizing

We have a fairly graphical intensive application that uses the FOX toolkit and OpenSceneGraph, and of course C++. I notice that after running the application for some time, it seems there is a memory leak. However when I minimize, a substantial…
Robb
  • 2,666
  • 4
  • 20
  • 24
3
votes
1 answer

cmake in Qt cannot find third-party libraries while cmake from command line can

I'm using Qt (5.5.1) with OpenSceneGraph (OSG-3.4.0) library. I have a basic "HelloWorld" project that compiles and works from Qt on another machine on Windows 7. But when I try to compile the same project on Linux (Lubuntu-14.04), the CMake within…
vicrucann
  • 1,703
  • 1
  • 24
  • 34
3
votes
0 answers

OpenSceneGraph integration in Qt MainWindow

I have the following code which is a modification of the code given by OpenSceneGraph (https://github.com/openscenegraph/osg/blob/master/examples/osgviewerQt/osgviewerQt.cpp) for integrating OSG with Qt: OSGViewer.h #ifndef OSGVIEWER_H #define…
Kostas
  • 270
  • 1
  • 3
  • 10
3
votes
0 answers

Create OpenGL context with OpenSceneGraph? On Mac?

I am having trouble compiling GLSL shaders that are #version 140 or higher. Ideally, I'd like to compile GLSL shaders that are #version 410. I believe to do this, OSG should create an OpenGL context that is 4.1, but everything I've been trying has…
SharkCop
  • 1,080
  • 2
  • 12
  • 19
3
votes
2 answers

How to rotate camera in openscenegraph(Walk Through in Model)?

I have loaded 3D Model in my scene and i want to walk through in the world. i achieved forward,backward,left,right,up and down but i need to rotate my camera at that camera location about x,y,z but i aam not able to get please help me?? #include…
user3138495
3
votes
3 answers

How to change vertex position using glsl

I am trying to move object depending on camera position. Here is my vertex shader uniform mat4 osg_ViewMatrixInverse; void main(){ vec4 position = gl_ProjectionMatrix * gl_ModelViewMatrix *gl_Vertex; vec3…
Stranger1399
  • 81
  • 2
  • 12
3
votes
2 answers

How to reference a variable without knowing the specific type?

I'm fairly new to C++, and still trying to get my head around some of the finer points of intermediate-level concepts such as templates/writing generic code. I'm writing an application using OpenSceneGraph (OSG), and basically this is what I'm…
3
votes
3 answers

Export from OpenCascade, import into OpenSceneGraph

We have a modeling tool which uses OCC, and a 3d editor using OSG. What I want to do is, export the model from the first tool and import into the second tool. I have been searching the web for days, but I can't find a solution. Three things can…
erelender
  • 6,175
  • 32
  • 49
3
votes
2 answers

Compiling osgQt (Windows7 MSVS11 Qt 5.1 OSG 3.2.0) with CMake 2.8.11.2

I'm trying to compile the Qt-Library osgQt, because it's not provided in the precompiled packages (at least not for Windows 7(x64) and MSVS 11 - x64). Therefore I'm following these instructions: Note: This library is part of OSG sources, but it is…
thunder09
  • 53
  • 2
  • 6
1 2
3
25 26