SceneKitOffscreenRendering icon indicating copy to clipboard operation
SceneKitOffscreenRendering copied to clipboard

Floor plane with reflections in offscreen render

Open exilef opened this issue 4 years ago • 0 comments

Is there a way to get reflections and shadows working in an offscreen render?

I have tried adding a SCNFloor node with reflective properties. While both shadows and reflections show in the rendering produced by SCNView, the reflections are not visible in the offscreen rendering. Some magic going on in SCNView that is not exposed via SCNRenderer?

Example below (top: SCNView rendering, bottom: result of offscreen rendering). Any clue appreciated, updated example is here: https://github.com/exilef/SceneKitOffscreenRendering

reflections_offscreen

Note also the weird shadow artifacts in the SCNView - in contrast, shadows seem to be correct in the offscreen version.

exilef avatar Oct 31 '21 20:10 exilef