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

Converting IplImage to osg::Image

How can I correctly convert an OpenCV IplImage to OpenSceneGraph's osg::Image? This my current method. But I'm getting incorrect color data. // IplImage* cvImg is a webcam output image captured using cvQueryFrame(capture) osg::ref_ptr
coder9
  • 1,571
  • 1
  • 27
  • 52
1
vote
1 answer

Multi-pass shading using render-to-texture

I'm trying to implement a multi-pass rendering method using OpenSceneGraph. However, I'm not entirely certain my problem is theoretical or due to a lack of applied knowledge of OSG. Thus far, I've successfully implemented multi-pass shading by…
Joel Graff
  • 239
  • 6
  • 14
1
vote
1 answer

write osg texture to png missing plugin

We are trying to write a osg::Image to a file using osgDB::writeImageFile but unfortunately we get an error: Could not find plugin to write to file We are using the osg binaries from…
jzwiener
  • 8,182
  • 4
  • 21
  • 23
1
vote
1 answer

Image is disappearing with rotation in OSG

I have a simple OSG program which makes an x, y axis and randomises points inside of this axis. The intention is that this will lead on to making a 3d viewer for laser scan data. (I know its been done before but we need it to be super light weight).…
Fantastic Mr Fox
  • 32,495
  • 27
  • 95
  • 175
0
votes
1 answer

Strange behavior using if statement

I'm developing an application using OpenSceneGraph and I'm encountering some odd behavior in an if statement. I'm not sure if it's specific to the API because it simply makes no sense on any level to me. The code: if ( !fileAddList_.empty() ) { …
0
votes
0 answers

a Simple Example of OpenSceneGraph particles

i'm learning osg and getting a little confused about particles. i need something like a "car model" that is animated and i want to attach fire particle to it's Exhaust. in every try the fire particle is not attached to model. its just fixed in a…
0
votes
1 answer

Version errors when trying to install open scene graph 3.4.1

I am trying to rebuild open scene graph version 3.4.1 from source, following this, i get the following build error about ffmpeg version: Building CXX object…
0
votes
0 answers

problem with resizing OSG window dynamically

i want to resize osg viewer window dynamically based on an external event like pressing 'a' key on keyboard. through reading the Veiwer.cpp codes in osg core, i found this line of code for resizing window: getEventQueue()->windowResize(newX, newY,…
CaptainHb
  • 13
  • 4
0
votes
0 answers

Cross Compile OpenSceneGraph for arm processor running embedded linux?

I am trying to build OpenSceneGraph(Version 3.6.5) for arm processor running embedded linux. cmake throws different errors, can someone help ? What needs to be added in CMakeLists.txt for these errors specifically ? 1.…
enthu
  • 69
  • 11
0
votes
0 answers

libosgViewer.so.202: cannot open shared object file: No such file or directory

When I am compiling a C++ program with cmake, I keep getting this error. The relevant cmake code is: CMAKE_MINIMUM_REQUIRED(VERSION 2.4.7) FIND_PATH(OPENSCENEGRAPH_LIB_DIR libso.so osg.lib PATHS $ENV{OSG_ROOT}/lib …
lokit khemka
  • 349
  • 3
  • 11
0
votes
1 answer

Points depth buffer not sorting properly

I am fairly new to OpenSceneGraph and I am working on an application that generates point clouds. We first create an osg::Geometry object containing the points of a particular area, we then create an osg::Geode that contains the geometry and then we…
0
votes
0 answers

No SOURCES given to target: MyProject ? (OpenSceneGraph Basics)

I am new to the CMake environment and I am trying to learn it for OpenSceneGraph. I am following the instructions from the book "OpenSceneGraph 3.0 Beginners Guide". I am getting an error when I try to create the "Hello World" project in Chapter…
0
votes
1 answer

osg::BoundingBox intersection offset detection

I need to check intersection between two moving nodes before they hit. I have this code, which works, but it only is true when they already hit. Is there a simple way to give an offset to the bounding box, so it gives true before they…
Daniel
  • 1
  • 1
0
votes
1 answer

OpenSceneGraph: analysing a scenegraph

I want to read a 3D Model through OSG and learn the 3D model information about vertices, normals and texture coordinates etc. I do not understand the code below (complete tutorial from here ). why are we using prset->index(ic) as an index? I am…
Tuna
  • 113
  • 1
  • 11
0
votes
1 answer

openscenegraph get new vector values after rotate

How to get the new points after rotating a geometry? osg::ref_ptr points = new osg::Vec3Array; osg::ref_ptr geometry( new…
Daniel
  • 1
  • 1