The Objects' names are set properly. I check this by rereading the Hashmap before i put it into the stream. I should explain with more detail:
I'm working on a cad-visualization project which is capable to view catia-models. For there is no such loader we use a Interface that controls Catia to save the scene as VRML 2.0. I'm using the xj3D VRML97Loader to read the file. The file is stored on the server. Therefore i programmed a socket wihch will load the scene either from a directory or a database. then the socket opens a connection to the client (java-applet), opens a stream and put the sceneGraph into the stream by using SceneGraphStreamWriter(). To this point everything works just fine. BUT: When the client connects and reads from the stream, the only thing i get from the HashMap are the Names of the namedObjects and some Integers. when i check the Classes by using getClass(), i only get an instance of String. It may be possible, that those integers are NodeIDs. But if it where so, i don't know how to use them. And thats what happens before and after: when putting namedObjects into HashMap: -------------------------------------------------------------------------- FACESET_FACESET_Bolzen1 [EMAIL PROTECTED] W_rfel [EMAIL PROTECTED] MAT_MAT_MAT_Material [EMAIL PROTECTED] LIGHT_LIGHT_LIGHT_Licht [EMAIL PROTECTED] W_rfel_ [EMAIL PROTECTED] MAT_MAT_Material [EMAIL PROTECTED] FACESET_FACESET_FACESET_Bolzen [EMAIL PROTECTED] FACESET_FACESET_FACESET_Platte_ [EMAIL PROTECTED] FACESET_W_rfel_ [EMAIL PROTECTED] FACESET_FACESET_Platte_ [EMAIL PROTECTED] FACESET_FACESET_FACESET_Bolzen1 [EMAIL PROTECTED] LIGHT_LIGHT_Licht [EMAIL PROTECTED] FACESET_W_rfel [EMAIL PROTECTED] FACESET_FACESET_Bolzen [EMAIL PROTECTED] -------------------------------------------------------------------------- and when i retrieve the data on the other side (the client) i get: -------------------------------------------------------------------------- FACESET_W_rfel_ --> 0 FACESET_FACESET_Bolzen --> 51 FACESET_FACESET_FACESET_Platte_ --> 0 FACESET_W_rfel --> 0 FACESET_FACESET_Platte_ --> 37 FACESET_FACESET_FACESET_Bolzen1 --> 0 FACESET_FACESET_FACESET_Bolzen --> 0 W_rfel --> 18 FACESET_FACESET_Bolzen1 --> 61 LIGHT_LIGHT_LIGHT_Licht --> 32 MAT_MAT_MAT_Material --> 11 MAT_MAT_Material --> 0 LIGHT_LIGHT_Licht --> 28 W_rfel_ --> 4 --------------------------------------------------------------------------- I hope there is a way out. its exactly the problem which was mentioned in the topic. thanks for every help, this really gives me sleepless nights =========================================================================== 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".
