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

Open Scene Graph - Usage of DrawElementsUInt: Drawing a cloth without duplicating vertices

I am currently working on simulating a cloth like material and then displaying the results via Open Scene Graph. I've gotten the setup to display something cloth like, by just dumping all the vertices into 1 Vec3Array and then displaying them with a…
MrKickkiller
  • 501
  • 10
  • 22
0
votes
0 answers

CMakeModules/ModuleInstall.cmake:41 (LIST): list sub-command REMOVE_ITEM requires list to be present

Build command failed. Error while executing process /Users/ben/Documents/androidsdk/cmake/3.6.4111459/bin/cmake with arguments {-H/Users/ben/Documents/work/OSGGuideApp/app/src/main/cpp…
0
votes
1 answer

Custom rendering with GPU, Direct3D or OpenGL

I have a Windows application that currently renders graphics largely using MFC that I'd like to change to get better use out of the GPU. Most of the graphics are straightforward and could easily be built up into a scene graph, but some of the…
SmacL
  • 22,555
  • 12
  • 95
  • 149
0
votes
1 answer

OpenSceneGraph just cast shadow for one of the lights in the scene

I am trying to put different lights in a scene and have them cast shadows simultaneously. The problem is that every time I create a new osgShadow::ShadowMap for a light, the previous light stops casting shadow. I suspect that this has something to…
Scott
  • 79
  • 1
  • 1
  • 9
0
votes
0 answers

Undefined symbols for architecture arm64. While using static library

I'm building a demo project which uses a 3d engine names "OpenSceneGraph" writing in C++, this engine provides tens of .a static library files after building. while I use those .a files in my xcode project, errors appeared Undefined symbols for…
0
votes
1 answer

Toggle Between wireframe mode

I have 2 functions, one to enter and to exit the wireframe mode: void enterWireFrame(const osgGA::GUIEventAdapter& ea, osgViewer::Viewer* viewer) { osg::Node* scene = viewer->getSceneData(); osg::Group* parent = scene->getParent(0); …
John Tan
  • 1,331
  • 1
  • 19
  • 35
0
votes
1 answer

OpenSceneGraph: Don't update the z-buffer when drawing semi-transparent objects

Question Is it possible to tell OpenSceneGraph to use the Z-buffer but not update it when drawing semi-transparent objects? Motivation When drawing semitransparent objects, the order in which they are drawn is important, as surfaces that should be…
HelloGoodbye
  • 3,624
  • 8
  • 42
  • 57
0
votes
1 answer

gluPartialDisk in osg/osgEarth

I've been trying to create an openGL gluDisk like object in osgEarth. So far I've attempted to do the following (Edited, this is the correct answer): void ViewDriver::drawCircZone(double lat, double lon, double innerRadius, double outerRadius,…
Blanky
  • 63
  • 9
0
votes
2 answers

Openscenegraph to Unreal Engine

Is there a way to export an openscenegraph scene to unreal engine? So for instance perhaps export to a format supported by 3ds max or blender would be first step, if so , then how to achieve this?
dy14
  • 1
  • 2
0
votes
1 answer

How to make osgEarth::ModelLayer's model hide if distance exceeds some value?

I'm trying to display labels from a model file, and the osgearth_features demo shows how to do this. It works fine for me, but I need the labels to disappear once the distance to the Earth exceeds some value. (I'm using version 25ce0e1 of…
Ruslan
  • 18,162
  • 8
  • 67
  • 136
0
votes
1 answer

How do I get animation in OSG to playback?

I'm relatively new to c++ and open scene graph. I'm trying to make something that I have recorded in the application to playback, however I have an error that just won't budge - hoping it's something easy to fix. if (!robotInputDeviceState->paused)…
Jonathan Chappell
  • 197
  • 2
  • 2
  • 10
0
votes
1 answer

Getting reference issue in Qt while implementing OpenSceneGraph

I am getting error (** **> CMakeFiles\untitled3.dir/objects.a(main.cpp.obj):main.cpp:(.text+0x46): undefined reference to `_imp___ZN9osgViewer6ViewerC1Ev'**) while adding OpenSceneGraph in Qt. My profile is…
Lovekesh
  • 125
  • 11
0
votes
1 answer

osgexport for Blender: Imported meshes impact scene ( possibly the lighting? )

Blender Version 2.79 OSG Version: 3.4.0-9 Operating System: Fedora I have been using Blender's export utility to export obj files and then using osgconv to convert them to osg files. The files are then imported and rendered into a scene that looks…
Jay
  • 27
  • 7
0
votes
1 answer

How to translate qt key press event to osg event?

In my osg Eventhandler, I have the following code if(ea.getModKeyMask() & osgGA::GUIEventAdapter::MODKEY_SHIFT){ do something } ea is the osgGA::GUIEventAdapter. In the osgwidget the keypress event is handled by void…
Di Miao
  • 206
  • 2
  • 7
0
votes
1 answer

memory leak in osgearth

My goal is using library OSGEarth to make a MFC project that can display the model "openstreetmap.earth". I finished this and can see the the earth.But every time when i close the project, the output window in vs2015 say there are memory leaks in…
zalisc
  • 1
  • 1