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

Use camera object from 3d studio max in OpenSceneGraph

I have a scene made in 3ds max which contains camera object with name "Camera001". Scene is exported as *.ive and loaded by openscenegraph 3.0.1. Problem: this camera object should be used by OSG view as main camera. I can find camera node by it's…
samdavydov
  • 564
  • 3
  • 22
0
votes
2 answers

OpenSceneGraph CullVisitor::apply(Geode&) detected NaN

I am trying to use OSG for displaying some cubes on the screen. at some runs it works perfectly but sometimes it does not display anything, just prints this in the virtual console: CullVisitor::apply(Geode&) detected NaN, depth=nan, center=(0 0…
Jani Kovacs
  • 213
  • 1
  • 2
  • 5
0
votes
1 answer

can not build qt 5.2 project in visual studio 2012 which uses openscenegraph after osg compile cmake

I am writing a QT 5.2 project in Visual Studio 2012. The project uses OpenSceneGraph 3.2(osg). Firstly I compiled osg with cmake. But It was difficult. Then I want to build QT project but following errors is given. 1> Moc'ing cadview.h... 1> The…
Burak Dağlı
  • 512
  • 2
  • 10
  • 33
0
votes
3 answers

How can I use C++ OSG objects from Python?

I am working with an embedded python system which requires a C++ frontend using OpenSceneGraph for rendering visualizations. My question is: Is there any possible way to perform this task? I need to modify C++ osg nodes from Python. Would it be an…
Pablo Stark
  • 682
  • 10
  • 34
0
votes
1 answer

OpenSceneGraph - Real size objects

I am trying to create a realistic scene in OSG, and I have a problem with sizes. Lets assume I will always play my little game in the same screen and therefore I know precisely the resolution and the pixel density of it. Now, in real life, a box of…
excalibur1491
  • 1,201
  • 2
  • 14
  • 29
0
votes
1 answer

openscene graph geode color array

After loading a image with openscenegraph I am trying to access the color array for the current geode. However, all I have been able to do is change the contents of the color array.Any advice on how to access a color array of a node in…
Elewis787
  • 27
  • 1
  • 7
0
votes
1 answer

How to apply stateset for a rendered geometry from an .IV file

I want to apply state set to rendered geometry from .iv file. For example.. // this will render the geometry; osg::ref_ptr root = dynamic_cast (osgDB::ReadNodeFile("cow.osg")); // want to apply stateset for above rendered…
user3138495
0
votes
1 answer

OSG - Creating overlaying, always on top rendering statusbar?

I made a scene, where I detect some collisions (intersections) and I want to show progress of that collision (like interaction with objects). For example, you are pointing at light switch and there is circle which is filled based on time spent…
svope
  • 31
  • 1
  • 8
0
votes
1 answer

OSG shared vertex array duplicated

I'm using openscenegraph to render a scene with ~9000 vertices. Each Drawable is a line (I must keep it as it represent a "bar"). So I use the function setVertexArray() with the same vertex array on each Geometry node but use a different…
Brugere
  • 436
  • 4
  • 16
0
votes
0 answers

Open scene graph Delta3d compile error

I am trying to build the delta3d library, however I am not able to link the complied tests delta3d provides. Here is the error I am getting: libdtAnim.so: undefined reference to `osg::Uniform::getNameID(std::basic_string, std::allocator >…
Elewis787
  • 27
  • 1
  • 7
0
votes
0 answers

Building OpenSceneGraph for iOS

I'm getting errors in XCode attempting to build OSG for iOS 7.0. I've followed these instructions: http://www.openscenegraph.org/index.php/documentation/platform-specifics/ios/23-configuring-cmake-for-ios with the additional step of changing the…
flatline
  • 42,083
  • 4
  • 31
  • 38
0
votes
1 answer

osgART install on windows - CMake error 'Could NOT find OpenSceneGraph'

CMake error occurs for building osgART. I'm following the procedure mentioned in the website of osgART. I have built OpenSceneGraph-3.2.0 successfully. The ENVR. variables for osg are OSG_ROOT=E:\Dev\OpenSceneGraph-3.2.0 OSG_BIN=…
Andres
  • 17
  • 4
0
votes
0 answers

Absolute limite to z-buffer (depth buffer) value

I'm trying to use the z-buffer to measure distances, but I found a unexpected issue. I'm aware that the z-buffer returns a 0..1 float number through my code: zImageData = new osg::Image; zImageData->allocateImage(720, 576, 1, GL_DEPTH_COMPONENT…
elael
  • 1
  • 1
0
votes
1 answer

OpenSceneGraph Sphere Geometry (not Geode) generation

I am very bad at OSG. I can make Sphere with Geode. My task is create OSG::Geometry Sphere with Vertex and Normals. Can anybody help me? So not this way: osg::Sphere* sphere = new osg::Sphere( osg::Vec3(0,0,0), 1.0);
user2695543
  • 81
  • 4
  • 22
0
votes
0 answers

How to display utf-8 characters like alpha and beta in OpenSceneGraph or osg

I need to display UTF-8 characters in osg, however text->setText( test,osgText::String::ENCODING_UTF8 ); cannot display though, it's like ? in the scene. Does anybody have the same problem or know how to do it? Code Snippet osg::ref_ptr
litaoshen
  • 1,762
  • 1
  • 20
  • 36