Jump to content
• Advertisement

scene graphs/sptial structures - a quickie

This topic is 5191 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

from this thread suggested by the forums FAQ:
Quote:
 quote: What types of scene graph nodes are usually used? The general SG is a Kd-tree with a variable number of children per node. The implementation often relies heavily on polymorphism and inheritance. In fact, OOP is extremely well suited to represent an abstract SG.
if scene graph is a logical structure, how can it's nodes be kd-trees (which AFAIK are a form of spatial structure, ie. axis-aligned planes that subdivide space...)

Share this post

Share on other sites
Advertisement
scene graphs are not a kD-trees, it is not a spatial partitioning structure but can contain spatial information, don't let "only logical relationships" fool you scene graphs can still contain spatial info but its not a spatial partitioning structure like a kd-tree. For example there can be transform nodes in a SG that is spatial information is it not?

A scene graph represents the semantical and/or spatial relationships (not spatial partitioning) among objects in a scene. Its structure is generally arranged in a hierarchical manner.

Scene graphs are typically restricted forms of directed acyclic graphs (DAGs) or n-ary trees. Most scene graphs are typically an instance of the composite design pattern and are augmentated bounding volume hierarchies (BVH) (which are object partitioning structures by the way).

Share this post

Share on other sites
A scene graph is used to describe certain types of relations between objects in the scene. There are spatial relations, transform relations, logical relations, etc. I believe it gets confusing if you try to design a scene graph that describes all these relations with a huge spagetti graph (is it even possible? I did'nt bother to try).

Share this post

Share on other sites

• Advertisement
• Game Developer Survey

We are looking for qualified game developers to participate in a 10-minute online survey. Qualified participants will be offered a \$15 incentive for your time and insights. Click here to start!

• Advertisement

• Popular Now

• 16
• 11
• 24
• 42
• 75
• Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!