And again with 2 box in a objectContainer3D :
http://bandit3.kob-eye.com/TestBB.swf

On 23 sep, 18:43, enguer <[email protected]> wrote:
> I know why my script doesnt work well... There is a bug in maxX/minX
> etc.... values.
>
> I've create a simple example with debugbb = true and debugbs = true;
> I've supposed minX,maxX,minZ,maxZ... would be the bouding box
> geometry.
>
> http://bandit3.kob-eye.com/TestBB.swf
>
> But in this example we see that the boudingbox is containing the
> bounding sphere, and that's why minX,maxX.... doesnt represent the
> real geometry but the geometry of the bouding sphere .... That's not
> the same.
>
> So how can i get the real minX/maxX.... values ?
>
> On 23 sep, 16:10, enguer <[email protected]> wrote:
>
> > I've placed this inside the tick method (processed at each frame) of
> > each objectContainer3D (one for each block of buildings).Each
> > objectContainer contain a spriterendersession.
> > cam => is the camera on the scene
> >                                 var Ca = new Number3D(cam.x,cam.y,cam.z);
> >                                 Ca.transform(Ca,);
> >                                 var Y = Ca.y;
> >                                 var X = Ca.x;
> >                                 var Z = Ca.z;
> >                                 if (Ca.x>maxX) X = maxX;
> >                                 if (Ca.x<minX) X = minX;
> >                                 if (Ca.z<minZ) Z = minZ;
> >                                 if (Ca.z>maxZ) Z = maxZ;
> >                                 var Piv = new Number3D(X,Y,Z);
> >                                 Piv.transform(Piv,sceneTransform);
> >                                 movePivot(X,Y,Z);
> >                                 moveTo(Piv.x,Piv.y,Piv.z);
>
> > This script move the pivot near the camera but inside the bouding box
> > of the objectContainer .
> > This should Zsort each "sprite" in the right order without
> > intersection... but it seems it doesnt work as well as it should....
>
> > On 23 sep, 15:09, Peter Kapelyan <[email protected]> wrote:
>
> > > You can move the pivot like
>
> > > myObject.movePivot(newX,newY,newZ);
>
> > > is this what you needed?
>
> > > -Pete
>
> > > On Wed, Sep 23, 2009 at 5:16 AM, enguer <[email protected]> wrote:
>
> > > > Hi again :)
> > > > Property pushback / push worked well for green plane, but i've again
> > > > problems with z-sorting :
> > > > Is there a way to move pivot dynamically inside his container to use
> > > > with spriterendersession ?
> > > > I would use this for buildings in order to eliminate intersection
> > > > between buildings and front scene objects.
>
> > > > the pivot should place nearest to the camera inside his objects only
> > > > on x and z axis.
>
> > > > Have you an idea about this or should i create a custom script ?
>
> > > > On 22 sep, 18:35, enguer <[email protected]> wrote:
> > > > > Thank you again, i will give the official link here when we put it
> > > > > online :)
>
> > > > > On 22 sep, 17:28, Peter Kapelyan <[email protected]> wrote:
>
> > > > > > You are welcome! Your website is probably the most amazing use of
> > > > away3d
> > > > > > I've seen yet, and I'm sure you'll be winning some awards for it.
>
> > > > > > Can you let us know when your website is live, please?
>
> > > > > > -Pete
>
> > > > > > On Tue, Sep 22, 2009 at 10:48 AM, enguer <[email protected]> 
> > > > > > wrote:
>
> > > > > > > Thank you for your compliment and your good tip :p
>
> > > > > > > On 22 sep, 16:24, Peter Kapelyan <[email protected]> wrote:
> > > > > > > > Did I mention it looks super awesome? :)
>
> > > > > > > > Also you can use:
>
> > > > > > > > myThinginBack.pushBack=true;
>
> > > > > > > > And if those things don't help, theres more ways to do sorting, 
> > > > > > > > so
> > > > let us
> > > > > > > > know if you have problems!
>
> > > > > > > > -Pete
>
> > > > > > > > On Tue, Sep 22, 2009 at 10:04 AM, enguer <[email protected]>
> > > > wrote:
>
> > > > > > > > > WOW !! it works !!
>
> > > > > > > > > thanks a lot , now i need to set this on other bugs :)
>
> > > > > > > > > On 22 sep, 15:50, Peter Kapelyan <[email protected]> wrote:
> > > > > > > > > > Try this:
>
> > > > > > > > > > myGreenPlane.pushFront=true;
>
> > > > > > > > > > It looks really good!
>
> > > > > > > > > > Let me know if it works for you.
>
> > > > > > > > > > -Pete
>
> > > > > > > > > > On Tue, Sep 22, 2009 at 9:37 AM, enguer 
> > > > > > > > > > <[email protected]>
> > > > > > > wrote:
>
> > > > > > > > > > > Hi all,
> > > > > > > > > > > I have a little problems with a plane against a wall. this
> > > > plane is
> > > > > > > > > > > distant from about 5 px.
> > > > > > > > > > > Some parts of this plane is disappearing.
> > > > > > > > > > > You can see this plane (the green one) on this url :
> > > > > > > > > > >http://bandit3.kob-eye.com/index2.html
>
> > > > > > > > > > > A triangle disapear at the top left of this green plane, 
> > > > > > > > > > > when
> > > > you
> > > > > > > > > > > place your mouse at the top left of your screen.
>
> > > > > > > > > > > if someone could give an advice ?
>
> > > > > > > > > > --
> > > > > > > > > > ___________________
>
> > > > > > > > > > Actionscript 3.0 Flash 3D Graphics Engine
>
> > > > > > > > > > HTTP://AWAY3D.COM
>
> > > > > > > > --
> > > > > > > > ___________________
>
> > > > > > > > Actionscript 3.0 Flash 3D Graphics Engine
>
> > > > > > > > HTTP://AWAY3D.COM
>
> > > > > > --
> > > > > > ___________________
>
> > > > > > Actionscript 3.0 Flash 3D Graphics Engine
>
> > > > > > HTTP://AWAY3D.COM
>
> > > --
> > > ___________________
>
> > > Actionscript 3.0 Flash 3D Graphics Engine
>
> > > HTTP://AWAY3D.COM

Reply via email to