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

Multiple contexts per application vs multiple applications per context

I was wondering whether it is a good idea to create a "system" wide rendering server that is responsible for the rendering of all application elements. Currently, applications usually have their own context, meaning whatever data might be identical…
user2341104
0
votes
0 answers

Scene graph child node registration & copy constructor

I have a scene graph, all nodes deriving from a base class AbstractNode. AbstractNode has a registerChild member function: registerChild(string name, shared_ptr * childMember) used for registering the children in a standard way (so…
galinette
  • 8,896
  • 2
  • 36
  • 87
0
votes
2 answers

Using different shaders on the same model at runtime

I've already asked similar but a bit unclear question here but this time I will be very specific and to the point. Suppose I have an actor which grabs a power up. He starts to glow using bloom shader and after 10 seconds back to normal attaching the…
fakhir
  • 157
  • 10
0
votes
1 answer

Disabling a PointLight throws CapabilityNotSetException

I have the following code for a light in Java3D. After my scene has been created, I have a separate thread which should turn the light off. When the my code calls: setEnable(true); I get a get the following error: Exception in thread "Thread-3"…
TomSelleck
  • 6,706
  • 22
  • 82
  • 151
0
votes
2 answers

How do I traverse a scene graph-like tree structure?

I have a scene graph where I have: class Node { public: struct { COLLISION_TYPE collisionType; void* boundingVolume; }collisionData; struct { XMFLOAT3 position; XMFLOAT3 rotation; }leafData; Node(Model* representModel, Node*…
0
votes
3 answers

Building a new hierarchy, use an abstract class or an interface?

I'm preparing to build a 2D scene graph for my game, and i would like to know whether i should use at it's root an interface or two or a couple of abstract classes. Here's my requirements: Base node item needs to be able to store a matrix also…
RCIX
  • 38,647
  • 50
  • 150
  • 207
0
votes
1 answer

Scene graphs: recursion or iteration?

A colleague and I are talking about how scenes are typically rendered in complex games. He believes the world is rendered recursively in the truest object-oriented fashion, with the world's many actors each overriding a virtual function like…
Jeff Stewart
  • 803
  • 1
  • 8
  • 14
-1
votes
1 answer

How to make custom button in Roku?

I want to make this type of button in Roku, If you have any information let me know. Thanks in advance!
-1
votes
1 answer

Applying transformations in a 2d scene graph

In a 2d scene graph: When I perform a transformation like a rotation or other in a node, how I should apply these operations in children nodes? If I apply the operation in each children, it can take much time. I thought when the app render the…
carlos prado
  • 49
  • 2
  • 6
-1
votes
1 answer

Javafx: Bind ImageView to Anchorpane or VBox and scale the ImageView by resizing the scene

i want to scale the ImageView by resizing the scene (window), but i have to keep the aspect ratio. Is it possible to do that directly by resizing the window? Thank you for your help. The pproblem is, that the ImageView isnt scaling by resizing the…
Dimax1
  • 7
  • 1
-1
votes
2 answers

How to close screens by scripts in brightscript

I created a roSGScreen instance (screen1) and pushed the screen from the main class into the screen stack. Then I pushed another screen (screen2) into the stack. Now I want to remove the screen (pop from the screen stack) programmatically. The…
ganka
  • 191
  • 1
  • 11
-1
votes
1 answer

How do Update Qt Scene Graph from c++?

I wrote a c++ QQuickItem component for drawing curve, but for updating the curve, i have to call update method by a timer. example of what i am doing: Item { Curve { id: curve height: 100 width: 600 } Timer { …
Mohsen Zahraee
  • 3,309
  • 5
  • 31
  • 45
-1
votes
1 answer

How to use QSGClipNode with custom geometry?

How to use QSGClipNode with a custom geometry? This is a sample:
S.M.Mousavi
  • 5,013
  • 7
  • 44
  • 59
-1
votes
1 answer

Which HTML5 Canvas library should I use for this purpose?

I am a newbie on HTML5 and Javascript, but I need to do a visualisation using them. Here is my domain / problem: I need to visualise a large set of graph nodes, visually a node can be a cycle with colors and transparence. There are two…
Jackson Tale
  • 25,428
  • 34
  • 149
  • 271
1 2 3
11
12