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

Implementing a scene graph on OpenGL ES 2.0

I am looking for a way to implement some basic scene management in OpenGL ES 2.0 where there's no fixed function pipeline. Normally I would implement a Node base class that would apply its transformations with glTranslate and glRotate, draw…
rgngl
  • 5,353
  • 3
  • 30
  • 34
2
votes
1 answer

Scene graph for 2D engine

For my experimental 2D engine, I want to include a scene graph implementation to, with good performance, determine which objects have to be rendered (are visible for the camera). Unfortunately, I don't know much about the further details on how that…
L K M
  • 29
  • 2
2
votes
1 answer

Keep original node lighting after using a light for another node

I am attempting to give my island more of a "3D" effect, as you cannot see depth in the grass hills. My solution was to place the lights in the scene. I have placed a spot light above the island, however, the rock underneath is now black/really…
George
  • 25,988
  • 10
  • 79
  • 133
2
votes
2 answers

Recursive function is not being executed

I am trying to recursively load a scenegraph structure from a JSON file. My idea was to call the same function on all child nodes until the last node has no children. However when debugging the code I found that the recursive call of loadNodes…
user10312042
2
votes
2 answers

Roku : Writing to Registry

When writing values to the registry, does this really have to be done using a task Task ? Snippet from https://sdkdocs.roku.com/display/sdkdoc/BrightScript+Support roRegistry : Can only be used in a Task node roRegistrySection : Can only be…
Fabii
  • 3,820
  • 14
  • 51
  • 92
2
votes
2 answers

Playing Multiple Video Nodes at the same Time - Roku SDK

I am trying to overlay two video screens and play them simultaneously, with the audio on one muted. However, it seems like Roku only supports the playback of one Video at a time. Is there any way to play both Video nodes simultaneously? Any help is…
2
votes
3 answers

How to write global function in brightscript?

I am working for Roku Scene Graph application, I want to write global user defined function which can be use and call any where in my application. is any way? Please suggest.
Balbant Singh
  • 187
  • 1
  • 10
2
votes
3 answers

Roku SceneGraph - check URL for 404

I'm new to Roku coding and I was wondering if there is a simple Function (non-Task Node) that I can use to check and see if a URL is valid or not and then just return a Yay or Nay so I can check a second URL? Thank you
matrixebiz
  • 97
  • 2
  • 10
2
votes
1 answer

Convert time and date from one time zone to another in Roku SG

I have a particular date and time. Now, I want to convert the time according to device current time zone. Basically what I need is an script that, when provided with a time and a timezone can return the time in another time zone. How can I achieve…
Balbant Singh
  • 187
  • 1
  • 10
2
votes
2 answers

How to implement Deep Linking in Roku SG application?

I need help understanding deep linking, because our Roku Scene Graph application was rejected by Roku. Roku explains deep linking here: https://sdkdocs.roku.com/display/sdkdoc/Deep+Linking, but this documentation is not detailing all information…
Manjeet
  • 191
  • 1
  • 14
2
votes
2 answers

How to replace a PanelSet using replaceChild in BrightScript

I'm using the PanelSet class to create a settings screen made of two panels: panelA on the left-hand side displays a list of overall settings options panelB is displayed on the right-hand side, includes a list of different options for each item on…
heitortsergent
  • 1,971
  • 2
  • 20
  • 23
2
votes
1 answer

QSGGeometryNode depth (z) problems with 3 vertices

I am drawing a 3D geometry (Point3D vertices) in a Qml scene graph with a custom QSGGeometryNode and QSGTransformNode. This works except that the 3D model is cut off at a certain z-coordinate (z is the depth axis in Qml). First I expected that the…
Hyndrix
  • 4,282
  • 7
  • 41
  • 82
2
votes
2 answers

SceneGraph traversal in Haskell

I want to implement a simple SceneGraph in Haskell using Data.Tree consisting of Transform and Shape nodes. In a SceneGraph the spatial transformation is accumulated while traversing and applied to the shape for rendering. type Transform = Vector2…
Gerold Meisinger
  • 4,500
  • 5
  • 26
  • 33
2
votes
0 answers

Qt Quick scene graph in a thread flickering during the resize

I am playing with QML scene graph in a thread example. When you resize the window on mac, you'll experience bad flicker. Is there any way to fix it / work around it? Is that a bug in the example, or in Qt Quick?
emailhy
  • 780
  • 9
  • 22
2
votes
2 answers

How to listen to visible changes to the JavaFX SceneGraph for specific node

We created a small painting application in JavaFX. A new requirement arose, where we have to warn the user, that he made changes, which are not yet persisted and asking him, if the user might like to save first before closing. Sample…
crusam
  • 6,140
  • 6
  • 40
  • 68
1 2
3
11 12