[Papervision3D] 2 quick questions
Collin Cusce
rafajafar at gmail.com
Mon Jul 9 15:45:20 EDT 2007
Hm, well I didnt used to have that problem at all. I would add children and
groups all over the place. I haven't played with PV3D in a while though. Any
word from the devs?
On 7/9/07, John Grden <neoriley at gmail.com> wrote:
>
> I spoke too soon ;) it obviously renders those child groups a second
> time, no? Now I'm rotating my main object, and there's copies of it's
> children just sitting int he same postion
>
> On 7/9/07, John Grden <neoriley at gmail.com> wrote:
> >
> > That worked great ;) LOL, thanks Collin, I was JUST messing with this
> > last night ;)
> >
> > On 7/9/07, Collin Cusce < rafajafar at gmail.com > wrote:
> > >
> > > There is no second level container.
> > >
> > > In a MovieScene3D scene class, every top-level object maintains its
> > > own container. It's children, however, do not.
> > >
> > > Basically, if you go MovieScene.addChild();,container is set. But if
> > > you do DisplayObject3D.addChild();, container is never set.
> > >
> > > There might be a more classy way around this, but what I've been doing
> > > is adding the group's children after I add the group. For example:
> > >
> > > root.addChild (Group);
> > > root.addChild(GroupsChild);
> > >
> > > This way the group will be rendered before the child, yet the child
> > > will get a container. No double rendering occurs.
> > >
> > > On 7/9/07, Iman Khabazian <imankh at gmail.com> wrote:
> > >
> > > > Hello All,
> > > >
> > > > Question1:
> > > >
> > > > This line of code works great:
> > > > trace ("ContainerA: " + scene.getChildByName("0").container); //
> > > > returns "Sprite"
> > > >
> > > > but this line of code doesnt do what i want:
> > > > trace ("ContainerA: " + scene.getChildByName("0").getChildByName("zone4").container);
> > > > // returns null
> > > >
> > > > I want to access that seond level container. My scene is a
> > > > "MovieScene3d" and I know the path is right. Anyone know what Im doing
> > > > wrong?
> > > >
> > > >
> > > > Question 2:
> > > >
> > > > Right know i have some code that looks like this:
> > > > function loop3D(event:Event):void {
> > > > if ((once == false) &&(building.loaded == true)) {
> > > > building_loaded_handle();
> > > > once = true;
> > > > }
> > > > }
> > > >
> > > > where "building" is Collada and loop3D is being run onEnterFrame.
> > > > What I want is to do something like this:
> > > >
> > > > building.addEventListener("Loaded", building_loaded_handle);
> > > >
> > > > but I dont know what event to listen for. Please help
> > > >
> > > > thanks,
> > > > iMAN
> > > >
> > > >
> > > >
> > > > _______________________________________________
> > > > Papervision3D mailing list
> > > > Papervision3D at osflash.org
> > > > http://osflash.org/mailman/listinfo/papervision3d_osflash.org
> > > >
> > > >
> > >
> > > _______________________________________________
> > > Papervision3D mailing list
> > > Papervision3D at osflash.org
> > > http://osflash.org/mailman/listinfo/papervision3d_osflash.org
> > >
> > >
> >
> >
> > --
> > [ JPG ]
>
>
>
>
> --
> [ JPG ]
> _______________________________________________
> 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/20070709/674902b4/attachment-0001.html
More information about the Papervision3D
mailing list