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

FEATURE: Extend DTX to support "lines" primitives #1304

Open
xeolabs opened this issue Dec 15, 2023 · 0 comments
Open

FEATURE: Extend DTX to support "lines" primitives #1304

xeolabs opened this issue Dec 15, 2023 · 0 comments
Assignees
Milestone

Comments

@xeolabs
Copy link
Member

xeolabs commented Dec 15, 2023

Extend data texture scene representation (DTX) to support lines primitives.

This way we can use DTX for everything in an IFC model, while also leveraging DTX's superior memory footprint for models that have zillions of line segments.

This enables us to efficiently use xeokit's new dynamic transforms to animate objects made of line segments.

Before this, line segments can only be represented as instanced or batched VBOs. Instanced VBOs are inefficient for large numbers of objects, while batched VBOs cannot have dynamic transforms, because the transform matrix needs to be duplicated per-vertex. Therefore, DTX is the only efficient way to have large numbers of dynamically transformed objects, which applies to line segments as well as triangles.

Tested using the ArchiCAD test model - see the dimension lines in the snapshot below.

Screenshot from 2023-12-15 03-28-52

@xeolabs xeolabs added this to the 2.5 milestone Dec 15, 2023
@xeolabs xeolabs self-assigned this Dec 15, 2023
@xeolabs xeolabs changed the title FEATURE: Data texture support for "lines" pimitives FEATURE: Extend DTX to support "lines" primitives Dec 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant