Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

12046 Posts in 1593 Topics- by 595 Members - Latest Member: KeelmHaxabefe

18. May 2013, 03:47:41 pm
Xith3D CommunityXith3D InternalsDeveloper discussion (Moderators: Marvin Fröhlich, 'n ddrylliog)adding BranchGroups to BranchGroups
Pages: [1]
Print
Author Topic: adding BranchGroups to BranchGroups  (Read 1202 times)
Patheros
Getting respectable
***
Offline Offline

Posts: 267


Dead Dolphin


View Profile WWW Email
« on: 14. March 2007, 07:57:20 pm »

Code:
/**
 * BranchGroup is root of a branch graph of a scene.
 * It can be attached to a Locale or as a child of
 * another subgraph.
 *
 * @author David Yazel
 * @author Marvin Froehlich (aka Qudus)
 * @author Amos Wenger (aka BlueSky)
 */
public class BranchGroup extends Group

Unless I'm mistaken a BranchGroup is not intended to be added to another BranchGroup but the BranchGroup javadoc seems to indicate that a BranchGroup can/should be a child of another subgraph, ie a child of another group.
Logged

"I like my method, what was my method again?" - Jon
Patheros
Getting respectable
***
Offline Offline

Posts: 267


Dead Dolphin


View Profile WWW Email
« Reply #1 on: 14. March 2007, 07:59:36 pm »

PS. I'm currently using BranchGroups as the group of a LayeredNode, is this the correct way class to use or should I be using a Group instead?
Logged

"I like my method, what was my method again?" - Jon
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4403


May the 4th, be with you...


View Profile
« Reply #2 on: 14. March 2007, 08:19:31 pm »

BranchGroup should never be used as something else than the root of your branch graph. This means, it is the branch group of a RenderPass.

For backwards compatiblity it is not forbidden to use a BranchGroup as a child of another Group. But you should avoid this.

Group is the intended Node type to be used as the LayeredNode's Group.

I've updated the BranchGroup's JavaDoc.

Marvin
Logged
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic