3 Replies
      Latest reply on Sep 5, 2017 8:57 AM by kallipigous
      wayoutwest Level 1 Level 1 (0 points)

        The "What's New in SceneKit" presentation from WWDC 2017 shows how to set material.displacement.contents to a height map PNG in order to make a plane reflect the elevation profile of a volcano. I haven't been able to reproduce the desired effect, so I'm wondering if iOS 11.0 doesn't support it yet.

         

        Has anyone had better luck?

         

        material.displacement.contents = "volcano-height-map.png"
        material.displacement.textureComponents = .red
        

         

        https://developer.apple.com/documentation/scenekit/scnmaterial/2867516-displacement