Skip to content

Plugin: BatchedMeshPlugin #628

@gkjohnson

Description

@gkjohnson

Related to #604

Add a plugin that fills in a BatchedMesh with the loaded tiles geometry, uses a custom material with support for reading from a texture array, and uploading textures to an array.

See proof of concept here.

Approach

  • Create a preallocated BatchedMesh with enough space and large enough slots for the number of tiles to be rendered.
  • Preallocate a texture array with enough space for each texture needed.
  • Auto expand allocations if needed.
  • Custom materials for rendering with albedo from texture array.
  • We can lose original references to loaded geometry.

Changes Needed

  • Ray casting must change
  • Approach for storing internally references to geometry must change
  • Lots of internal callbacks and functions that rely on "scene" would have to change

Limitations

  • Will not work with Fading tiles.
  • Will only work with tile albedo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions