[Papervision3D] Collada mouse events

Jethro Grassie jtgrassie at gmail.com
Sat Jun 28 01:53:25 PDT 2008


Admiral,

Great post and sure it will help others.

I have gotten round it as I posted earlier...

Perhaps adding a new property to the Collada object (interactive) and at
> line 442 in Collada as insert a new line:
> material.interactive = _interactive;
> would make this easier to use to (seems many people are struggling with
> mouse events and collada).
> Just a thought
>

This way every material loaded by the Collada parser gets its interactive
property set up front rather than having to iterate over all the materials
elsewhere.

Another potential patch is to create a function on the DisplayObject3D class
to have an interactive property that when set, iterates over all its
materials and sets the interactive to true on each material - akin to how
you posted.

I just think that it should be painless and intuitive to make an object
(collada created or otherwise) dispatch mouse events.


On Fri, Jun 27, 2008 at 9:43 PM, Admiral <admiral at nuclearpixel.com> wrote:

>
> ...and after checking that code over and over again to make sure I post
> something that actually works, I forget the most important line. The one
> you
> need to get the Collada scene to display at all. You can put this line in
> anywhere after you create the Collada object and load it's DAE file.
>
>
> Admiral wrote:
> >
> > scene.addChild(brain);
> >
>
> Feeling quite silly,
> -Admiral
> --
> View this message in context:
> http://www.nabble.com/Collada-mouse-events-tp18155848p18163481.html
> Sent from the Papervision3D mailing list archive at Nabble.com.
>
>
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20080628/7d9f60cf/attachment.html 


More information about the Papervision3D mailing list