Questions tagged [scene-graph]
a data structure that arranges the elements of a scene into a logical representation
76 questions
1
vote
1
answer
247
views
Octree Query - Frustum Search and Recursive Vector Inserts
Brief
I have spent probably the last year thinking about implementing an Octree data structure into my C++ game engine project for scene management and frustum culling of lights and meshes. Right now ...
2
votes
2
answers
3k
views
When/Where to use Node2d as parent vs Other Node
tl;dr = When/Where/Why use 'Node2d' as the parent vs going straight to 'Other Node'?
I have just started diving into using Godot for the first time. I completed the Your First Game official tutorial (...
0
votes
0
answers
3k
views
Hierarchical relationships in an Entity Component System
I'm trying to figure out how to integrate entity component systems with scene graphs in a web game / application. The problem is of course that ECS and scene graphs are very different in nature. They ...
0
votes
1
answer
539
views
Calculating child world translation, rotation and scale
I'd like to know if it's possible to calculate a child's world translation, rotation and scale individually. I'm used to seeing devs resorting to matrix multiplication and then decomposition, like so:
...
-1
votes
1
answer
209
views
Parallel transformations tree update
I create my own pet-project graphics engine for the learning and research purposes.
Now I'm trying to create a more efficient scene transformations update technique. My current approach is the linear ...
0
votes
1
answer
259
views
Scene graph or just plain container?
I'm trying to understand if it makes sense to call what I have a scene graph or not.
Im doing an asteroid-like game, where all objects in the game are described in world space coordinates (an ...
0
votes
1
answer
321
views
Inverse transformation matrix for checking whether a point is inside a rect
I'm trying to determine which nodes in my scene graph contain a given point in global coordinate space, using the inverse of the node's global transformation matrices.
Here's a simplified version of ...
1
vote
1
answer
352
views
Can I have a scene graph translation node with multiple parent nodes?
I am trying to write a C++ scene graph structure. While designing the node classes I am facing the below issue.
I have a scene graph to represent a house.
I would like to have another house next to ...
0
votes
1
answer
279
views
Determine view-matrix with camera placed in a scene graph
My scene is organized with a simple scene graph where the child multiplies its transformation with the one of the parent.
For normal objects, likes meshes, this works as expected, but I also want to ...
1
vote
1
answer
265
views
How to use nodes in scene graph for game logic
I am working on a 3D 2048-game using Java with LWJGL to gain some 3D math and OpenGL experience. I built a small scene-graph (GroupNode and Box). My problem is that the tree structure of my scene-...
1
vote
0
answers
34
views
SceneNode transform and Eye and Center position
I am learning some inner workings of game engine development and have come across this confusion. To explain what I am trying to do, I want to start with an example:
Let's say that I have an object (...
0
votes
1
answer
726
views
Scene components and renderer
I'm currently writing a very small game engine for learning purposes, and hit a block when trying to separate the engine's logic from the "rendering" module.
My current approach is to feed my ...
1
vote
1
answer
2k
views
How do I rotate an object around another object with an angle and an offset?
I made a small game engine with a hierarchy, but have a with problem with applying transform down the hierarchy. I have an object with a parent, and I want the child to rotate around the parent with ...
15
votes
3
answers
4k
views
How can I visually see changes made to a scene since the last git commit
I'd like to see the changes made in a scene (.unity file) before I commit them to git.
I have looked into several GIT/Unity solutions but all of them are made for merging changes and not for showing ...
2
votes
0
answers
3k
views
webgl draw call batching and optimizations
I'm working mostly with three.js and webgl, i have some experience with unity.
I don't consider three.js a game engine, more of a "rendering library" - something that takes care of the GL ...