hello all;
I am programming novice and 
In the effort to orientate myself with java3d 
 I have been working on a ball and stick 3d molecule viewer 
(which was originally created integrating vrml on top of java)
and I have hit a stump . while I cant offer you cash awards for
your help.....I can get religious and great ask that software engineer
 in the sky to bless you with all that your hearts desire (smile) 

the original version allowed for the generation and deleting
of molecules using a vrml switch node .. viewing combinations would be 
rendered depending if the switch was set to 0 or 1 ... for instance 

m_mainSwitch = (EventInSFInt32)switchArray[0].getEventIn("whichChoice");    
m_mainSwitch.setValue(0);

since there is not this sort of boolean function in j3d's  switch
I tried creating a switch with a child_mask ; all geometry being connected
via a tranform node ( similiar to the fourbyfour game)...when I added
it to the  branch group I got a null pointer exception.....

 I want to  create 5 separate branch groups and 
rendered them out in a six with the type of on/off control of 
each branch groups objects  like vrml ..... 


Is the j3d switch neccessary or is there a more efficient way ?


thanks in advance

pm 


=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/

Reply via email to