Hello,

I have the following problem

I have the vrml file that begins with
#####################################
#VRML V2.0 utf8
Shape {
  appearance Appearance {
    texture DEF Cloth ImageTexture {
        url "../textures/c1.jpg"
    }
  }
}
Transform {
  children [
    Transform {
      children Shape {
        appearance Appearance {
          texture USE Cloth
............................. and so on
i.e. some Shapes in the file uses texture DEFed as Cloth
and using simple javascript I could change appearance of several Shapes
just changing texture's url on the fly

Now I'd like to do the same with J3D but ...
1. First file node (Shape) is not inserted into the tree
2. Using getNamedObjects() I cannot access DEFed NodeComponents

In other words I cannot find DEFed ImageTexture inside of the tree

I even tried to add fake geometry to the first Shape so the begining
of the file looked like
#####################################
#VRML V2.0 utf8
Shape {
  appearance Appearance {
    texture DEF Cloth ImageTexture {
        url "../textures/c1.jpg"
    }
  }
  geometry IndexedFaceSet {
    coord Coordinate {
      point [0 0 0, 0 0 0, 0 0 0]
    }
    coordIndex [ 0 2 1 -1 ]
  }
}
In this case I had Shape3D as a first child of the tree and I could
change its texture but it has no affect on all other shapes that used Cloth

Any thoughts on how can I find DEFed Appearance on the tree?????
Thanks



Im rhythmus bleiben,
 Alex                          mailto:[EMAIL PROTECTED]
ICQ: 29889167

...Commanded by UNIQUE combination of SOFTWARE and organic systems...

===========================================================================
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".

Reply via email to