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
1
vote
1 answer

Understanding Scene Graphs and Graph Edges

So I'm trying to getting to grips with using Scene graphs and nodes in my code (game coding in C++) and I think I understand the basics of them and how they are used (and I can definitely see the benefits), but I'm coming across the term "Graph…
unknownSPY
  • 706
  • 4
  • 15
  • 27
1
vote
1 answer

Javadoc for JavaFX (not JavaFX api!); from source? from project scenegraph?

The API JavaFX comes with is for the JavaFX langage, which I have one reason to learn, but more reasons not to. I know Project Scenegraph (scenegraph.dev.java.net, AKA Scenario) is ambiguously the same library. I would just generate javadocs from…
Wavis
1
vote
4 answers

Engine Rendering pipeline : Making shaders generic

I am trying to make a 2D game engine using OpenGL ES 2.0 (iOS for now). I've written Application layer in Objective C and a separate self contained RendererGLES20 in C++. No GL specific call is made outside the renderer. It is working perfectly. But…
fakhir
  • 157
  • 10
1
vote
0 answers

Getting a reference to the main parent of a group - Java3D

I have the following code for capturing mouse clicks in Java3D. I am hoping to eventually be able to click on an object in my scene and move it around with the mouse. public void mouseClicked(MouseEvent e) { pickCanvas.setShapeLocation(e); …
TomSelleck
  • 6,706
  • 22
  • 82
  • 151
1
vote
1 answer

Rendering translucent objects in a complex scene

so I am stuck with the following problems about scenegraphs and translucent objects... My problem is that I want to render multiple translucent objects in one scene. I know that I have to render the opaque objects first and then the translucent from…
kke
  • 353
  • 2
  • 8
1
vote
1 answer

How to implement origin/anchor point in GLKit scene graph?

I'm trying to implement a simple scene graph on iOS using GLKit but handling origin/anchor points is giving me fits. The requirements are pretty straightforward: There is a graph of nodes each with translation, rotation, scale and origin point.…
Huhwha
  • 575
  • 5
  • 15
1
vote
1 answer

installing openscenegraph with plugins

I'm having trouble installing openscenegraph with vrml plugins Can anyone provide some suggestions? I'm working on Snow Leopard, and I downloaded the latest OpenVRML 0.18, and OpenSceneGraph 3.0.1 I can get OpenSceneGraph to work, however, I need…
mma1480
  • 659
  • 1
  • 9
  • 18
1
vote
1 answer

javafx scene.lookup

I am converting an existing swing app to JavaFX. I would think that this code would return a node called "#paneRightBottom", but it returns null. Using the netbeans debugger I am able to drill down on the "topNode" and find the "#paneRightBottom"…
Bob Smith
  • 13
  • 1
  • 5
1
vote
2 answers

Rotating a 4x4 Matrix Causes Scaling Over Time

I am using glm::rotate to rotate a transformation matrix for a cube in a scene. "cube->t = glm::rotate(cube->t, stepTime * 50.f, glm::vec3(0.f, 1.f, 0.f));" is called once per frame, where cube->t is the matrix in question. The strange thing is that…
Miles
  • 1,858
  • 1
  • 21
  • 34
1
vote
1 answer

modify java3d SceneGraph dynamically

I recently started working on java3D. Currently I am working on a java3D racing game. I just wanted to know is it possible to add objects (i.e. scenegraph nodes nodes) e.g. spehere, box, etc. to a scene graph which has been compiled. If i want to…
2am
  • 699
  • 1
  • 7
  • 25
1
vote
1 answer

How do i indicate differences in this situation?

I am building code for a 2D scene graph and i have a single abstract class, Node that will be used to indicate that a type of item can be used in a scene graph. However, classes that implement from this are of different types such as leaf nodes and…
RCIX
  • 38,647
  • 50
  • 150
  • 207
0
votes
0 answers

How to keep Roku from entering screen saver mode

I have written an audio player for Roku using the SceneGraph and BrightScript. The way it works is as follows: I have an node on the MainScene. All of the audio is played through this node. I have a custom node (AudioProvider) that I wrote that…
jasonxz
  • 139
  • 1
  • 9
0
votes
0 answers

Accessing and Modifying a Child node from a Parent node

Hi I am trying to extend the ZoomRow sample channel. In essence I am adding a rectangle to each row item with a set color and I am trying to update the color when the item is in focus. Here is the child component. I added a detailsTest field with an…
Nedu
  • 49
  • 9
0
votes
1 answer

Roku app "ObserveField visible" is not running when the screen appears

I am working on an app for Roku using BrightScript and SceneGraph. I have a postergrid where a user selects between a number of posters. When the user selects one, the ShowTopicScreen sub is called: ShowTopicScreen.brs sub ShowTopicScreen(topic as…
cesarcarlos
  • 1,271
  • 1
  • 13
  • 33
0
votes
1 answer

Send body in Post request in Brightscript Roku

I want to send the body in a post request in brightscript, can't find any way to do this, My code xfer =…