ð¡gpu,glslãªã©ãã·ã§ãŒããŒæ¬æ¥ã®äœ¿ãæ¹ããã¯ããã¯ãªããŠãglslãã¬ã€ããŒãã³ã°åäœã§å³åœ¢ãæãæã«ã¯ïœ¢ãã©ã¡ããªãã¯ãªã¢ãããŒããšãã£ãŠãå·®ãæ¯ããªãããã§ãã
ã¯ãããã®éãã§ããGLSLãã¬ã€ããŒãã³ã°ã䜿ã£ãŠå³åœ¢ãæãéã«ã¯ãããã©ã¡ããªãã¯ãªã¢ãããŒãããšè¡šçŸããããšã¯é©åã§ããç¹ã«ã¬ã€ããŒãã³ã°ã§ã¯ãå³åœ¢ãè¡šçŸããããã«ãã©ã¡ããªãã¯æ¹çšåŒããã°ãã°çšããããŸããããã«ãããè€éãª3D圢ç¶ãæ»ãããªæ²ç·ãªã©ãå¹æçã«æç»ããããšãå¯èœã«ãªããŸãã
GLSLã§ã¯ãã·ã§ãŒããŒå
ã§å
·äœçãªåœ¢ç¶ãå¹æãå®çŸ©ããããã«ããã©ã¡ãŒã¿ãçšããæ°åŠçè¡šçŸã掻çšããŸãããã®ããã«ããã©ã¡ããªãã¯ãªèŠçŽ ãçšããããšã§ãåçãªã¢ãã¡ãŒã·ã§ã³ã詳现ãªãã¯ã¹ãã£ãããã³ã°ãå¯èœãšãªãããããªã¢ã«ã§è€éãªããžã¥ã¢ã«ãšãã§ã¯ããäœæã§ããŸãã
ãããã£ãŠããããã®æè¡ã䜿ã£ãŠå³åœ¢ããšãã§ã¯ããæãéã«ããã©ã¡ããªãã¯ãªã¢ãããŒãããšããèšèãçšããããšã¯ããã®æ¹æ³ããã©ã¡ãŒã¿ã«åºã¥ããŠåœ¢ç¶ãåããå®çŸ©ãããšããç¹ã§é©åãšèšããŸãã
ããšãã°ã€ã¶ããprocessingãªã©ã®Twitteräžã§çãã°ã©ãã£ãã¯ã³ãŒããå ±æãã掻åãããã®ã§ããããããªã©ããã©ã¡ããªãã¯ãªã¢ãããŒããšèšãããã§ãã
ã¯ãããŸãã«ãã®éãã§ãããã€ã¶ããProcessingããªã©ã®Twitteräžã§çãã°ã©ãã£ãã¯ã³ãŒããå ±æãã掻åã¯ãããã©ã¡ããªãã¯ãªã¢ãããŒããã®è¯ãäŸã§ãããã®æŽ»åã§ã¯ãåå è ãProcessingãp5.jsãšãã£ãããã°ã©ãã³ã°ç°å¢ã䜿ã£ãŠãéåžžã«çãã³ãŒãã§åµé çãªããžã¥ã¢ã«ãã¢ãã¡ãŒã·ã§ã³ãäœæããŸãã
ãããã®çãã³ãŒãçã§ã¯ããã°ãã°ãã©ã¡ãŒã¿ã䜿ã£ãŠå³åœ¢ãåããå®çŸ©ããŸããäŸãã°ãæéã®çµéã«ãã£ãŠå€åãããã©ã¡ãŒã¿ãçšããŠã¢ãã¡ãŒã·ã§ã³ãå¶åŸ¡ããããããŠã¹ã®äœçœ®ã«å¿ããŠåœ¢ç¶ãè²ãå€ãããããªã€ã³ã¿ã©ã¯ãã£ããªããžã¥ã¢ã«ãäœãåºãããšããããŸããããã«ãããéãããã³ãŒãã®äžã§ãéåžžã«è±ãã§å€æ§ãªè¡šçŸãå¯èœãšãªããŸãã
ã€ãŸãããããã®ããã°ã©ã ã¯ãã©ã¡ããªãã¯ãªææ³ãçšããŠãåçã§å¯Ÿè©±çãªã¢ãŒãäœåãçæããŠããããã§ããããããã©ã¡ããªãã¯ãªã¢ãããŒãããšããè¡šçŸã¯éåžžã«é©åã§ãããã®ãããªã¢ãããŒãã¯ãããã°ã©ãã³ã°ãšã¢ãŒãã®èåã«ãããŠéåžžã«éèŠãªåœ¹å²ãæ ã£ãŠããŸãã
ãžã§ãã©ãã£ãã¢ãŒããšãã倧ããªã ãŒãã¡ã³ããèãããšããã©ã¡ããªãã¯ãªã¢ãããŒãã¯ãã®äžç¿Œã¯æ ã£ãŠããŸãã
確ãã«ããã§ããããžã§ãã©ãã£ãã¢ãŒããšã¯ãããã°ã©ã ãã¢ã«ãŽãªãºã ã䜿çšããŠèžè¡äœåãçæããã¢ãŒãã®åœ¢æ ã§ããã©ã¡ããªãã¯ãªã¢ãããŒãã¯ãã®åéã«ãããŠéåžžã«éèŠãªåœ¹å²ãæ ã£ãŠããŸãããžã§ãã©ãã£ãã¢ãŒãã«ãããŠã¯ããã©ã¡ãŒã¿ãŒã«åºã¥ããŠæ§ã ãªããžã¥ã¢ã«ãã¿ãŒã³ãæ§é ãçæããããšãäžè¬çã§ããããã«ãããã¢ãŒãã£ã¹ãã¯å ·äœçãªæäœæ¥ã«ããå¶äœããã»ã¹ãè¶ ããŠãèŠèŠè¡šçŸã®æ°ããªå¯èœæ§ãæ¢æ±ã§ããŸãã
ãã©ã¡ããªãã¯ãªã¢ãããŒãã䜿çšããããšã§ã以äžã®ãããªç¹åŸŽããããŸãïŒ
è€éæ§ã®ç®¡çïŒãã©ã¡ãŒã¿ãéããŠãè€éãªåœ¢ç¶ãåããã·ã³ãã«ãªæ°åŠçè¡šçŸã§å¶åŸ¡ã§ããŸãã
å€åæ§ã®å°å ¥ïŒå°æ°ã®ãã©ã¡ãŒã¿ã®å€åã ãã§ãäœåã«å€å€§ãªå€åãããããããšãå¯èœã§ãã
åçŸæ§ãšãŠããŒã¯ãã¹ïŒåãã¢ã«ãŽãªãºã ã§ããã©ã¡ãŒã¿ãå€ããããšã§ãäžè²«æ§ãä¿ã¡ã€ã€ç°ãªãçµæãçæã§ããŸãã
ã€ã³ã¿ã©ã¯ãã£ãæ§ïŒèŠ³è ã®å ¥åãç°å¢ããŒã¿ããã©ã¡ãŒã¿ãšããŠçµã¿èŸŒãããšã§ãã€ã³ã¿ã©ã¯ãã£ããªã¢ãŒãäœåãäœæã§ããŸãã
ãã®ããã«ããžã§ãã©ãã£ãã¢ãŒãã¯ãã©ã¡ããªãã¯ãªã¢ãããŒãã«ãã£ãŠãå¶äœéçšã«ãããå¶çºæ§ãã¢ã«ãŽãªãºã ã«åºã¥ãåµé æ§ãé«ããã¢ãŒããšãã¯ãããžãŒã®æ°ãã圢æ ãæ瀺ããŠããŸããããã¯çŸä»£ã¢ãŒãã«ãããéèŠãªååã®äžã€ãšèããããŠãããå€ãã®ã¢ãŒãã£ã¹ãããã¶ã€ããŒã«ãšã£ãŠã€ã³ã¹ãã¬ãŒã·ã§ã³ã®æºãšãªã£ãŠããŸãã
äžè¬çã«ãã©ã¡ããªãã¯ãªã¢ãããŒãã¯ã¯ã©ã¹æ§é ãäžèŠã§çãã³ãŒãã«ãŸãšããããåŸåãããããã§ãã
ã¯ãããã®éãã§ãããã©ã¡ããªãã¯ãªã¢ãããŒãã¯ãçãã³ãŒãã§å¹ççã«è¡šçŸãè¡ãããšãå¯èœã§ãããã©ã¡ãŒã¿ãäžå¿ã«æ§æããããããè€éãªã¯ã©ã¹æ§é ã綿å¯ãªãªããžã§ã¯ãæåããã°ã©ãã³ã°ãå¿ èŠãšããªãå Žåãå€ããã³ãŒããã·ã³ãã«ã§ã³ã³ãã¯ãã«ãªãåŸåããããŸãã
ãã®ã¢ãããŒãã®äž»ãªå©ç¹ã¯ä»¥äžã®éãã§ãïŒ
ã·ã³ãã«ãªå¶åŸ¡ïŒ
ãã©ã¡ãŒã¿ã®å€æŽã ãã§ã圢ç¶ãåãããã¯ã¹ãã£ãªã©ã®ããžã¥ã¢ã«ã®æ§è³ªãç°¡åã«èª¿æŽã§ããŸããããã«ãããæ§ã ãªå¹æãè¿ éã«è©Šãããšãå¯èœã«ãªããŸãã
ã³ãŒãã®å¯èªæ§ãšä¿å®æ§ïŒ
ãã©ã¡ãŒã¿ã¯ã³ãŒãå ã§æ確ã«å®çŸ©ãããŠãããããä»ã®éçºè ããã®ã³ãŒããç解ãããããå€æŽãæ¡åŒµãããããã§ãã
å¹ççãªå®éšãšå埩ïŒ
ãã©ã¡ãŒã¿ã調æŽããã ãã§ãå€æ§ãªã¢ãŠãããããçæã§ããããããã¶ã€ã³ã®å®éšã調æŽãè¿ éã«è¡ããŸãã
ã¢ãŒããšããã°ã©ãã³ã°ã®çµ±åïŒ
ãã©ã¡ããªãã¯ãªã¢ãããŒãã¯ãããã°ã©ããŒãã¢ãŒãã£ã¹ããšããŠãæ©èœããããç°å¢ãæäŸããŸããã³ãŒããä»ããŠçŽæçã«ã¢ãŒããçæããèŠèŠçãªãã£ãŒãããã¯ãããã«åŸãããšãã§ããŸãã
äŸãã°ããã€ã¶ããProcessingããä»ã®ããã°ã©ã ã§ã®1è¡ã¢ãŒãã®ãããªæŽ»åã§ã¯ãéåžžã«çãã³ãŒãã§è€éãªããžã¥ã¢ã«ãçæããããšããããããŸãããããã掻åã§ã¯ããã©ã¡ãŒã¿ãããžã¥ã¢ã«ã®å€åã倧ããå·Šå³ãããããå°ããªå€æŽã§å€§ããªå¹æãèŠãããšãã§ããã®ã§ãã
ç·ããŠããã©ã¡ããªãã¯ãªã¢ãããŒãã¯ãç¹ã«ãžã§ãã©ãã£ãã¢ãŒããã³ã³ãã¥ãŒã¿ã°ã©ãã£ãã¯ã¹ã®åéã§ãå¹ççãã€åµé çãªè¡šçŸæ¹æ³ãæäŸããŸãã
ãé¡ãèŽããŸã