ios - SceneKit and COLLADA objects -
is there way create scnnode starting collada object , add node child of rootnode?
i see scenkit can create scnscene starting .dae file using
[scnscene scenewithurl:url options:nil error:&error];
but can't find way create node starting dae.
if want read objects file , insert them scene can create scene source , entries there.
creating scene source similar creating full scene
scnscenesource *source = [scnscenesource scenesourcewithurl:url options:nil]; if know id of node looking can directly using
scnnode *somenode = [source entrywithidentifier:@"youridentifier" withclass:[scnnode class]]; otherwise can ask identifiers nodes , there figure out identifier looking for.
nsarray *nodeidentifiers = [source identifiersofentrieswithclass:[scnnode class]];
Comments
Post a Comment