[Papervision3D] Collada mouse events
jtgrassie at gmail.com
Sat Jun 28 01:53:25 PDT 2008
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
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
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
> 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,
> View this message in context:
> Sent from the Papervision3D mailing list archive at Nabble.com.
> Papervision3D mailing list
> Papervision3D at osflash.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Papervision3D