Kelvin Chung wrote: > Hi, > > I can reproduce the problem but it seems to me VRML > did not load the texture completely before passing it > to Java3D. > > Please check the loader source code. For your reference > our utility TextureLoaders use an Image observer to > make sure Texture load completely before the > constructor return.
AFAIK, currently we don't use any checks on the images for completion of loading. This is due to the way that images are handled for textures - we take and resize them if they are not a power of 2. I think Alan uses a MediaTracker to validate the copy, but maybe if the images are already the correct dimensions it may slip through the cracks. We don't have plans to fix this bug in the current code. We're going to switch the code over to using the texture caching system that is in place in the j3d.org codebase. Problem is there that we've discovered a bug in ImageComponent2D that is preventing us from loading any textures with that code. Already have a bug report number and a promise that it will be fixed in the beta 2 release of j3d 1.3. Suggested work-around for the moment - make your images a non-power of 2 on one side so that it forces us to create new ones that we have to scale. Horrible hack, but the best I can offer for now. -- Justin Couch http://www.vlc.com.au/~justin/ Freelance Java Consultant http://www.yumetech.com/ Author, Java 3D FAQ Maintainer http://www.j3d.org/ ------------------------------------------------------------------- "Humanism is dead. Animals think, feel; so do machines now. Neither man nor woman is the measure of all things. Every organism processes data according to its domain, its environment; you, with all your brains, would be useless in a mouse's universe..." - Greg Bear, Slant ------------------------------------------------------------------- =========================================================================== 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".
