Questions tagged [scenegraph]

A scene graph is a general data structure commonly used by vector-based graphics editing applications and modern computer games, which arranges the logical and often (but not necessarily) spatial representation of a graphical scene.

Scene graphs are data structures used to hierarchically organize and manage the contents of spatially oriented scene data.A scene graph is a collection of nodes in a graph or tree structure. A tree node (in the overall tree structure of the scene graph) may have many children but often only a single parent, with the effect of a parent applied to all its child nodes; an operation performed on a group automatically propagates its effect to all of its members. In many programs, associating a geometrical transformation matrix (see also transformation and matrix) at each group level and concatenating such matrices together is an efficient and natural way to process such operations. A common feature, for instance, is the ability to group related shapes/objects into a compound object that can then be moved, transformed, selected, etc. as easily as a single object.

Examples of such programs include Acrobat 3D, Adobe Illustrator, AutoCAD, CorelDRAW, OpenSceneGraph, OpenSG, VRML97, X3D, Hoops and Open Inventor.

179 questions
32
votes
5 answers

Game engines: What are scene graphs?

I've started reading into the material on Wikipedia, but I still feel like I don't really understand how a scene graph works and how it can provide benefits for a game. What is a scene graph in the game engine development context? Why would I want…
Loms
  • 323
  • 1
  • 3
  • 5
16
votes
4 answers

Integrating OpenSceneGraph with Qt

I have fiddled around with OpenGL on Qt. But now I want to have complex scenes. (With multiple COLLADA/MD2 models loaded). For this I'm thinking of using OpenSceneGraph (OSG). Is it possible to integrate OSG with Qt? If so how to? Thanks.
coder9
  • 1,571
  • 1
  • 27
  • 52
9
votes
3 answers

How do I use OpenGL 3.x VBOs to render a dynamic world?

Although there seem to be very few up to date references for OpenGL 3.x itself, the actual low level manipulation of OpenGL is relatively straight forward. However I am having serious trouble trying to even conceptualise how one would manipulate…
jsimmons
  • 732
  • 1
  • 8
  • 18
8
votes
1 answer

How to use QSGGeometryNode without causing a memory leak and ensure correct clean up

I using a QSGGeometry, QSGVertexColorMaterial & a QSGGeometryNode to draw something real time on my QQuickItem derived class that is MyQuickItem here. Following is my updatePaintNode method where the crux of the repaint logic lies. QSGNode *…
TheWaterProgrammer
  • 7,055
  • 12
  • 70
  • 159
8
votes
2 answers

overriding drawing order scene2D's stage

You are given a complex Scene2D graph in libgdx with several Group's and Actor's. You want the user to select some Actors and draw those at the end so they appear focussed on top of any other Actors. I would like to iterate over the Stage twice.…
Vjeetje
  • 5,314
  • 5
  • 35
  • 57
8
votes
2 answers

SceneKit on OS X with thousands of objects

I'm following this tutorial: http://blog.bignerdranch.com/754-scenekit-in-mountain-lion/ I'm interested in using Scene Kit, but my scenes might potentially have thousands of spheres. To stress-test Scene Kit I tried this: SCNSphere *sphere =…
Matthew
  • 1,366
  • 2
  • 15
  • 28
7
votes
4 answers

3D scene-graph library for Java?

I'm looking for a reliable 3D scenegraph API for Java with good documentation, an active community and a license that allows for commercial use. I ruled out com.sun.scenegraph because it's GPL (and seemingly dead), Java3D because of this post and…
Gili
  • 86,244
  • 97
  • 390
  • 689
6
votes
3 answers

3D Relative to Absolute Transformations

I am trying to create a scene graph for my 3D game in which every object's transformations are relative to it's parent. Each node of the graph has a Rotation, Scaling and Translation vector. What is the correct way of combining the relative…
Lucius
  • 3,705
  • 2
  • 22
  • 41
6
votes
4 answers

3D Scene graph toolkits for Android

I was wondering if there is any 3D scene graph toolkit available or at least in development for Android? I could not find anything, assuming that all existing solutions for Java won't run on the Android platform.
nokinen
  • 61
  • 1
  • 3
6
votes
2 answers

Using matrices to transform the Three.js scene graph

I'm attempting to load a scene from a file into Three.js (custom format, not one that Three.js supports). This particular format describes a scene graph where each node in the tree has a transform specified as a 4x4 matrix. The process for pushing…
Toji
  • 33,927
  • 22
  • 105
  • 115
5
votes
2 answers

Java 2D scene graph library for GUI

I'm looking for a 2D scene graph library for building GUI applications. It should be fast, using Java2D and be compatible with Swing (embeddable in a Swing app and also display Swing components). Support for animations is a plus. Do you have any…
ziggystar
  • 28,410
  • 9
  • 72
  • 124
5
votes
1 answer

How can I use ScenicView to inspect Subwindows (ContextMenus, PopupControls, etc)

Using ScenicView, I want to be able to inspect things like ContextMenus or the insides of a ComboBox, but (as they should) they disappear before said inspection can happen: Apart from changing the behavior of each control to not disappear, is there…
Brad Turek
  • 2,472
  • 3
  • 30
  • 56
5
votes
1 answer

Simple curiosity about scene graph conception

I'm writing a simple 3D engine using OpenGL. I've already implemented a simple scene graph with the following pattern : ISceneNode IMeshSceneNode StaticMeshSceneNode ICameraSceneNode StaticCameraSceneNode …
user1364743
  • 5,283
  • 6
  • 51
  • 90
5
votes
2 answers

Canvas manipulation vs element manipulation

I am developing a small library as a basis for some applications. As I am about to create a scenegraph (2D) I am wondering which of the following approaches looks more promising under the view of performance, maintainability, easy to use etc. I…
WarrenFaith
  • 57,492
  • 25
  • 134
  • 150
4
votes
4 answers

Is there any decent OpenGL SceneGraph API/framework?

I am new to OpenGL. Wondering if there is any good Scenegraph API/framework for OpenGL. At the moment I am using glut with a custom node based solution: I am setting children and siblings for each node the calling a traverse function. I'd like a…
JohnIdol
  • 48,899
  • 61
  • 158
  • 242
1
2 3
11 12