nicklockwood / Euclid

A Swift library for creating and manipulating 3D geometry
MIT License
644 stars 53 forks source link

RealityKit Support #53

Closed iwoj closed 2 years ago

iwoj commented 3 years ago

RealityKit does not use SceneKit (while ARKit does). It would be great to add support for RealityKit in Euclid now that ModelEntities can be dynamically modified.

See 21:40 in https://developer.apple.com/videos/play/wwdc2021/10075/

nicklockwood commented 3 years ago

Yes, I was thinking the same thing. I'll look into it.

iwoj commented 3 years ago

Very poorly documented, but an important new feature of RealityKit. Not sure why Apple isn't making this a higher priority topic. (Also automated testing of Apple AR apps is almost impossible.)

Here are some relevant links: https://maxxfrazer.medium.com/getting-started-with-realitykit-procedural-geometries-5dd9eca659ef https://developer.apple.com/documentation/realitykit/creating_3d_content_with_reality_composer/adding_procedural_assets_to_a_scene https://developer.apple.com/documentation/realitykit/meshdescriptor

iwoj commented 2 years ago

I just thought I'd bump this in case it's still in the running for your attention.

nicklockwood commented 2 years ago

@iwoj I'd still like to add this, but because it's not something I need myself it's pretty low down the priority list at the moment. If you'd be interested in attempting it yourself, even if it's just a prototype, I'd be happy to accept a PR and take over maintenance of it.

nicklockwood commented 2 years ago

@iwoj hey! I've pushed experimental RealityKit support to the develop branch. It's a WIP but I don't anticipate that the API will change significantly before release.

Please try it out and let me know if you find any problems.

nicklockwood commented 2 years ago

@iwoj landed in 0.6.0