You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, thanks for creating this library, it's awesome.
I encountered an issue is that my coordinate system is based on container, so the structure will be like
the coordinate of my graphics object is a local coordinate(relative to the parent container), and I wanna do culling so I add the children of the container to cull object, it will be like
const collectChildren = (viewport: Viewport) => {
return _flatten((viewport.children as Container[]).map(({ children }) => children));
};
cull.addList(collectChildren(viewport));
cull.cull(viewport.getVisibleBounds());
seems the cull method is to use the x and y of the object directly instead of worldTransforms.x to do a comparison, it will cull some objects that are still in my view unexpectedly, is there any direction I can try?
The text was updated successfully, but these errors were encountered:
When I wrote this library, I ran into a bunch of problems with pixi's getBounds implementation. I ended up rolling a simpler version that, regrettably, assumes it shares a coordinate system with the viewport. An update to the library using getLocalBounds relative to a set parent (like the viewport) would fix the issue. I'm happy to accept a PR if you have the time. Otherwise you can extends SpatialHash or Simple to change the updateObject function with this type of functionality.
Hi, thanks for creating this library, it's awesome.

I encountered an issue is that my coordinate system is based on
container
, so the structure will be likethe coordinate of my graphics object is a local coordinate(relative to the parent container), and I wanna do culling so I add the children of the container to
cull
object, it will be likeseems the
cull
method is to use the x and y of the object directly instead ofworldTransforms.x
to do a comparison, it will cull some objects that are still in my view unexpectedly, is there any direction I can try?The text was updated successfully, but these errors were encountered: