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

How to get cmake's PKG_CHECK_MODULES to find my cairo library in Windows

I'm trying to build OpenSceneGraph's pdf plugin on a win32 box. The plugin is using cmake's PKG_CHECK_MODULES macro to find cairo and poppler libraries. I don't know how to install these in such a way as to help it find them though.
Michael Daum
  • 820
  • 6
  • 12
6
votes
3 answers

C++ Assigning Enums explicit values using bit shifting

I have been looking at some code from open source projects and noticed that on more than one occassion the values of enums were being assigned through bitshifting a value an incremental number of places. I cannot see any specific reason for doing…
mdoran3844
  • 688
  • 6
  • 14
5
votes
1 answer

VTK (visualization toolkit) versus OSG (OpenSceneGraph) , other?

Does anyone have experience to fairly compare VTK and OpenSceneGraph? I'm more familiar with VTK, but I'm curious as to whether anyone has tried both extensively. I have both built, 5.6 vtk and 2.9.9 osg, can run the examples... at first glance…
peter karasev
  • 2,578
  • 1
  • 28
  • 38
5
votes
1 answer

Simple curiosity about scene graph conception

I'm writing a simple 3D engine using OpenGL. I've already implemented a simple scene graph with the following pattern : ISceneNode IMeshSceneNode StaticMeshSceneNode ICameraSceneNode StaticCameraSceneNode …
user1364743
  • 5,283
  • 6
  • 51
  • 90
5
votes
1 answer

OpenSceneGraph set the camera at an initial position

I am working on OpenSceneGraph for the first time and I'm a bit lost cause the documentation is really not that clear... So, I have this code that load a obj file with a house on it, and I have drown a little box where I want the "person" to be. So…
excalibur1491
  • 1,201
  • 2
  • 14
  • 29
5
votes
1 answer

Generic picking solution for 3D scenes with vertex-shader-based geometry deformation applied

I'm trying to implement a navigation technique for 3D scenes (in OpenSceneGraph with OpenGL). Among other things the user should be able to click on an scene object on the screen to move towards it. The navigation technique should be integrated into…
Frank Rupprecht
  • 9,191
  • 31
  • 56
5
votes
2 answers

C++ OpenSceneGraph Change Camera Eye Height

Writing a small openscenegraph application, and in need of a way to change the Camera height. Essentially, the eye is looking straight at a Ball in the space. What I want to do is be able to lower the Camera height so I am able at the ball from…
Kobojunkie
  • 6,375
  • 31
  • 109
  • 164
5
votes
2 answers

pointing the camera at O(0,0,0), 45 deg

I am having problems setting the camera such that it points at the origin O(0,0,0) with a degree of 45° to all other axes with all coordinates positive (which should have the same value, of course). You can see in the image the closest I've got…
Flavius
  • 13,566
  • 13
  • 80
  • 126
5
votes
5 answers

C2086: 'int WINGDIAPI' : redefinition errors in Open Scene Graph?

I've solved this problem (from here). Just putting it here, so that anyone else who encounters the error will find a cleaner question and answer than to have to go dig through the website where I got it from. I'll be answering this question soon…
Nav
  • 19,885
  • 27
  • 92
  • 135
4
votes
1 answer

Transparency on one face of cube OpenScreenGraph

I have imported object (Cube) from 3dsMax in my OSG project in VisualStudio. But I can't find out how to make transparent only one face of this imported cube. this is my code: #include #include #include…
Azraith Sherkhan
  • 131
  • 2
  • 11
4
votes
1 answer

How can I capture an Image for post processing in OSG

I need to capture an Image from my viewer and need to do some post processing and display it back on it. Right now am more interested in the first part of it. That is to capture Image from the viewer. While going through the OSG I came across…
Sinay
  • 137
  • 6
4
votes
1 answer

OpenSceneGraph and Multiple Viewers

I'm using OpenSceneGraph and Qt to develop a simulation software. Simulations can involve multiple bots in the same virtual world. My requirements for views are as follows: Ability to show static world cameras Ability to show bot cameras Ability to…
kelano
  • 293
  • 3
  • 14
4
votes
1 answer

OSG +QT switching to full screen and back

I am integrating a single osgQt::GLWidget in a Qframe and using the pattern here: http://trac.osgeo.org/ossim/browser/trunk/ossimPlanetQt/src/gui/ossimPlanetQtMainWindow.cpp to switch between full-screen mode and back. Basically consuming the…
whatnick
  • 5,400
  • 3
  • 19
  • 35
4
votes
1 answer

Create Sun light source in OSG

I need to set a point Source above my landscape in OpenSceneGraph that will act like a sun. I already know how to set up the light and it can be done in this fashion: //LIGHT CODE ------------------------ osg::ref_ptr lightGroup (new…
Fantastic Mr Fox
  • 32,495
  • 27
  • 95
  • 175
4
votes
2 answers

How to use CMake to construct an OpenSceneGraph project?

I have just downloaded the OpenSceneGraph source, unzip it into "~/OpenSceneGraph-3.0.1" directory and use CMake to create an out-of-source eclipse make project in "~/OpenSceneGraph-3.0.1-build-eclipse-cdt" directory. When I execute "make"…
user1129812
  • 2,859
  • 8
  • 32
  • 45
1
2
3
25 26