I believe I have finally nailed down what I think is slowing down the
performance for models created from 3DS (and other) files. After debugging
the Load3DS code, I found that by just removing the addition of
PolygonAttributes to the Appearance objects that the rendering speed went
dramatically up.
In the attached files, I have isolated the problem. The program shows an
array of rotating 2D squares. The frame rate is computed and printed to
System.out. A boolean variable controls the calling of this line:
if(runItSlow)
appearance.setPolygonAttributes(new PolygonAttributes());
If the variable is set to false, my machine settles at about 105fps.
Setting it to true makes the program top out at about 34fps. Can others
(Java 3D team) please try out my example and tell me what I'm doing wrong?
Machine configuration: JDK 1.2.2, Java3d 1.2 FCS, ATI Rage Pro 8meg, Pent
III 600, 128meg
Attached is the .java and a Kawa project file.
J. Lee Dixon
Software Engineer
SAIC - Celebration, FL
[EMAIL PROTECTED]
TestBed.java
testbed.kpx