[Papervision3D] InteractiveScene3DEvent EventListener's only working sometimes!?!
Albinal
elyeball at gmail.com
Fri Sep 26 08:56:40 PDT 2008
Ok, this is getting stupid now! I've stripped it right back to something
simple: I'm just trying to load two models:
// ----- ONE -----
var Cloud1_DAE:DAE = new DAE();
Cloud1_DAE.load("images/Xcontact.dae");
Cloud1_DAE.scale = AllModelsScale;
scene.addChild(Cloud1_DAE, "Cloud1_DAE");
// ----- TWO -----
var CYO_DAE:DAE = new DAE();
CYO_DAE.scale = AllModelsScale;
CYO_DAE.load("images/CYO.dae");
scene.addChild(CYO_DAE, "CYO_DAE");
In the output I get this:
INFO: Papervision3D Public Beta 2.0 - Great White (20.08.08)
INFO: Viewport autoScaleToStage : Papervision has changed the Stage scale
mode.
INFO: BitmapFileMaterial: Loading bitmap from
images/cloud1.jpg?nc=0.46889746095985174
INFO: BitmapFileMaterial: Loading bitmap from
images/colouryourown.png?nc=0.05885379947721958
INFO: DisplayObject3D: COLLADA_Scene
INFO: DisplayObject3D: PurePaths_002
INFO: DisplayObject3D: COLLADA_Scene
INFO: DisplayObject3D: PurePaths_002
It's got the two different image textures and then does the same model
twice!?!? I can't seem to get it to display two models at once! PV is hard
work! :-/
Can anyone please help?!?
Albinal wrote:
>
> Thanks again! The mystery is begining to unravel!
>
> But now I'm kind of back to square one as I can't load more than one model
> and the model I am loading is rotated wrong and I can see the mesh is all
> pink and it doesn't have the texture! Oh the joy... I'm begining to wish I
> never started! :-(
>
> I'm off to Flash on the Beach next week so hopefully I'll pick up some
> knowledge there! :-)
>
>
>
> tmyers wrote:
>>
>> Ian,
>>
>> You are probably getting that error because you are using an older
>> revision of great white and the recursive functionality isn't available.
>> Try downloading the latest PV3D Beta 2.
>>
>> its available here
>> http://papervision3d.googlecode.com/files/Papervision3D_2.0_beta_1_src.zip
>>
>> Notice FreeCamera3D will no longer be available. So change to Camera3D.
>>
>> Also your current syntax is just causing you all sorts of problems when
>> online. You see the number 14 (see below) is an internal id that is
>> generated at runtime...so it may change depending on the order the
>> objects are added to the display list.
>>
>> getChildByName("14").addEventListener(
>> InteractiveScene3DEvent.OBJECT_OVER, onBUYOver );
>>
>> That means when you are running this online the dae could have an id of
>> 15 or 13 depending on how fast or slow other objects in you application
>> download. So the event listeners may not get attached to the intended
>> objects in your scene.
>>
>> hope that solves it :)
>>
>
>
--
View this message in context: http://www.nabble.com/InteractiveScene3DEvent-EventListener%27s-only-working-sometimes%21-%21-tp19651124p19691343.html
Sent from the Papervision3D mailing list archive at Nabble.com.
More information about the Papervision3D
mailing list