tag:robotlegs.tenderapp.com,2009-10-18:/discussions/problems/330-away3d-plane-primitive-not-being-mediated-by-robotlegsRobotlegs: Discussion 2018-10-18T16:35:28Ztag:robotlegs.tenderapp.com,2009-10-18:Comment/77408722011-06-08T08:55:13Z2011-06-08T08:55:13ZAway3d Plane Primitive not being mediated by Robotlegs:(<div><p>i'm guessing an away3d plane is not a display object and
therefore does not explicitly get added to the stage, which is the
point where automatic mediation will occur - you would therefore
have to manually create the mediator when you create the plane -
i've never done this but i think it's along the lines of
mediatorMap.createMediator(contextView);</p>
<p><a href=
"http://knowledge.robotlegs.org/kb/reference-mvcs-implementation/how-do-i-manually-mediate-a-view-component">
http://knowledge.robotlegs.org/kb/reference-mvcs-implementation/how...</a></p></div>matttag:robotlegs.tenderapp.com,2009-10-18:Comment/77408722011-06-09T03:21:44Z2011-06-09T03:21:46ZAway3d Plane Primitive not being mediated by Robotlegs:(<div><p>I think I get you but I'm not sure where would be the appropiate
place to call that method? Since my planes are being generated
within my Away3d scene how could I access the context class to call
the createMediator method? I'm not sure how I can reference the
context unless maybe I target the stage? How do you think I should
do it?</p></div>Dannytag:robotlegs.tenderapp.com,2009-10-18:Comment/77408722011-06-09T07:26:25Z2011-06-09T07:26:25ZAway3d Plane Primitive not being mediated by Robotlegs:(<div><p>yeah i'm not sure about that one. but i am intrigued as to why
you want to mediate individual planes? i would suggest that your
already mediated Away3d scene could perhaps be responsible for
assigning materials to the planes it creates?</p></div>matttag:robotlegs.tenderapp.com,2009-10-18:Comment/77408722011-06-09T14:47:42Z2011-06-09T14:47:43ZAway3d Plane Primitive not being mediated by Robotlegs:(<div><p>Well thing is that the planes will have a few things going on
with the materials and will have buttons inside and things like
that and so I figured it being a view and relatively complex it
should be mediated. I need the planes code decoupled from the
material's code since the materia's wll be swapped out on the fly
so I figured it would help to take advantage of Robot Legs to do
this by having the Plane as one view and the sprites used for a
material as another view. I am very new to Robot Legs so I'm not
sure if this is the best approach though. Maybe there is a better
way?</p></div>Dannytag:robotlegs.tenderapp.com,2009-10-18:Comment/77408722011-06-10T07:50:04Z2011-06-10T07:50:04ZAway3d Plane Primitive not being mediated by Robotlegs:(<div><p>The problem is that the plane is a Object3D instance which
doesn't exist on the stage. You would need to make your custom
mediatorMap implementation which detects when the scene changes and
maybe based on then mediate the Object3D class.</p></div>Weyerttag:robotlegs.tenderapp.com,2009-10-18:Comment/77408722011-06-10T18:17:22Z2011-06-10T18:17:23ZAway3d Plane Primitive not being mediated by Robotlegs:(<div><p>Weyert, would you know where I need to create the custom
implementation? That's kinda what has me stuck right now. I
understand what needs to be done in theory but I don't know where I
would map it if it needs to be inside my away3d view or somewhere
else?</p></div>Dannytag:robotlegs.tenderapp.com,2009-10-18:Comment/77408722011-06-10T18:26:36Z2011-06-10T18:26:36ZAway3d Plane Primitive not being mediated by Robotlegs:(<div><p>Hi Danny,</p>
<p>if you haven't done so already, check out this blog post:</p>
<p><a href=
"http://www.paultondeur.com/2011/03/07/robotlegs-away3d-4-broomstick-integration-with-a-wink-at-unity/">
http://www.paultondeur.com/2011/03/07/robotlegs-away3d-4-broomstick...</a></p>
<p>It's all about combining Away3D and Robotlegs, and it includes
links to his github libraries of away3D/robotlegs hybrids (such as
Mediator3D which I think is what you need here).</p>
<p>Stray</p></div>Straytag:robotlegs.tenderapp.com,2009-10-18:Comment/77408722011-09-21T03:50:25Z2011-09-21T03:50:27ZAway3d Plane Primitive not being mediated by Robotlegs:(<div><p>Stray,</p>
<p>Paul Tondeur's utility for using Away3D with v.4.0 looks great
and I look forward to using it on a Stage3D project. However, I'm
currently restricted to using v.3.6 on a project and was wondering
if there is a solution out there for working with Robotlegs and
that version of Away3D? It looks like it may be possible to modify
the codebase to use Scene3DEvent to dispatch an event when a 3D
object is added to the scene but after trying this I was still
unable to achieve mediation on my Plane primitives. Are you aware
of any situation where this has been achieved?</p>
<p>Thanks!</p></div>patrickwilson.tv