[Papervision3D] InteractiveScene3DEvent EventListener's only working sometimes!?!

Albinal elyeball at gmail.com
Wed Sep 24 08:38:22 PDT 2008


That sounds plausible!

How do I use COLLADA_MATERIALS_DONE in conjunction with
FileLoadEvent.LOAD_COMPLETE?? I just slapped it within my function for the
Cloud (contact) and it didn't give any errors but stopped that button from
working?!?

Also, what are the parameters at the end?

Many thanks.


dsdsdsdsd wrote:
> 
> maybe this is due to you attempting to interact with an interactive
> material that has not yet been loaded;
> 
> sometimes it loads quick because it is in the cache, but other times it
> does not get loaded quickly enough;
> 
> make sure that you are waiting until your materials are loaded:
> my_DAE.addEventListener( FileLoadEvent.COLLADA_MATERIALS_DONE ,
> om_handleMaterialsDone  , false , 0 , true ) ;
> 
> 
> 
> 
> 
> Albinal wrote:
>> 
>> When the following firsts loads in your browser only some or sometimes
>> none of the event listeners work:
>> http://www.albinal.com/art/
>> 
>> They normally work if you refresh the page... but sometimes they don't.
>> 
>> Instead of planes I have shaped models around the textures as transparent
>> planes were killing my processor... I have managed to make the DAEs
>> interactive using:
>> ColourYourOwn_DAE.getChildByName("COLLADA_root").getChildByName("PurePaths_004").getChildByName("18").addEventListener(
>> InteractiveScene3DEvent.OBJECT_OVER, onCYOOver ); 
>> 
>> But this only works inside the models FileLoadEvent.LOAD_COMPLETE
>> function.
>> 
>> Basically, I'm stuck! Is there anything I can do to force it to work or
>> some hack to give it a nudge?!?
>> 
>> Any help would be much appreciated!
>> 
>> ALB
>> 
>> EDIT: I should also say that this never happens when I test the file or
>> run it locally... only when it's uploaded. :-(
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/InteractiveScene3DEvent-EventListener%27s-only-working-sometimes%21-%21-tp19651124p19651623.html
Sent from the Papervision3D mailing list archive at Nabble.com.




More information about the Papervision3D mailing list