Dean Keeler wrote: > I am retrieving a vrml model into my 3D world. The nodes in the vrml file > contain a transparency value of either 0 or 1. I have to problems:
First question - which VRML loader implementation are you using? There's at least 3 floating around the 'net, so telling us which one would help. > 1. I cannot change the transparency on a node that has an initial value of > 0. The only way that I can change the transparency on that node is to go > into the vrml file and physically change the value from 0 to 0.01. The next > time I retrieve that vrml file, the node appears semi-transparent and I can > then change the transparency on the node. What am I doing wrong? Sounds like something to do with the transparency mode is not being set up correctly. I had a quick look through the Xj3D source and it appears to be doing things right. > 2. When I change the transparency of a node and that node contains children, > the children's transparency is also being change along with it. Does not compute. A node cannot change transparency *and* have children. Either a node is a grouping node, which means it contains children nodes, or the node has a transparency setting, meaning it is a Shape (Java3d Shape3D). The two can't be mixed together. More details needed. -- 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".
