Setting SceneKit material to front face culling results in culling of SKScene overlay

Originator:lachlan.hurst
Number:rdar://26488860 Date Originated:26/05/2016
Status:Open Resolved:
Product:iOS SDK Product Version:9.3.2
Classification:Other Bug Reproducible:Always
 
Summary:
When setting the cullMode of an SCNMaterial to front, the overlay SKScene is also culled (as set by SCNView overlaySKScene). The overlay scene should not be impacted by changing the cullmode of an unrelated object in the 3D scene.

Steps to Reproduce:
Download test project demonstratting bug from
https://github.com/lachlanhurst/SceneKitFrontFaceCullingBug

Compile and run. Tapping the screen toggles between front face and back face culling. Note how the red square disappears when front face culling (it should remain visible)

Expected Results:
The overlay scene (SKScene) should remain visible no matter what cull mode is set on the objects in the 3D scene.

Actual Results:
The overlay scene disappears when setting cullMode to front.

Version:
iOS 9.3.2 (13F69)

Notes:


Configuration:
iPhone 6s Plus

Attachments:
'FFculling.gif' was successfully uploaded.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!