Adding child nodes to terraine nodes on ARSCNView
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 30/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- ios, swift
- Domain
- computer-graphics, mobile-dev
Research direction
Start at the ARSCNView setup and the button callback that creates the SCNSphere, then inspect how the scene rootNode, terrainNode.convertPosition, camera, and node transforms are configured. The issue is resolved when a red sphere added to the scene is visibly rendered and its child-node count still updates as expected.
Written by the indexing model from the issue text.
Description
I have tried a good few different combinations but once I'm on ARSCNView I can't seem to add any child nodes. Even If I don't use terrainNode.convertPosition and just try to add a child to the root node, nothing shows.
The child is being added as if I check the count of arView?.scene.rootNode.childNodes it is increasing every time I add a child node but visually I see nothing.
I am adding them like this with a button once everything loaded:
`
let endSphere = SCNNode(geometry: SCNSphere(radius: 100.0))
endSphere.geometry?.firstMaterial?.diffuse.contents = UIColor.red
endSphere.position = (arView?.scene.rootNode.position)!
arView?.scene.rootNode.addChildNode(endSphere)
print(arView?.scene.rootNode.childNodes.count)`
- Dominant language
- Swift
- Stars
- 232
- Forks
- 51
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from mapbox/mapbox-scenekit
-
Difficulty 2/5 1-3 hours Newbie friendliness 55/100
mapbox/mapbox-scenekit#91 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 15/100
mapbox/mapbox-scenekit#89 · 7 reactions ·
-
Deprecation WarningOpen
Difficulty 5/5 Over a week Newbie friendliness 20/100
mapbox/mapbox-scenekit#88 · 2 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
mapbox/mapbox-scenekit#83 · 5 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
mapbox/mapbox-scenekit#82 ·
All issues in mapbox/mapbox-scenekit
Similar issues
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Maintainers usually reply within 1 day
-
simulator-session.yml の simtunnel の固定先が古く、agentd が無いため simtunnel up --wait / status が準備完了を検知できないOpen
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Maintainers usually reply within 1 day
-
good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Ebullioscopic/Atoll#900 ·
Maintainers usually reply within 2 days