question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Missing Parent (Scene, Group...)

See original GitHub issue

Hello, thanks for this lib !

I’m trying to use different component for my app, but got this error (Missing Parent (Scene, Group...)

App.vue

  <Renderer class="App__canvas" resize="window" :orbit-ctrl="{ enableDamping: true }">
    <Camera :position="{ z: 10 }" />
    <Scene>
      <Test />
    </Scene>
  </Renderer>

Test.vue

<template>
  <Group>
    <PointLight :position="{ y: 50, z: 50 }" />
    <Sphere>
      <LambertMaterial color="red" />
    </Sphere>
  </Group>
</template>

<script setup>
import { Group, PointLight, Sphere, LambertMaterial } from 'troisjs'
</script>

Don’t understand how we can use component inside a Renderer.

If i use Scene instead of Group in Test.vue it work… But a scene inside a scene is not a good practice ?

Thank !

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
klevroncommented, Jul 1, 2021

I will publish a new version with the fix in a few days, thanks for the help 👍

0reactions
stephanedemottecommented, Jun 27, 2021

@klevron any chance to add this fix for script setup user ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Missing Persons | Facebook
Public group. 󰞋. 165K members · Join group. About this group. Find missing people and bring them home. Share photos and news about...
Read more >
Family Abduction - MissingKids.org
The National Center for Missing & Exploited Children intakes reports of children abducted, wrongfully retained or concealed by a parent or other family...
Read more >
Group (JavaFX 8) - Oracle Help Center
A Group node contains an ObservableList of children that are rendered in order whenever this node is ... Properties inherited from class javafx.scene.Parent....
Read more >
The Kids Who Lost Parents to COVID | The New Yorker
A week after Noe died, the family held a funeral. Sonny's football team came wearing their jerseys. Izzy made a slideshow and picked...
Read more >
Parent reviews for Megan Is Missing | Common Sense Media
Horrible rape scene and killing. Will traumatize any child. Show more. This title has: Too much violence. Too much ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found