Scene set cancels SCNNode rendering

I checked the Scene Kit, which looks pretty easy to use. There is a way to override SCNNode rendering, which is great. The problem is that I would like to make additional elements next to the default rendering. When I override the rendering in SCNNodeRendererDelegate, it no longer displays, for example, the geometry attached to it. Suppose I would like to display a geometry wireframe bounding a rectangle or 2dtext on top. Any suggestions?

+4
source share
2 answers

How about adding a node child and setting a node rendering delegate to this node child? Then select the parent node / geometry, etc. From a delegation delegation method with [node parentNode]

+2
source

may be a dumb question, but did you try calling the original method with super first?

- (void)renderNode:(SCNNode *)node renderer:(SCNRenderer *)renderer arguments:(NSDictionary *)arguments{ [super renderNode:node renderer:renderer arguments:arguments]; //... then your stuff here.... } 
-1
source

All Articles