Aloha,

If your only concern is that balls need to be rendered correct, then
you could make two views, two camera's , two scene's, and render the
views when needed.
If your camera doesn't turn a lot you will also gain a lot of
performance, since you only have to render the table when the camera
changes.
The downside will be when the ball is near a border/corner it will
always be on top.

so: addchild viewTable first then addchild viewRest

Good luck.
Ringo.

On May 22, 4:50 pm, Novora <[email protected]> wrote:
> Anyone can provide any assistance...? Please...?
>
> On May 19, 5:55 pm, Novora <[email protected]> wrote:
>
>
>
>
>
>
>
> > As for the Render Sessions... I'm sorry, I'm not sure how that works,
> > or how it would be different from ownCanvas-ing all the parts, and
> > screenZOffsetting them/changing their ScreenZ...
>
> > Would it be fine to perhaps provide an example?
>
> > On May 19, 4:19 pm, Michael Iv <[email protected]> wrote:
>
> > > Use render sessions . Distribute different parts to separate sessions. 
> > > That always works
>
> > > Sent from my iPhone
>
> > > On May 19, 2011, at 10:42 AM, Novora <[email protected]> wrote:
>
> > > > I've been struggling with this problem with a week or so, and I'm
> > > > really, really irritated...
>
> > > > Alright, we're making is a pool game, where there will be balls, on a
> > > > pool table.
>
> > > > Main problem, the balls have this great tendency to... how to say,
> > > > appear above or below the rails? At some areas it will be rendered
> > > > above the rails, at some areas below.
>
> > > > The 6 main parts are, the 4 rails, the "floor" of the pool table (that
> > > > green area) along with the legs, and the balls, all in the same
> > > > container.
>
> > > > And no matter what I've been trying, ownSession.screenZ or
> > > > ScreenZOffset, I can never figure out that exact number to put to
> > > > ensure the balls will always be rendered correctly!
>
> > > > So... Main questions.
>
> > > > 1) Is there any better way of doing this? Ensuring that the balls and
> > > > the rails will be rendered correctly.
>
> > > > 2) Is there a way to access what the current screenZ of the object is,
> > > > if its not OwnCanvas? In order to correctly determine the rendering
> > > > order, you could say...
>
> > > > 3) How does screenZ and ScreenZOffset work exactly?!? It seems to
> > > > randomly work here and there...
>
> > > > 4) Is there any other ways of modifying the depth sorting?
>
> > > > Please help, I'm pulling my hair out!
>
> > > > Thanks!

Reply via email to