2020-12-01ãã1ã¶æéã®è¨äºä¸è¦§
ã¯ããã« A-Frameã¨ã¯ A-Frameã§ARã³ã³ãã³ããã¤ãã ãã¼ã«ã¼ãã¤ãã ãããã«ãªWebARã®ä¾ DEMO ã½ã¼ã¹ã³ã¼ã ãã¼ã«ã¼ãèªèããããã¨ãæ¤ç¥ãã DEMO ã½ã¼ã¹ã³ã¼ã ãã¼ã«ã¼ã®èªèãåãããã¨ãæ¤ç¥ãã DEMO ã½ã¼ã¹ã³ã¼ã æã£ãã㨠ãã¼ã«ã¼ã®â¦
çµè« HTML <link rel="preconnect" href="https://fonts.gstatic.com"> <link href="https://fonts.googleapis.com/css2?family=Noto+Sans+JP&display=swap" rel="stylesheet"> ãããã¯ã CSS @import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP&display=swap'); ã¨ããæãã§ãæ®éã«èªã¿è¾¼ãã ãã§OKã blog.kimizuka.org以åãé ã®ä¸â¦</link></link>
HubSpotã¨ã¯ ãã¨ã®çºç«¯ dealã¨ã¯ APIã調ã¹ã @hubspot/api-client - npmã調ã¹ã ã¡ã½ãããè¦ã¤ãã ã¡ã½ãããå©ãã¦ã¿ã ãã®ãããããããªè¨äºã«ãªãã¾ãããæªæ¥ã®èªåã®ããã«ãæ¸ãæ®ãã¦ããã¾ãã HubSpotã¨ã¯ www.hubspot.jpä¸è¨ã§è¨ãã¨ããECâ¦
ãã¼ã¸ã®ä¸é¨ãèµ·ç¹ã¨ããã¨ãã®DOMã®Y座æ¨ãç¥ãããã¨ããjQueryã使ãã®ã§ããã°ã const targetTop = $('#target').offset().top; ã¨æ¸ãã¾ãããããã ãã®ããã«jQueryãå°å ¥ããã®ã¯å¿ä½ãªãæ°ããã¦ãã¾ãã¾ãããããªã¨ãã¯ã const targetTop = doâ¦
micoCMSã使ã£ãå®è£ åºæ¬çã«ã¯å ¬å¼ã®ããã°ã®éãã«å®è£ ããã°OKã§ããhttps://microcms.io/blog/nuxt-secure-api-key/microcms.io .env API_KEY=XXXXXXXXXXXX nuxt.config.js require('dotenv').config(); const { API_KEY } = process.env; const isDeveâ¦
å·å£ããçãã®ãé£ãã§ããARçµåµèãä½ãã¾ããã pic.twitter.com/j67S3y4dOlâ åå¡å²é« (@ki_230) 2020å¹´12æ8æ¥ ãµã¨æãåºããã®ã§ããããã¡ããä½æããã¨ãããçãã®ãªãã¸ã§ã¯ããã®ãpositionããscaleããrotationããã¢ãã¡ã¼ã·ã§ã³ããã¦ãã¾â¦
ç´è¿ã®ãã¤ã¼ããé ã®ä¸ã«è¡¨ç¤ºãã帽åãä½ãã¾ããã pic.twitter.com/RwyY0JiFWiâ åå¡å²é« (@ki_230) 2020å¹´11æ13æ¥ å æ¥ã帽åã«ARãã¼ã«ã¼ãã¤ãã¦ã¿ãã®ã§ããããªããªãå¯è½æ§ãæãã¾ãã¦ãæãåã£ã¦ARãã¼ã«ã¼ä»ãã®å¸½åãä½ã£ã¦ã¿ããã¨ã«ãã¾ãâ¦
4ã¤ã®ãã¤ã³ã Blenerã§ããã¹ãå ¥åã¢ã¼ãåãæ¿ãã¯Tab æ¥æ¬èªãã©ã³ããè¨å®ããã°æ¥æ¬èªã®å ¥åãå¯è½ ä½æ ãå ¥åã§ããªãã¨ãã¯ããã¹ãã¨ãã£ã¿ããã³ããã§å ¥å objãã¡ã¤ã«ã§ããã°æ¥½ã A-Frameã§è¡¨ç¤ºã§ãã å·å£ããçãã®ãé£ãã§ããARçµåµèãä½ãâ¦
以åThree.jsä¸ã§ä½ã£ããã¡ãã®ã¢ãã«ãBlenderã§ã¢ããªã³ã°ãã¦3Dããªã³ã¿ã§ããªã³ããã¦ã¿ã¾ããã See the Pen CubeMan by kimmy (@kimmy) on CodePen. Blender 2.8ã§ã¢ããªã³ã° è¨å®ã®å¤æ´ ã¾ãã¯ãåä½ãmmã«ããããã«ãLengthãMillimetersã«ãUnit â¦
Three.jsã§ã¬ã³ããªã³ã°ãã3Dã¢ãã«ããã»ã¬ãµã¿ã¼ã³ã®ãããªè¦ãç®ã«ããããªã¨æãããã¹ãããã»ã¹ãã·ã§ã¼ãã¼ãæ¸ãã¦ãããã§ãããCSSã«image-renderingãããã®ããããã¨ãç¥ããæ©é試ãã¦ã¿ã¾ããã developer.mozilla.org 使ãæ¹ã¯ãã®ãããç°¡â¦
以åãBlenderã§ä½ã£ãã¢ãã«ãThree.jsã§èªã¿è¾¼ãã§Oculus Questã®ãã©ã¦ã¶ã®VRã¢ã¼ãã§éè³ããã¨ããæ¤è¨¼ãããéã«ãBlenderããglbãã¡ã¤ã«ãæ¸ãåºãã¦ãThree.jsã«èªã¿ã¾ãããblog.kimizuka.orgä»åã¯ãThree.jså´ã§èªã¿è¾¼ãã glbãã¡ã¤ã«ã®ãããªã¢â¦
以åããã¯ã»ã«ãã¼ã¿ãç·¨éãããã¨ã§Canvasãã°ã¬ã¼ã¹ã±ã¼ã«ã«ãã¾ãããblog.kimizuka.orgä»å㯠CanvasRenderingContext2D.filter ãã¤ãã£ã¦ã°ã¬ã¼ã¹ã±ã¼ã«åã試ãã¾ãã const canvas = document.createElement('canvas'); const ctx = canvas.getConâ¦