2022-01-01ãã1ã¶æéã®è¨äºä¸è¦§
å æ¥ãèªåã§APIãç¨æãã¦Shopifyã®ããã°è¨äºä¸è¦§ãåå¾ãã¾ããããååãååä¸è¦§ãåå¾ããéã«GraphQLã®ä½¿ããããå¦ãã ã®ã§ãGraphQLã§æ¸ãæãã¦ã¿ã¾ããblog.kimizuka.org blog.kimizuka.org æé ãã©ã¤ãã¼ãã¢ããªãç¨æãã¦ãã¹ãã¢ããã³ãAPâ¦
ååã¯ãjs-buy-sdkï¼shopify-buyï¼ã使ã£ã¦ååä¸è¦§ãåå¾ãã¾ããããä»åã¯GraphQLã§åå¾ãã¾ãã æ¹æ³ã¯ããããããã®ã§ãããGraphQLãæ±ããããããããã«Apollo Clientã使ã£ã¦å®è£ ãã¾ãããblog.kimizuka.orgå人çã«ã¯çµæãåãã§ããã°ä½¿ãæ £â¦
æé ãã©ã¤ãã¼ãã¢ããªãç¨æãã¦ãã¹ãã¢ããã³ãAPIã®ã¢ã¯ã»ã¹ãã¼ã¯ã³ãåå¾ãã help.shopify.comãã¡ãã®æé ã«å¾ã£ã¦ã ãã©ã¤ãã¼ãã¢ããªãç¨æãã ã¹ãã¢ããã³ãAPIãæå¹ã«ãã ååãããªã¨ã¼ã·ã§ã³ãã³ã¬ã¯ã·ã§ã³ãèªã¿è¾¼ãã®æ¨©éãä»ä¸ããâ¦
ãªã«ãæ ¹æ¬çãªã¨ãããééãã¦ããæ°ããã¦ãªããªãã®ã§ãããå¼·å¼ãªææ³ã§Shopifyã®ããã°è¨äºä¸è¦§ãåå¾ã§ããã®ã§ã¡ã¢ãæ®ãã¦ããã¾ãã çµè« src/pages/api/getArticles.js import axios from 'axios'; export default async function getArticleListâ¦
ãã¤ã¦ã¯èªåã§microCMSã¨Next.jsãçµã¿åããã¦ãã¾ããããSDKãã§ããã¨ã®ãã¨ã ã£ãã®ã§ãã¤ãã£ã¦ã¿ã¾ãããNuxt.jsç¨ã®SDKãGatsbyJSç¨ã®SDKã¨ãã¬ã¼ã ã¯ã¼ã¯å°ç¨ã§ç¨æããã¦ãããã®ãããã¾ãããNext.jsã¯å°ç¨ã®ãã®ãç¡ãã®ã§ãJavascriptï¼Node.â¦
DEMO Oculus Questç¨ DEMO ð https://kimizuka.org/mock/r127/vr-collision Oculus Riftç¨ DEMO ð https://kimizuka.org/mock/r111/vr-collisionâ» r111ã¯ã³ã³ããã¼ã©ã¼ã®ä½ç½®ã«Cubeã表示ããã¾ã 解説 ãã¡ãã®è¨äºã§ä½ã£ãã³ã¼ããæ¹é ãã¦ãVRã³ã³ããã¼ã©â¦
DEMO https://kimizuka.org/mock/collisionç»é¢ãã¯ãªãã¯ããã¨ããªãã¸ã§ã¯ããè¿ã¥ãã¦è¡ã£ã¦æ¥è§¦ããã¨ãHIT!ãã¨è¡¨ç¤ºããã¾ãã å®è£ æ¹é è²ã æ¹æ³ã¯ããã¨æãã®ã§ãããä»å㯠Sphere.intersectsSphere ã使ã£ã¦çä½ã¨äº¤å·®ãã¦ããçä½ãããããå¤å®â¦
çµè« DEMO ãã¨ã®çºç«¯ ã½ã¼ã¹ã³ã¼ãã®ç¢ºèª WebVR API 㨠WebXR Device API WebVR APIã«å¯¾å¿ãã¦ããThree.jsã®ãã¼ã¸ã§ã³ãæ¢ã r111 r127 çµè« Three.js(r111)ã使ãã¾ããããgithub.comãã ããr111ã«ã¯ XRControllerModelFactory.js ãç¡ãã®ã§ã³ã³ããâ¦
DEMO https://kimizuka.org/mock/click Three.jsã§ãªãã¸ã§ã¯ããã¯ãªãã¯ããããã¨ãå¤å®ããããªã¨æãããããã調ã¹ã¦ã¿ãã®ã§ãããå ¬å¼ããã¥ã¡ã³ãã«ç´¹ä»ããã¦ããããæ¹ã§åé¡ãªã対å¿ã§ãã¾ãããthreejs.org ã½ã¼ã¹ã³ã¼ãæç² window.addEventLiâ¦
Three.jsã§VRã³ã³ãã³ããä½ãéãconsole.logã§åºåããå¤ã確èªããã®ãé¢åãªã®ã§ããã¤ã¦ä½æããåçã«ããã¹ããåºåã§ãããã¯ã¹ãã£ãåãåºãã¦ããã°ã®åºåã«ç¹åããããã®ãã¤ããã¾ãããblog.kimizuka.orgãã¡ãã®è¨äºå ã«åºã¦ããDEMOã§ãã¡â¦
ãã¨ã®çºç«¯ TypeScript + Three.jsï¼r127ï¼ã§ã®éçºã§ã const camera = new THREE.PerspectiveCamera(); camera.updateProjectionMatrix(); ã¨ããã³ã¼ããæ¸ããã¨ããã Property 'updateProjectionMatrix' does not exist on type 'PerspectiveCamera'.tâ¦
ãã¼ã«ã«ã«ã¦ã§ããµã¼ããç«ã¦ã¦ãå¥ã®ããã¤ã¹ããã¢ã¯ã»ã¹ããéããã¼ã«ã«IPã調ã¹ãã®ãé¢åãªã®ã§ã常æ表示ããã¦ãããããªãã¾ãã ãããªã¨ããããã¾ã§ã¯ IP in menubar ã¨ããã¢ããªã使ã£ã¦ãMacã®ã¡ãã¥ã¼ãã¼ã«IPã¢ãã¬ã¹ã表示ãã¦ããã®ã§ãâ¦