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

Loading state #162

Open
leonardogruppelli opened this issue Sep 15, 2022 · 0 comments
Open

Loading state #162

leonardogruppelli opened this issue Sep 15, 2022 · 0 comments

Comments

@leonardogruppelli
Copy link

I just want to know if there is a way to detect when all meshes and materials have loaded?

This is my template:

<template>
  <Renderer
    ref="renderer"
    antialias
    resize
    shadow
  >
    <Camera
      ref="camera"
      :position="{
        z: 10,
      }"
    />

    <Scene background="#111111">
      <Group
        ref="group"
        :position="{
          x: position,
          y: position,
          z: position,
        }"
      >
        <template v-for="i in quantity">
          <template v-for="j in quantity">
            <template v-for="k in quantity">
              <Box
                ref="boxes"
                :width-segments="10"
                :height-segments="10"
                :depth-segments="10"
                :size="size"
                :position="{
                  x: i * increment,
                  y: j * increment,
                  z: k * increment,
                }"
                receive-shadow
                cast-shadow
              >
                <MatcapMaterial
                  ref="material"
                  name="2E763A_78A0B7_B3D1CF_14F209"
                />
              </Box>
            </template>
          </template>
        </template>
      </Group>
    </Scene>
  </Renderer>
</template>
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