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

Adding interaction in to a scene graph (in Haskell)

I've made a scene graph functional rendering engine in Haskell and am wondering how to add interaction in to the mixture. At first, I thought I could just have another Handler node which takes in one of the other nodes and then just apply some…
Gentatsu
  • 696
  • 1
  • 6
  • 26
4
votes
1 answer

JavaFX 2.2 Mouseevent for invisible node

I'm trying to receive MouseEvents for an invisible node in JavaFX 2.2. Think of it as an interactive but invisible Zone that should trigger an action for example when the mouse hovers it. The problem is, that this is not a statically defined zone,…
Thomas Praxl
  • 737
  • 7
  • 18
4
votes
1 answer

Is there an alternative to a scenegraph?

Scene graphs give you the possibility to reason about their position -> if one node doesn't need to be rendered, the children of that node also don't need to be rendered. But it seems that it might not be the best approach if the objects in the…
Maik Klein
  • 15,548
  • 27
  • 101
  • 197
4
votes
0 answers

What happens to a simple Text item in QtQuick 2 until it's visible on the screen?

While trying to port Qt5 to the N900, I'm suffering a QtQuick2/OpenGL related bug. To investigate that, I'd like to now, what happens to Text { text:"Hello!" } until it's visible on the screen, in other words I'd like to have an explanation of the…
frafl
  • 51
  • 6
4
votes
3 answers

What makes a JavaFx 1.2 Scene Graph Refresh?

My first question =). I'm writing a video game with a user interface written in JavaFx. The behavior is correct, but I'm having performance problems. I'm trying to figure out how to figure out what is queuing up the refreshes which are slowing down…
Spina
  • 8,986
  • 7
  • 37
  • 36
3
votes
2 answers

Roku Ad Framework : Failed to create mediaPlayer

RAF fails to render the mediaPlayer for ads and idles on the buffering screen. I can still exit video playback without issues. This is when I make the call to showAds(). if adPod <> invalid AND adPod.count() > 0 ? "Playing pre-roll ad" …
3
votes
3 answers

How do I call XML code from Brightscript for a Roku Channel?

I'm trying to populate a Label List using the below XML Roku Channel, Scenegraph code. I'm getting these errors: BRIGHTSCRIPT: ERROR: roSGScreen: creating MAIN|TASK-only component failed on RENDER thread:…
neowinston
  • 7,584
  • 10
  • 52
  • 83
3
votes
3 answers

Is it possible to assign an anonymous function to a global associative array property?

New to roku/brightscript development: Is it possible to add an object to the global associative array (accessible by all components), that has a method defined as one of the properties, and call that method? Main.brs: function Main() init() end…
neoRiley
  • 465
  • 6
  • 11
3
votes
1 answer

Efficiently getting from a QPaintDevice to a QSGTexture in QQuickItem

My custom QQuickItem currently does the following Create a QSGNode that subclasses QSGSimpleTextureNode In the nodes preprocess function, create a QOpenGLFramebufferObject to draw to Draw on the QOpenGLFramebufferObject using a QPainter Display the…
3
votes
1 answer

How to get the parent MenuBar of a JavaFX Menu

I have not been able to find API in the JavaFX Menu class that would allow me to retrieve the parent MenuBar. Any hints, including the usage of internal API are very welcome. (JavaFX 8) Background: Usually any JavaFX Node can give you it's parent…
christoph.keimel
  • 1,240
  • 10
  • 24
3
votes
0 answers

3D scene graph in libGDX

This is my 1st day of trying out libGDX after working with JOGL for nearly 6 months. Problem: I need a solution to bind 3D models to other models dynamically in run-time. I am designing a simple 3D dog fight game and the weapons in hard points need…
legokangpalla
  • 495
  • 5
  • 20
3
votes
1 answer

How to use a QSGSimpleTextureNode?

I'm trying to understand how do I use a QSGSimpleTextureNode but Qt documentation is very vague. I want to render text on the scene graph, so basically what I want is to draw a texture with all the glyphs and then set that texture on a…
Nuno Santos
  • 1,476
  • 3
  • 17
  • 34
3
votes
1 answer

Mouse events not handled within QQuickItem inheritor

I want to write simple Qt Quick app with draggable QQuickItems. The items are well draggeble because of embedded MouseArea in the items. But a problem is that mouse events are not fired into C++ code in virtual overloaded functions. How to solve…
Yury
  • 1,169
  • 2
  • 16
  • 29
3
votes
1 answer

Attach an object to the view platform in Java3D

In my Java3D application, I have a movable viewing platform (thanks to "OrbitBehavior" and "KeyNavigatorBehavior" behaviors for example) so I can change my point of view to the scene. Now, I would like to add an object which is "static" over my…
Sobe
  • 103
  • 1
  • 6
2
votes
2 answers

3D Scene graph traversing problem

I have implemented a small scene graph to be rendered by OpenGL, all the objects derive from a common Node class and during OpenGL frame rendering I just call the visit method of the root node and it traverses the graph recursively. The first matrix…
rgngl
  • 5,353
  • 3
  • 30
  • 34
1
2
3
11 12