0 Replies
      Latest reply on Jul 20, 2018 4:16 AM by miliPolo
      miliPolo Level 1 Level 1 (0 points)

        here is the code, it is so simple, i can't find any problems.

        - (void)addNode {
           for (int index = 0; index < 100; index++) {
               NSLog(@"add node {%d}",index);
               SCNNode *itemNode = [SCNNode new];
               SCNPlane *plane = [SCNPlane planeWithWidth:0.5 height:0.5];
               itemNode.geometry = plane;
               SKScene *skScene = [SKScene sceneWithSize:CGSizeMake(1, 1)];
               /* use SKScene as node's contents */
               itemNode.geometry.firstMaterial.diffuse.contents = skScene;
               itemNode.position = SCNVector3Make(0, 1+0.05*index, -3);
               [self.jpARSCNView.scene.rootNode addChildNode:itemNode];
           }
        }