반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- uint16array
- Game js
- web track
- swagger-typescript-api
- KakaoMap
- node
- methodChannel
- Three js
- uint8array
- Completer
- userevent_tracker
- jszip
- Babel standalone
- androidId
- webrtc
- REST API
- Three-fiber
- typescript
- Image Resize typescript
- identifierForVender
- Redux
- react
- RouteObserver
- code editor
- Flutter
- three.js
- Raycasting
- babel
- Excel
- Prism.js
Archives
- Today
- Total
목록Raycasting (1)
Never give up
Three.js - mouse event(feat. Raycaster)
이번에는 mesh에 이벤트를 넣어주는 작업을 해봤는데 html에서 사용하던 onClick이나 mouseEnter 같은 이벤트를 따로 걸어줄 수 없어서 eventListener를 걸어서 사용했고, 3d에서는 조금 더 복잡한 방법으로 사물의 위치를 추적해야되는거 같습니다 그래서 raycaster를 사용할텐데 자세한 내용은 아래 링크를 참고해주세요(링크 : https://threejs.org/docs/#api/en/core/Raycaster) 화면부분은 간단한 div에 ref만 할당하는 부분으로 동일합니다 use_raycasting.tsimport { useEffect, useRef } from "react";import * as Three from "three";const useRaycasting = () ..
Three js
2023. 4. 28. 22:18