Hello, I thought I'd ask this first before posting sample code, just to see if anyone out there has heard of this issue:
I'm loading a .awd file with the Loader3D class. The .awd uses a .jpg texture for the model. When I finish loading the .awd using Loader3D.loadGeometry(url, parser), the model loads into the scene but has the default solid white material briefly before the .jpg texture comes in. I figured that makes sense and that I would need to listen for Loader3dEvent.LOAD_SUCCESS and then make the model visible only after receiving the LOAD_SUCCESS event. After setting that up, the materials still show solid white briefly after load before the textures show up. So then I decided to wait for both LOAD_SUCCESS and to make sure bytesLoaded == bytesTotal before showing the model. Still no success. Then I finally put in a Timer to show the model one second after getting LOAD_SUCCESS and bytesTotal == bytesLoaded. It works, but that's not a reliable solution depending on connection speed. So does anyone know how I can make sure the materials are loaded and being displayed on the model before showing the model? Thanks in advance!
