목록SceneKit (16)
HIT해

https://100percent-me.tistory.com/entry/%EC%8A%A4-%EB%85%B8%EC%9A%B0%EB%A7%A8-%EC%95%B1%EC%8A%A4%ED%86%A0%EC%96%B4-%EB%B0%B0%ED%8F%AC-%ED%9B%84%EA%B8%B0 [스-노우맨] 앱스토어 배포 후기안녕하세요! 제 첫 개인 프로젝트 '스-노우맨'이 드디어 앱스토어에 배포되었습니다. 프로젝트 소개스-노우맨은 사용자의 걸음 수에 따라 눈사람이 성장하는 AR 기반 헬스케어 앱입니다. 걸100percent-me.tistory.com 이전 포스팅에서 계획했던 기능들을 모두 완성해서 업데이트했다! 주요 업데이트 사항눈사람 크게에 따른 카메라 시점 변경걸음수 설정 변경아이템 획득 방식 변경 ( 걸을때 마다가 ..

프로젝트가 거의 마무리 단계까지 왔다. 눈사람의 몸통, 눈, 코, 입, 맵을 몇가지를 제외하고는 모두 직접 만들었지만 사용 방법을 따로 정리하지 않아 제작할떄마다 헷갈렸다. 그래서 블렌더를 사용하며 자주 사용한 기능들을 정리하며 만들어보려한다. 흔히 집에서 볼 수 있는 냉동실의 모습을 기반으로 제작해보기로했다. 도형 만들기Shift + A면삭제Tab(에디트모드) - 삭제할면 클릭 후 X -> Face 선택 구분선 추가Ctrl+R구분선 추가 후 S를 누르면 굴곡을 주고 E를 누르면 면을 생성한다 두께 조절면을 선택한후 E를 눌러 안쪽으로 밀어도 되지만 이러면 바깥에서 보았을떄 푹 파여보인다. Object Mode -> Modifier Properties -> Add Modifier > Solidify..

https://developer.apple.com/documentation/scenekit SceneKit | Apple Developer DocumentationCreate 3D games and add 3D content to apps using high-level scene descriptions, and easily add animations, physics simulation, particle effects, and realistic physically based rendering.developer.apple.com 돌의 3D 모습을 정면에서 딴 사진이 필요했다. 그리고 Render라는 메서드를 이용하면 화면을 캡쳐할 수 있다는 것을 알았다. func captureSceneImage(scene:..

이전 포스팅 영상을 본 사람이 있다면 궁금했을 수도 있다. 3D 펫말에 어떻게 텍스트를 집어넣지??? 나도 어떻게 집어넣을까 많은 고민을 했다.. ZStack에 2D 텍스트를 기울여지게 띄워놓을까..? -> 회전했을때 텍스트가 붕 뜨게 될 것이다. 찾아보니 SceneKit에 3D Text를 출력하는 기능이 있었다. ( 아니 이런건 왜 있는거야.. ) 두가지 방법이 있었다.CATextLayer로 구현하기SCNText로 구현하기SCNText가 더 최신 기술이고 메서드 사용도 더 용이해보여 SCNText로 해결해보기로 했다. https://developer.apple.com/documentation/scenekit/scntext SCNText | Apple Developer DocumentationA geom..

https://developer.apple.com/documentation/scenekit/scnaction SCNAction | Apple Developer DocumentationA simple, reusable animation that changes attributes of any node you attach it to.developer.apple.com SceneView에서 보여주고 있는 모델 안의 노드들중 특정 노드를 클릭했을때 다른 반응을 연출해야하는 상황이 있었다. 이를 해결하기위해 두가지 방법을 생각했다.모델별 SceneView를 불라와서 ZStack으로 감싼다.하나의 SceneView를 불러오고 모델속 노드 터치를 감지한다. 1의 방법이 구현은 더 쉽겠지만 ZStack으로 감쌋을때 뒤에..

블렌더에서 디자인한 질감 및 양감을 구현하기위해 SCNLight를 사용해서 방향성조명을 추가해 명암효과를 내려 했지만 확실히 블렌더에서 디자인 된 느낌을 따라하기에는 부족함이 있었다. 그래서 나온 해결방법이 블렌더 hdri 적용이다. 우선 hdri 파일을 불러와보자. 1. hdri 파일 프로젝트에 추가하기나는 이부분이 제일 어려웠다. UIImage로 불러와야하는지 Image로 불러와야하는지 어떠한 래퍼런스도 찾아볼 수 없었다. 또 어떤 형태로 받아와야하는지도.. 그래서 로컬 파일을 불러오는 형식으로 만들어보았다. guard let hdrURL = Bundle.main.url(forResource: "lythwood_field_4k", withExtension: "hdr") else { ..

https://developer.apple.com/documentation/scenekit/scnview/2867336-defaultcameracontroller defaultCameraController | Apple Developer DocumentationThere's never been a better time to develop for Apple platforms.developer.apple.com 카메라 제어 허용더보기var allowsCameraControl: Bool A Boolean value that determines whether the user can manipulate the current point of view that is used to render the scene. 사..

https://developer.apple.com/documentation/scenekit/scnlight SCNLight | Apple Developer DocumentationA light source that can be attached to a node to illuminate the scene.developer.apple.com 예시사진 위 사진과 같이 모델 아랫 부분에 그림자가 생성되게 만들어야한다. 기존 조명중 특정한 조명에 그림자가 지게 설정해주면 된다고 한다! castsShadow를 활용해서 만들어보자. https://stackoverflow.com/questions/59818131/scenekit-and-arkit-soft-shadows-or-blurred-shadows SceneKit..