lionheart / openradar-mirror

A mirror of radars pulled from http://openradar.me/.
244 stars 17 forks source link

26488860: Setting SceneKit material to front face culling results in culling of SKScene overlay #14748

Open openradar-mirror opened 8 years ago

openradar-mirror commented 8 years ago

Description

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.

Product Version: 9.3.2 Created: 2016-05-26T07:42:27.617710 Originated: 2016-05-26T00:00:00 Open Radar Link: http://www.openradar.me/26488860

openradar-mirror commented 8 years ago

Modified: 2016-05-26T07:42:27.617910