반응형
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
- segment
- react
- REST API
- webrtc
- cursor-ubuntu-installer
- typescript
- how to install cursor on ubuntu
- code editor
- multiple camera
- node
- http live streaming
- Prism.js
- jszip
- M3U8
- uint8array
- KakaoMap
- hls.js
- HLS
- three.js
- localization
- Game js
- babel
- Flutter
- Excel
- html2canvas
- swagger-typescript-api
- append row
- Redux
- Babel standalone
- uint16array
Archives
- Today
- Total
목록Raycasting (1)
Never give up
이번에는 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