I've got a weird problem with the VRML loader and textures. Seems that the
textures are being loaded off the drive continually. I've put comments in
the VRML loader code and I've found that its only calling the doChangeURL
once... so that leaves the problem somewhere in the utility TextureLoader
class. I'm delving into there now but I thought I'd see if anyone else has
run into the problem, maybe has a fix?
Using JDK1.3beta, J3D 1.1.2, running code using the VRML Player.
Symptons: Drive light goes off frequently when running a VRML file with
textures. Looking at the Last Accessed property in windows shows the file
is being accessed regularly.
I have tried changing the TextureLoader utility class, but I've run into a
wall there. The source file says dts TextureLoader 1.23. It compiles
fine, but when I run using the newly compiled(and unchanged)
TextureLoader.class, I get the following error:
java.lang.NoSuchMethodError
at com.sun.j3d.utils.image.TextureLoader.<init>(TextureLoader.java:272)
at com.sun.j3d.utils.image.TextureLoader.<init>(TextureLoader.java:233)
at
com.sun.j3d.loaders.vrml97.impl.ImageTexture.doChangeUrl(ImageTexture.ja
va:133)
The code at this line is:
java.security.AccessController.doPrivileged(
new java.security.PrivilegedAction() {
public Object run() {
image[0] = toolkit.getImage(Url);
return null;
}
}
);
I haven't played around with the security manager much. Maybe its methods
changed between 1.2 and 1.3?
===========================================================================
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".