The same in my case. I´m "guessing" what outside of clipping rectangle. But
nothing generic.

I realized that frustrum clipping is based on remove "from rendering" the
objects outside of the clipping rectangle (correct me if I´m wrong). But the
objects keeps still on memory.
For example, I did a gallery with tons of pictures. The only way to make it
fast was making a custom Dispose() and Draw() methods in thouse objects,
because they were based on bitmap textures.
Of course the Dispose() method has to be called when leaving the clipping
rectangle and Draw() before entering it. I made it work checking the
movement ant positions of the objects and calculating when they were going
to enter/leave, but it´s a hard task.

So, for me, it would be enough to know when to call Dispose() and/or Draw().
I don´t know if it´s posible to do that in a generic way, but it would be
very powerfull in terms of performance.

Away3D team: Am I trying to guess anything obvious? Is it posible?

2010/4/4 Moley <[email protected]>

> My code isnt really generic (im still testing best methods) but if i
> can up with something worth sharing Ill be sure to post it !
>
>
>
> On Apr 4, 2:15 am, Diego Ponce de León <[email protected]> wrote:
> > I tried renderer.cullObjects = true but it had some issues for me. So I
> did
> > the same you did. Adding and removing manually.
> >
> > Can you share the code that checks if an object is outside of clipping
> > rectangle?
> >
> > It´s been kind of hard for me to guess that and still don´t like the
> result.
> >
> > 2010/4/3 Moley <[email protected]>
> >
> >
> >
> >
> >
> > > Ended up removing from scene and adding them manually - works a
> > > charm ;)
> >
> > > On Apr 3, 7:34 pm, Moley <[email protected]> wrote:
> > > > Hello
> >
> > > > I have a seen with 20000+ faces in it, however only 400-500 are in
> the
> > > > visible area. (rectangleClipping)
> >
> > > > Whats the best way to go about telling away3d lite not to render the
> > > > others?
> >
> > > --
> > > To unsubscribe, reply using "remove me" as the subject.
> >
> > --
> > Diego Ponce de León
> >
> > http://www.xleon.nethttp://www.xinterface.nethttp://
> twitter.com/diegoxleon
>



-- 
Diego Ponce de León

http://www.xleon.net
http://www.xinterface.net
http://twitter.com/diegoxleon

Reply via email to