Luis Villablanca wrote: > I wish I could do that. If I use nulls instead > of a branchgroup I get an exception: > > java.lang.InternalError: Group: only BranchGroup nodes may be set
Oh... errr. that's odd. We use that struture all through the Xj3D code. Hmm... I do know that there was an issue that crept in with the latest 1.3 beta that stopped us doing that for something. I came across it just over a month ago and got a bug ID number back from the Sun guys. I'll see if I can track it down. FWIW, one of my standard tactics for reducing the number of cap bits that need to be set is to construct the BG with a child set to null, and then only set ALLOW_CHILDREN_WRITE. (I know exactly the total number of children that could ever be set). Later on, when I get a valid child, I replace the null with the actual BG. This stopped working with the beta version, and hence the bug report. -- Justin Couch http://www.vlc.com.au/~justin/ Java Architect & Bit Twiddler http://www.yumetech.com/ Author, Java 3D FAQ Maintainer http://www.j3d.org/ ------------------------------------------------------------------- "Humanism is dead. Animals think, feel; so do machines now. Neither man nor woman is the measure of all things. Every organism processes data according to its domain, its environment; you, with all your brains, would be useless in a mouse's universe..." - Greg Bear, Slant ------------------------------------------------------------------- =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA3D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
