Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detail Culling #356

Open
xeolabs opened this issue Jun 17, 2020 · 0 comments
Open

Detail Culling #356

xeolabs opened this issue Jun 17, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@xeolabs
Copy link
Member

xeolabs commented Jun 17, 2020

Detail Culling

A new DetailCullPlugin will accelerate camera interaction by culling less visually-interesting objects while the camera is moving.

For each Entity that represents an object in your Viewer, DetailCullPlugin will automatically mark it culled whenever

  • the Entity is a certain IFC type, or
  • the Entity is above a certain complexity and below a certain size.

When culled, an Entity is not processed by xeokit's renderer, leading to a significant speedup.

Use DetailCullPlugin by simply adding it to your Viewer.

const viewer = new Viewer({
    canvasId: "myCanvas",
    transparent: true
});
    
const detailCullPlugin = new DetailCullPlugin(viewer, {
    // TODO
});

const xktLoader = new XKTLoaderPlugin(viewer);

const model = xktLoader.load({
    id: "myModel",
    src: "./models/xkt/OTCConferenceCenter/OTCConferenceCenter.xkt",
    metaModelSrc: "./metaModels/OTCConferenceCenter/metaModel.json"
});
@xeolabs xeolabs added the enhancement New feature or request label Jun 17, 2020
@xeolabs xeolabs self-assigned this Jun 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant