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

Different _fileName values in Visual Studio debug watch

std::string filename; In this code:osg::Image* image = osgDB::readImageFile(filename + ".dicom"); osg::Image type variable: image gets wrong returned values from read file. And by debugging to the line above, the watch window shows as follows: The…
lightrek
  • 951
  • 3
  • 14
  • 30
1
vote
1 answer

Check if node visible to camera in OSG

How can I check if a node in my scene graph is actually seen by my main camera? In my particular use-case, I want to know if a node is (in the area) behind the camera. Thanks.
cassava
  • 578
  • 6
  • 14
1
vote
1 answer

OpenSceneGraph - Texture on each face of model

I've got another question. Here is my code: #include #include #include #include #include #include int main(int argc, char** argv) { …
Azraith Sherkhan
  • 131
  • 2
  • 11
1
vote
1 answer

How to build Openscenegraph earth 2.6

sorry for my bad english.. I'm trying to get osgEarth working with c++ and visual studio 2013. I first downloaded Open Scene Graph 3.2 and the prebuild dependencies (small package) from this page. I generated the visual studio 2013 project and…
DaxDeveloper
  • 138
  • 1
  • 13
1
vote
1 answer

osg::GraphicsContext::WindowingSystemInterface returns null

In my OpenSceneGraph program, I have the following code: osg::GraphicsContext::WindowingSystemInterface* wsi = osg::GraphicsContext::getWindowingSystemInterface(); if (!wsi) { osg::notify(osg::NOTICE) << "Error, no…
Roalt
  • 8,330
  • 7
  • 41
  • 53
1
vote
1 answer

Warped scene with two sets of Geodes

I have a few objects that I want to combine into a scene graph. Street inherits from Geode and has a Geometry child drawable made up of a GL_LINE_STRIP. Pointer inherits from PositionAttitudeTransform and contains a Geode which contains two…
cassava
  • 578
  • 6
  • 14
1
vote
1 answer

SSAO, Opmizations and pipelines using OpenSceneGraph

I have some questions about the SSAO technique implementation: Does it really need a second (or more) pipeline with every geometry? I mean, I found some tutorials and stuff about it but mostly they just give you the directions to do it without…
Martin
  • 13
  • 2
1
vote
0 answers

Can't find Boost 1.34.1 signals lib

I am trying to compile a CIGI's MPV for OpenSceneGraph using cmake. It's not very recent, it requires boost 1.34.1. So I downloaded it, cmake couldn't find the boost for a while. I put set(Boost_DEBUG 1) in the FindBoost.cmake and, amongst other…
Stranger1399
  • 81
  • 2
  • 12
1
vote
0 answers

Can not create osgQt (OpenSceneGraph QT lib) library after osg 3.2 compile with cmake GUI

I have tried to build OpenSceneGraph (OSG) Visual Studio 2012 Project after OSG is compiled successful with cmake. However while OSG is being built VS2012, it gives error. The error is : Generating __/__/include/osgQt/moc_QGraphicsViewAdapter.cpp 3>…
Burak Dağlı
  • 512
  • 2
  • 10
  • 33
1
vote
2 answers

How do I rotate/translate existing OpenSceneGraph (OSG) nodes from a loaded .ive model tree?

I have a given model in .ive and the problem is that I'm trying to rotate a single node out of the whole tree model (existing in the .ive file). Is that possible? How can I do that?
Pablo Stark
  • 682
  • 10
  • 34
1
vote
1 answer

OSG osg::MatrixTransform

I am trying to draw a compass within Head Up Display(HUD) in my application. I have successfully rendered the compass within the scene as a textured geometry. The question is when I try to rotate the compass using osg::MatrixTransfrom and…
ahmedsoubky
  • 13
  • 1
  • 5
1
vote
2 answers

Load DirectX model file with OpenSceneGraph

For a school project, I need to load a DirectX model (.x file) into my (OpenScene)graph. I have a BeeGee.x file (DirectX 3D model) and a BeeGee.dds file (texture). Here's a short sample of my code in charge of constructing the…
Lucas
  • 1,833
  • 1
  • 18
  • 19
1
vote
2 answers

How to compile Open Scene Graph 3.2 with Qt 5.1 and CMake

I already compiled Open Scene Graph 3.2 against Qt4. I managed it through an initial cache setting the following variables: set(ENV{QTDIR} "path/to/qt4" CACHE PATH "") set(Qt_FIND_VERSION "4.8.5" CACHE PATH "") But when I try to change this to qt5…
Beachwalker
  • 7,685
  • 6
  • 52
  • 94
1
vote
1 answer

keyboard events OSG (open scene graph)

I would like to know how I can enter keyboard events to control a sphere?I would want a sphere and move it around the screen with keyboard events
1
vote
1 answer

Aligning osgViewer Camera with an Image

As a precursor to render to texture, I am trying to simply align the osgViewer's camera to a texture mapped plane. This is the code I employ for the same: int main() { osgViewer::Viewer viewer; osg::ref_ptr image =…
balajeerc
  • 3,998
  • 7
  • 35
  • 51