« Return to Thread: Collada InteractiveScene3DEvent

Re: Collada InteractiveScene3DEvent

by tmyers :: Rate this Message:

Reply to Author | View in Thread


you need to get a ref of child object in your collada and attach listener here instead of collada container

myDAEObject.getChildByName("object_name", true).addEventListener(InteractiveScene3DEvent...




gary.mun wrote:
Hi AngelicD,

I can answer this (I think).

I found that you must apply the interactive flags to each child objects in
the collada scene for it to function.

Same with the listeners as well.

Regards
Gary Mun

-----Original Message-----
From: papervision3d-bounces@osflash.org
[mailto:papervision3d-bounces@osflash.org] On Behalf Of AngelicD
Sent: Friday, August 01, 2008 3:58 AM
To: papervision3D@osflash.org
Subject: [Papervision3D] Collada InteractiveScene3DEvent


Hey guys,

Another problem I'm having is trying to get object interactiong to work with
my colladas. I got it to work with plane but not collada.

I enable interactive in the view...

view = new Viewport3D(this.width, this.height, false, true);

and for my collada i set the material to be interactive.

var mat:BitmapFileMaterial = new BitmapFileMaterial(visual.uri);
_geometry = new Collada(uri, new MaterialsList({all: mat }));
mat.interactive = true;

But it doens't work for colladas.

For my plane which works i do the following...

_defaultShape = new Plane(resource.material, 1, 1, 9, 9);
_defaultShape.material.oneSide = false;
_defaultShape.material.interactive = true;

Thanks
--
View this message in context:
http://www.nabble.com/Collada-InteractiveScene3DEvent-tp18760172p18760172.ht
ml
Sent from the Papervision3D mailing list archive at Nabble.com.


_______________________________________________
Papervision3D mailing list
Papervision3D@osflash.org
http://osflash.org/mailman/listinfo/papervision3d_osflash.org
No virus found in this incoming message.
Checked by AVG - http://www.avg.com 
Version: 8.0.138 / Virus Database: 270.5.7/1580 - Release Date: 7/29/2008
5:26 PM


_______________________________________________
Papervision3D mailing list
Papervision3D@osflash.org
http://osflash.org/mailman/listinfo/papervision3d_osflash.org

 « Return to Thread: Collada InteractiveScene3DEvent