Convert an image to a SceneKit Node

前端 未结 3 2018
名媛妹妹
名媛妹妹 2021-02-11 06:40

I have a bit-map image: \"my

( However this should work with any arbitrary image )

3条回答
  •  名媛妹妹
    2021-02-11 07:33

    I can also direct you to this excellent GitHub repo by Nick Lockwood:

    https://github.com/nicklockwood/FPSControls

    It will show you how to generate the meshes as planes (instead of cubes) which is a fast way to achieve what you need for simple scenes using a "neighboring" check.

    If you need large complex scenes, then I suggest you go for the solution proposed by Ef Dot using a greedy meshing algorithm.

提交回复
热议问题