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

RAF SDK not working in SceneGraph application (BrightScript)

I am creating my own channel for Roku. I need to get the streams of my videos and ads pod. Code wrote in .xml or task node file - adIface = Roku_Ads() adIface.setAdUrl(adUrl) adPods = adIface.getAds() shouldPlayContent =…
Balbant Singh
  • 187
  • 1
  • 10
0
votes
1 answer

Roku Scene Graph - create new scene

I'm trying to run a sample app from Roku with their new SceneGraph API but i get stuck at the beginning, when i'm trying to create a new scene. I didn't modified anything. The error that i received is: BRIGHTSCRIPT: ERROR: roSGScreen.CreateScene:…
0
votes
3 answers

Field 'isTextEllipsized' from Label component not working - Roku Scenegraph

As I said on the title the field isTextEllipsized is not working for me, is always returning false. Example: label = m.top.createChild("Label") label.color = "#ffffff" label.font = font label.vertAlign = "bottom" label.wrap = true label.lineSpacing…
Alejandro Cotilla
  • 2,501
  • 1
  • 20
  • 35
0
votes
1 answer

JavaFX Group in layout Pane seems to have the wrong bounds

I have a VBox in a Dialog/DialogPane, and a child Group (groupB) wrapping a Group (groupA) of Shapes. groupA is too big for the screen, so I add a Scale transform to groupB to bring it down to size, and that works perfectly. Except that the window…
Travis Well
  • 947
  • 10
  • 32
0
votes
2 answers

Correct transformation order for scene graph

I am working on a quick WebGL Engine with a scene graph to quickly prototype my game idea on reddit (https://www.reddit.com/r/gameideas/comments/3dsy8m/revolt/). Now, after I have got some basic rendering done, I can't figure out the correct order,…
user4959317
0
votes
1 answer

What's the point to have a SceneGraph beyond a SceneTree

In this presentation SceneGraph and SceneTree are presented. ST (SceneTree) is essentially an unfolded synchronized copy of SG (SceneGraph). Since you are going to need ST anyway because: it offers instance, where you need to save attributes you…
elect
  • 6,765
  • 10
  • 53
  • 119
0
votes
0 answers

DIfferent data types for a Scene Graph in opengl

I have created a simple scene graph for a city I am developing. There is a ground which is a plane and buildings (which are made up of a cube body and a pyramid roof). They are all of type Model and I can add them to the scenegraph as they are all…
Duchain
  • 43
  • 1
  • 6
0
votes
1 answer

How to find if QuickItem is topmost in QmlScene (z-order)?

Currently I am developing in Qt / Qml, using QtQuick. I came to a point, where I need to find out, if an item of my scene is topmost. That is, I need to find if the item has the highest z-coordinate. I tried to build an algorithm, using childAt and…
MattW
  • 461
  • 3
  • 10
0
votes
2 answers

Can QSGNode inherit QObject?

Can QSGNode inherit QObject and connect to signals and slots? I have tried but the slot is only called when rendering is done. I had a matrix of cells. I was using QML to display them on a bi dimensional ListView (a ListView the had in each delegate…
Nuno Santos
  • 1,476
  • 3
  • 17
  • 34
0
votes
1 answer

How to best use a scene graph when either rasterizing or ray-tracing?

So this was a question on my Computer Graphics final to which I still don't know an answer. What is a scene-graph? How is it best used when rasterising or ray-tracing an image respectively? A scene-graph is a way to manage hierarchical…
Aero
  • 59
  • 6
0
votes
1 answer

How do I define and standardize units in my 3D app?

I'm starting to design my object graph for an OpenGL ES 1.1 app on Android. What's advisable when it comes to actually drawing my triangles and controlling their size? Should I store all the vertices in units relative to each other and then…
Alexander Trauzzi
  • 7,277
  • 13
  • 68
  • 112
0
votes
1 answer

Sorting objects to the front or back depending on their position

I am trying to sort my renderables/actors correctly and noticed that I have some troubles with walls since they get sorted by their centerpoint. So I am sorting all my actors before I draw them depending on their distance to the camera with an…
bemeyer
  • 6,154
  • 4
  • 36
  • 86
0
votes
1 answer

getting all nodes having a styleClass in the scene graph

I want to define a global search in my program. My program has many nodes in a scene and there are a lot of common things on different nodes that could be searched. I think of defining a class searchable and a method for searching in each node. So…
Johnny
  • 1,509
  • 5
  • 25
  • 38
0
votes
2 answers

Problem with method in a class when called from another class

I'm writing a simple scene graph to hold some objects so I can control the rendering and drawing of these objects in OpenGL. I have two classes, one called GameObject which defines the objects with certain parameters such as position and velocity as…
Jon Hocking
  • 229
  • 3
  • 11
0
votes
1 answer

Three.js - calculating relative rotations

I have a THREE.Scene with two meshes added, meshA and meshB, each of which has been rotated in different ways. My goal is to remove meshB from the scene and re-add it as a child of meshA, while preserving its global position and rotation -- in other…
Stemkoski
  • 8,936
  • 3
  • 47
  • 61
1 2 3
11
12