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

idea: Manipulate InstancedMesh instances with child elements #260

Open
trusktr opened this issue May 15, 2023 · 0 comments
Open

idea: Manipulate InstancedMesh instances with child elements #260

trusktr opened this issue May 15, 2023 · 0 comments

Comments

@trusktr
Copy link
Member

trusktr commented May 15, 2023

f.e.

<lume-instanced-mesh count="10">
  <lume-instance position="1 2 3"></lume-instance>
  <lume-instance position="4 5 6"></lume-instance>
</lume-instanced-mesh>

or

<lume-instanced-mesh count="10">
  <!-- These elements are not rendered, and they determine the positions, etc, of the instances. -->
  <lume-element3d slot="instance" position="1 2 3"></lume-element3d>
  <lume-element3d slot="instance" position="4 5 6"></lume-element3d>
  <slot name="more-instances" slot="instance"></slot>

  <!-- This is rendered like a regular child (because it isn't slotted), is not involved with the mesh instances -->
  <lume-gltf-model position="10 20 30"></lume-gltf-model>
</lume-instanced-mesh>
@trusktr trusktr changed the title Manipulate InstancedMesh instances with child elements idea: Manipulate InstancedMesh instances with child elements Jul 2, 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