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

install and run osgEarth on linux

I'm trying to compile osgearth library with Qt on Fedora. I install osgEarth by this command: dnf install osgearth-devel By typing osgearth in terminal, a black screen with a circle in the middle is displayed. I think that osgEarth is installed and…
Ahmad Sarabian
  • 144
  • 3
  • 13
0
votes
1 answer

Converting euler angle rotations to Axis + Angle

My goal is to allow users to upload 3D models and position them using their web browser. To do this, I am using BabylonJS - & its working fine. After that, I want my users to then be able to view the same model in a native app with the same…
Reece
  • 641
  • 7
  • 18
0
votes
0 answers

osg's official packed depth stencil example doesn't work as expected

I'm learning from the example of osgpackeddepthstencil of OSG. This example first renders a mask square into a RTTI camera, affacting the stencil buffer while leaving the color buffer untouched. The stencil test is: osg::Stencil *stencil = new…
Jimmy Chen
  • 490
  • 3
  • 13
0
votes
1 answer

Ellipsoid to Sphere in OSG

I have been practicing some openSceneGraph examples provided by OSG. One of the example, I came across text on the ellipsoid. osgText::Text* createText(osg::EllipsoidModel* ellipsoid, double latitude, double longitude, double height, const…
Inna
  • 1
  • 2
0
votes
1 answer

OpenSceneGraph - Cloack of Invisibility

I’m new using OSG and I’m having some issues trying to solve a problem. I’ve created a scene (a quad and two spheres, with a fixed background) and I’m trying to occlude one of the spheres with a transparent quad. I mean, to make a "Cloak of…
0
votes
1 answer

Trying to load an OSG model with textures allocated in textureUnit1

I want to render an Openscenegraph model with textures under two constraints: 1) Using shaders (opengles20) 2) Uploading the textures to the textureUnit1 on the GPU (NO the default textureUnit0) I thought I was doing right but still I am getting non…
user3417052
  • 141
  • 11
0
votes
1 answer

OpenSceneGraph Emissive Lighting

I have a rather large mesh, (which I load with osgDB). It also has several sub-meshes. I am trying to set the emission lighting. However I can see (suspect) that only the 1st sub-mesh is lit up. How is it possible to light up all the sub-meshes. I…
mkuse
  • 2,250
  • 4
  • 32
  • 61
0
votes
1 answer

OpenSceneGraph: Texture coordinates for the triangles set

I need help with calculating texture coordinates for the set of triangles. Is there a function that calculates them according to the vertex coordinates without shaders? Or how one can calculate them manually using vertex normals? I have a big…
Etimr
  • 51
  • 6
0
votes
1 answer

stencil buffer for deferred shading with open scene graph

I am trying to implement Deferred Shading according to the tutorials 35-37 on http://ogldev.atspace.co.uk/www/tutorial35/tutorial35.html with Open Scene Graph 3.4.0 Right now, I'm struggling to get the stencil pass correctly, so I simplified my code…
Tare
  • 482
  • 1
  • 9
  • 25
0
votes
1 answer

Setting/Computing Normals issue

First of all I am new to modeling so forgive me if I am making any mistakes. I a using Open Scene Graph to create/view my models. I am creating a plugin in OSG for a proprietary 3d model format that we use at my work. These model files only contain…
leck_d
  • 43
  • 4
0
votes
1 answer

How can I convert .ive to .dae without losing texture?

I was given some models in the OpenSceneGraph .ive format that I'm now attempting to convert to .dae for use in OpenSimulator. I've been trying to use osgconv to accomplish this, but no matter which output file format I try (.dae, .3ds, .obj), I…
Ascyi
  • 1
  • 2
0
votes
1 answer

How to place a camera in a specific position with osgjs?

How to place a camera in a specific position osgjs? I am just learning osgjs & found no good examples for camera moving like the examples of three js. In the case of threejs we can set camera position like camera.position.x = 25; camera.position.y…
Arun Xavier
  • 763
  • 8
  • 47
0
votes
1 answer

How to load kml files into osgEarth using .earth file?

I want to simply show some kml files with osgearth_viewer.exe. I've read the osgEarth documentation and get nothing about how to load a lot of KML files by using .earth file with osgearth_viewer.exe. I know how to load one kml file using comand line…
winnersun
  • 3
  • 3
0
votes
1 answer

Qt + ARToolKit + OpenSceneGraph for mobile development?

I want to create an augmented reality app for iOS and Android. I'm currently looking for the best strategy to use. I want to program in C++ using Qt (for cross-platform) and use ARToolKit with OpenSceneGraph. Do you know if it is possible? If yes,…
0
votes
2 answers

Openscenegraph not generating viewer examples

I downloaded the latest release of OpenSceneGraph (3.4.0) (zipped file and latest github repository). I am trying to generate at least the osgviewerQT and osgViewerWX examples. They are contained in the examples folder, but after using CMake to…
itmuckel
  • 1,300
  • 15
  • 23