Thanks Michael,
The NormalGenerator works within geometry groups (as long as I set the creaseAngle properly), but there's no way to get rid of the hard edge between geometry groups, is there?
The reason I need to keep different parts of the objects in different groups is that the colors/textures of the different parts will change at runtime...
This is what I spotted in the API for ObjectFile: "Normals are calculated on each geometry group separately, meaning there will be a hard edge between each geometry group."
So am I attempting the impossible?
There is a way to do what you want. The full context of the javadoc you quoted is as follows:
If neither the vn nor the s token is used in the file, then
> normals are calculated using the creaseAngle set in the > contructor. Normals are calculated on each geometry group > separately, meaning there will be a hard edge between each > geometry group.
If you want normals smoothed across groups, then you need to use the 's' token. There are examples of this in galleon.obj and p51_mustang.obj, both of which ship with the Java 3D sdk.
If you simply want to get rid of all hard edges between all groups in your model, you should just be able to add the line 's 1' at the start of your file, and it will put all the geometry into the same smoothing group.
-Paul
=========================================================================== 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".