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

With OpenSceneGraph, how do I make it use GL_REPLACE to render my texture?

With OpenSceneGraph, how do I make it use GL_REPLACE to render my texture? I do not want the color of my texture to change with orientation. I also want the rendered color to match the values of the texture.
user839524
0
votes
2 answers

OpenSceneGraph plugin not included in Conan?

I'm trying to do simple mesh viewer using OpenSceneGraph and I want to use Conan for dependencies. The compilation is working well in both debug and release mode (I'm compiling on Windows for now with msvc toolchain). As soon as I try to load any…
Erwan Daniel
  • 1,319
  • 11
  • 26
0
votes
0 answers

Can't seem to include Glut to my cmake project Ubuntu

I am on Ubuntu 20.04.1 LTS and currently I am working through the OpenSceneGraph 3.0 Tutorial by Rui Wang and Xuelei Qian and I am on page 87 trying to create the Teapot which requires the glut libraries and includes. After some research, I…
Tand
  • 16
  • 1
  • 4
0
votes
1 answer

Cannot point to DCMTKConfig.cmake

Using Windows 10, I want to configure the source of OpenSceneGraph via CMake to make it build-ready for Visual Studio. I also need some DCMTK functionalities, hence I want to link it. OpenSceneGraph provides an attempt to link DCMTK in its…
Leon Willens
  • 356
  • 1
  • 16
0
votes
1 answer

Displaying Qt Quick content inside OpenSceneGraph scene

I'd like to show my Qt Quick content on a virtual screen inside my OpenSceneGraph scene. The approach I'm using right now is highly inefficient: Render Qt Quick to the offscreen surface using FBO (FrameBufferObject) Download pixels with…
samdavydov
  • 564
  • 3
  • 22
0
votes
1 answer

How do I link OpenSceneGraph libraries and includes to Visual Studio properly?

I am trying to compile and build the first basic example from the OSG 3.0 Beginner's Guide (Rui Wang, Xuelei Qian) run on Windows 10 (Build 18363) with Visual Studio Community 19 (16.7.3). The code looks like this: #include…
Tand
  • 16
  • 1
  • 4
0
votes
1 answer

How to draw a terrain model efficiently from Esri Grid (osg)?

I have many Esri Grid files (https://en.wikipedia.org/wiki/Esri_grid#ASCII) and I would like to render them in 3D without losing precision, I am using OpenSceneGraph. The problem is this grids are around 1000x1000 (or more) points, so when I extract…
0
votes
1 answer

OpenGL OSG::Texture multiplication only shows one color

My goal is to "multiplicate" two OSG::Textures, where one is a Light-Distribution (RGBA picture) the other a black and white filter Image/Texture, that I generate myself. For now both Textures have the same size, even though it would be nice, if its…
Brizar
  • 132
  • 1
  • 10
0
votes
1 answer

How to scale/rotate/move an asset in OpenSceneGraph

I am totally new with OpenSceneGraph I can open and save an OSG asset. I need to do some simple transformations on it, like dimension scaling/rotation/translation. It seems a pretty easy task, anyway I can't find any quick documentation…
0
votes
0 answers

Is it possible incorporate a Stage into a primaryStage javaFX?

I need to pass to a native method the handle of a javaFX window on which to render a world made with OSG (Open Scene Graph). I understood that on javaFX only the Stage has this native handle, all the other objects, for example Nodes and Pane do not…
0
votes
4 answers

Disable texturing in OpenSceneGraph

I need to completely disable texturing in OSG. I tried glDisable(GL_TEXTURE_2D) and also using an osg::stateSet, but some nodes that have textures still render their textures. Is there any way to globally turn off texturing? A bit of background : I…
ggambetta
  • 3,312
  • 6
  • 32
  • 42
0
votes
1 answer

GDB printing library's warning origin call stack

I am getting lots of warnings from OpenSceneGraph and all look like this: Warning:: Picked up error in TriangleIntersect (-117448 -2.12751e+06 -519242, -120167 -2.17679e+06 -383117, -234607 -1.85755e+06 -431865) (-nan, -nan, …
Kyeiv
  • 63
  • 8
0
votes
1 answer

How can I set shininess on an osg::Geometry without setting a material in OpenSceneGraph

I have an osg::Geometry on whose state set I used to set a material that I made shiny via osg::Material::setShininess(). The problem is that now I have the need to set various colors across the geometry. I tried doing this with the geometry's color…
user2062604
  • 247
  • 3
  • 16
0
votes
1 answer

Lighting in OpenSceneGraph with Core profile

I use OpenSceneGraph and I want to use some features of OpenGL 3.3 and the Core profile. I compiled OpenSceneGraph with the option -DOPENGL_PROFILE=GL3. I got the features I wanted, however, some features of OSG do not work anymore, as lighting with…
Hugal31
  • 1,610
  • 1
  • 14
  • 27
0
votes
0 answers

OpenSceneGraph-OpenSceneGraph-3.6.3/src/osgViewer/GraphicsWindowCocoa.mm: Objective-C++ compiler not installed on this system

[ 57%] Building CXX object src/osgWrappers/serializers/osgParticle/CMakeFiles/osgdb_serializers_osgparticle.dir/LinearInterpolator.cpp.o [ 57%] Building CXX object…