ã¯ããã«
Unity ã§ä½ã£ãã¢ããªãããã¸ã§ã¯ã¿ã使ã£ã¦æå½±ãããéã以前㯠Syphon ã使ã£ã¦ MadMapper ã«éã£ãããã¦ãã¾ããããåç´ã« 1 æã®ç»ã対象ã¨ãªãç©å½¢ã®ç©ä½ã«æ ãããã ãã®æãå¤ãããã¬ã¼ã ã®è»¢éã®é 延ããã£ãããè¤æ°ã¢ããªãç«ã¡ä¸ããªãã¨ãªããªããªã©é¢åã ã£ããããç°¡åã«ãã¥ã¼ãã¼ããå¤å½¢ã§ããã ãã®ã¤ã¡ã¼ã¸ã¨ãã§ã¯ããä½ã£ã¦ã¿ã¾ããã
ãã¢
ãã¦ã³ãã¼ã
解説
ã·ã§ã¼ãåã«é ç¹ãåããã ãã ã¨ããããã®ä¸è§å½¢ãå¤å½¢ãããã ãã§ä¸æãåãã¾ãããæ¬ã¢ã»ããã§ã¯ãé ç¹ã·ã§ã¼ãã§ã®å¤å½¢ã ãã§ãªãããã©ã°ã¡ã³ãã·ã§ã¼ãå´ã§ãé©å㪠UV 座æ¨ãå¼ã£å¼µã£ã¦ããããããã¢ã°ã©ãã£å¤æã使ã£ã¦ãã¾ãã
å
¥å座æ¨ã (0.0, 0.0)
ã(1.0, 0.0)
ã(1.0, 1.0)
ã(0.0, 1.0)
ã¨åºæ¥ããã 8 次å
é£ç«ä¸æ¬¡æ¹ç¨å¼ã¯å²ãã¨ç¶ºéºã«è§£ããã¨ãåºæ¥ã¾ããèå³ãããæ¹ã¯ã³ã¼ããè¦ãã¦ã¿ã¦ä¸ããã
ãã®ä» API ç
å¤å½¢å¾ã®ç¹ã«å¤æãããå ´åããéã«ã¯ãªãã¯ç¹ãå¤å½¢åã«å¤æãããå ´åã¯æ¬¡ã® API ã使ã£ã¦æ±ãããã¨ãåºæ¥ã¾ãï¼
Vector2 GetHomographyPosition(Vector2 pos)
Vector2 GetInverseHomographyPosition(Vector2 pos)
ãããã«
è¤æ°ã«ã¡ã©å¯¾å¿ãªã©ããè¦æãããã¾ãããã©ãã©ããé£çµ¡ä¸ããã