Hello everybody,

I noticed a problem building objects from the .geometry.* package

If I do:

  Appearance app = new Appearance() ;
  .... // set it
  Box box = new Box(dx, dy, dz, app) ;

everything works fine, but I need a separate geometry for each cube, so I
tried:

  Box box = new Box(dx,dy,dz, Box.GEOMETRY_NOT_SHARED, app) ;

but all my objects loose the appearance and appear withthe default, all
white, appearance.

substituting with:

  Box = box new Box(dx,dy,dz,
                    Box.GEOMETRY_NOT_SHARED|
                    Box.ALLOW_APPEARANCE_MODIFY,
                    app) ;
  // force the appearance again
  box.setAppearance(app) ;

did not solve the problem.

This is appening also with the Cylinder primitive, I didn't try the
others.
Tested on Linux + Sun jdk1.3.0 + Blackdown J3D 1.2FCS
and Windows98 + Sun jdk1.3.0 + Sun J3D 1.2.1 beta2 OpenGL

Will it be solved in J3D 1.2.1?

Is there already some workaround?

Thanks,
Fabrizio Nunnari

--
http://digilander.iol.it/fnunnari

   Fabrizio Nunnari <[EMAIL PROTECTED]>
 -Student at Computer Science Department of Turin (Italy)-
Voodoo Chile of DeGeNeRaTiOn  for the Amiga scene --> Coder

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