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

Get index node or name node when pick object

I use OSG on Android... I initialized indexNode= 0 in the main int main(int, char **) { osg::ref_ptr model1 = osgDB::readNodeFile( "cessna.osg"); osg::ref_ptr model2 = osgDB::readNodeFile( "cow.osg" ); unsigned…
user1585783
  • 21
  • 2
  • 6
0
votes
1 answer

UV Texture oddity in textureUnits, openscenegraph

I am having issues with textures. I have the model open as a .osg so I will refer to it here as such here. I have one texture in textureUnit 0 which acts as a base texture. Then I have a second texture in textureUnit 1 which acts as a label of…
0
votes
1 answer

Linking to open scene graph statically

Is there a way to link to the open scene graph libraries statically? I compiled osg on windows 7, and it has both static and dlls, but I want to link statically so I don't have to rely on the dlls. The point is so that I can just carry the exe file…
mma1480
  • 659
  • 1
  • 9
  • 18
0
votes
1 answer

translation data from ARtoolkit marker

How would you obtain the translational data from a marker using ARToolKit? I know that ARToolkit can give you the transformation matrix, but I'm having difficulty getting the translational movement. For example, when I move the marker to the…
mma1480
  • 659
  • 1
  • 9
  • 18
0
votes
1 answer

How to build a Head Up Display in OpenSceneGraph that resizes depending on the screen's resolution?

I'm pretty new to OpenSceneGraph and I have the following problem: I'm trying to build a 2D Head Up Display out of several images, so that it can resize depending on the screen's resolution. That means I have extra images for the corners and one…
0
votes
2 answers

"Include can't be found", how to fix it?

I am developing using OpenSceneGraph. I installed it from a user-runnable installer. When I try to compile an application using OpenSceneGraph, I have this error : Lexical or preprocessor error : Include cannot be found for all includes…
user813853
0
votes
2 answers

Build & Install OpenSceneGraph-3.1.3 give me a No WindowSystemInterface error?

I am trying to install the latest SVN Update OpenSceneGraph-3.1.4 on Mac OS X Mountain Lion. Do I need to install a specific WindowSystemInterface ? $ osgviewer cow.osg View::setUpViewAcrossAllScreens() : Error, no WindowSystemInterface…
user813853
0
votes
2 answers

Osgviewer cow does not view a cow?

I installed OpenSceneGraph 3.0.1using MacPorts. I've tried osgversion -> OpenSceneGraph Library 3.0.1. I downloaded the OpenSceneGraph-Data. Everything seems working well than osgviewer cow.osg takes hours without viewing anything ! please I need…
user813853
0
votes
1 answer

correctly linking osg/openthreads

I'm having trouble getting OSG/OpenThreads to work in a simple sample application. That's what my command looks like: g++ bAuto.o -o bAuto -lGL -lGLU -lstdc++ -losgSim -losgText -losgGA -losgParticle -losgDB -losgViewer -losgUtil -losg -lGLU -lGL …
user1709708
  • 1,557
  • 2
  • 14
  • 27
0
votes
1 answer

OpenSceneGraph, HUDs, & Textured Qt Widget Problems

So I have program which is a Qt App. I have some basic Qt GUI on the outside but then I have a Qt widget that makes use of OpenSceneGraph to render a 3D scene. To make things more complicated inside that screen I have a HUD that toggles on and off.…
David Mokon Bond
  • 1,576
  • 2
  • 18
  • 42
0
votes
1 answer

Creating a dynamic sphere in OSG

I want to create a dynamic sphere in OSG which would be created(moved) by the mouse left click at that location (center) and with a dynamic radius of the mouse pointer current location's distance to the center.... I understand that for this reason I…
Alireza Soori
  • 645
  • 9
  • 25
0
votes
1 answer

Cannot link a Qt console application with Openscengrapgh

i have succesfully integrated Openscenegraph with Visual Studio 2008. The sample "cessna.osg" given as an example runs fine in VS2008 as a console program. But when i try to run the same code as console in Qt it gives an error. I have built…
rotating_image
  • 3,046
  • 4
  • 28
  • 46
0
votes
2 answers

osgDB/FileUtils causing compiler errors in my code

I am trying to compile my project with OSG and I installed all the necessary rpms for it in OpenSUSE 12.1. I'm not sure what is going on because all I did was #include and my compiler (gcc 4.6.2) crashes inside of it saying: 'expected identifier…
user1496542
  • 539
  • 2
  • 6
  • 14
0
votes
1 answer

Rotating the camera around the Y axis of the world (at O(0,0,0))

I'm trying to rotate the camera around the Y axis of the world, marked in my project by a 3D cross. What I've accomplished is rotating it around its own axis, which is cool, but it's not what I wanted. How to achieve that by using quaternions and…
Flavius
  • 13,566
  • 13
  • 80
  • 126
0
votes
1 answer

OpenSceneGraph - How to add a Wall or 3

I need to add a wall to my scenegraph, and have it work so I can not go past the wall with my camera. I am creating an laboratory scene, but I am new to 3d programming in general. I have been working with the book OpensceneGraph 3.0 Beginner's…
user272671
  • 657
  • 4
  • 13
  • 26