Hi, That is the flag you need to sepcify in the constructor. However you must also actually set the normals by calling the appropriate set method on your line array.
Thinking about it now though I am unsure how to specify a normal for a vertex of a line array. It doesn't realy make sense. A vertex normal is usualy calculated as the average normal of all the polygons to which that vertex contibutes. As a line array defines no polygons this isn't going to work. I think I answered this without realy thinking as I am no longer sure what you need to do, or evan if what you are trying to do makes sense : ) As a quick and easy test try doing this: (nb you don't need to change you line array code at all. no need to set the normals flag etc) LineArray la = new LineAray(...) //set your coords etc GeometryInfo gi = new GeometryInfo(la); NormalGenerator normGen = new NormalGenerator(); normGen.generateNormals(gi); GeometryArray newGeometry = gi.getGeometryArray(); //create your appearance with a material Shape3D shape = new Shape3D(newGeometry, appearance); and then see what happens. Cheers, Brad Jasmine Kwok wrote: > > I've found that! LineArray.NORMALS. Is that what you mean? > > Thanks! > > ----- Original Message ----- > From: "Brad Christiansen" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, March 26, 2003 3:45 PM > Subject: Re: [JAVA3D] LineArray with Materials > > > Hi, > > > > Have you included per-vertex normals in your line array data? > > > > For a light geomtery to be visible you must have a light source, a > material and vertex normals. > > > > Cheers, > > > > Brad > > > > > > > Jasmine Kwok wrote: > > > > > > Have anyone tried working with LineArray and Material? > > > My line disappears once i do not set the Coloring Attributes for the > appearance. Setting the colors of the material and > > > setting up directional lights does not help. > > > > > > Can it work together in the first place? > > > > > > Thanks, > > > Jasmine > > > > > > -------------------------------------------------------------------------- > -- > > This Email may contain confidential and/or privileged information and is > > intended solely for the addressee(s) named. If you have received this > > information in error, or are advised that you have been posted this Email > by > > accident, please notify the sender by return Email, do not redistribute > it, > > delete the Email and keep no copies. > > -------------------------------------------------------------------------- > -- > > > > > =========================================================================== > > 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". > > =========================================================================== 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".
