Convert an image to a SceneKit Node

前端 未结 3 2027
北海茫月
北海茫月 2021-02-11 07:09

I have a bit-map image: \"my

( However this should work with any arbitrary image )

3条回答
  •  滥情空心
    2021-02-11 07:24

    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.

提交回复
热议问题