ããã¯è§£æ±ºçã§ã¯ãããŸããïŒ äžç·ã«èããŠã¿ãŸãããïŒ
ç§ãã¡ã¯çŸå®çãªãã€ã¢ã¹ã§çŸå®çã§ãããOpenGLããŒãžã§ã³3.3ããã¹ãã®å¯Ÿè±¡ãšããŸãã ãã®ããŒãžã§ã³ãããåéçºè ã¯ãããªãã¯ã¹æäœã¢ãžã¥ãŒã«ãåå¥ã«å®è£ ããå¿ èŠããããŸãã çŽ æŽãããããããç§ãã¡ã«å¿ èŠãªãã®ã§ãã å°é£ãªã¿ã¹ã¯ã®å解ãå®è¡ããäž»èŠãªãã€ã³ãã匷調ããŸãã OpenGLä»æ§ããã®ããã€ãã®äºå®ïŒ
- è¡åã¯åã«æ ŒçŽãããŸãïŒåã¡ãžã£ãŒïŒã
- å次座æš
- å·Šæ座æšç³»ã®æšæºã¯ãªããã³ã°ããªã¥ãŒã ïŒCVVïŒã
è¡åãä¿åããã«ã¯ãååªå ãšè¡åªå ã®2ã€ã®æ¹æ³ããããŸãã ç·åœ¢ä»£æ°ã«é¢ããè¬çŸ©ã§ã¯ãè¡åªå æ¹åŒã䜿çšãããŸãã æŠããŠãåçŽãªè»¢çœ®ã«ãã£ãŠãããªãã¯ã¹ã¯å¥ã®ã¿ã€ãã®è¡šçŸã«åžžã«å€æã§ãããããã¡ã¢ãªå ã®ãããªãã¯ã¹ã®è¡šçŸã¯éèŠã§ã¯ãããŸããã ãããŠãéãããªãããããã®åŸã®ãã¹ãŠã®èšç®ã§ã¯ãå€å žçãªè¡åªå è¡åã䜿çšããŸãã OpenGLãããã°ã©ãã³ã°ãããšããå€å žçãªè¡åªå ã®èšç®ãç¶æããªãããè¡åã®è»¢çœ®ãæåŠã§ããå°ããªããªãã¯ããããŸãã ãããªãã¯ã¹ã¯ãã·ã§ãŒããŒããã°ã©ã ã«ãã®ãŸãŸè»¢éããå¿ èŠããããŸããã·ã§ãŒããŒã§ã¯ããã¯ãã«ã«ãããªãã¯ã¹ãæããã®ã§ã¯ãªãããããªãã¯ã¹ã«ãã¯ãã«ãæããŸãã
å皮座æšã¯ãéåžžã®ãã«ã«ã座æšãå皮座æšã«ããŸãã¯ãã®éã«å€æããããã®ããã€ãã®åçŽãªã«ãŒã«ãåããéåžžã«ããªãããŒãªã·ã¹ãã ã§ã¯ãããŸããã å次座æšã¯ã次å [1x4]ã®è¡è¡åã§ãã ãã«ã«ã座æšãå次座æšã«å€æããã«ã¯ã x ã y ã zã«å®æ°wãæããå¿ èŠããããŸãïŒ0ãé€ãïŒã 次ã«ãæåã®3ã€ã®ã³ã³ããŒãã³ãã«çµæãæžã蟌ãå¿ èŠããããæåŸã®ã³ã³ããŒãã³ãã¯ä¿æ°wãšçãããªããŸãã èšãæããã°ïŒ
-ãã«ã«ã座æš
wã¯0ã«çãããªãå®æ°ã§ã
-å次座æš
ã¡ãã£ãšããããªãã¯ïŒ wã1ã«çããå Žåãå€æã«å¿ èŠãªã®ã¯ãã³ã³ããŒãã³ãx ã y ãããã³zã転éãããŠããããæåŸã®ã³ã³ããŒãã³ãã«å²ãåœãŠãããšã ãã§ãã ã€ãŸããè¡åã®è¡ãååŸããŸãã
wãšããŠãŒãã«ã€ããŠã®ããã€ãã®åèªã å次座æšã®èŠ³ç¹ããã¯ãããã¯ãŸã£ããåãå ¥ããããŸãã å皮座æšã«ãããç¹ãšãã¯ãã«ãåºå¥ã§ããŸãã ãã«ã«ã座æšç³»ã§ã¯ããã®ãããªåé¢ã¯äžå¯èœã§ãã
ïŒ xãyãz ïŒããã«ã«ã座æšã§ããç¹ã§ã
ãã¯ãã«ã§ããïŒ xãyãz ïŒã¯ååŸãã¯ãã«ã§ã
å次座æšãããã«ã«ã座æšãžã®é ç¹ã®éå€æã¯ã次ã®ããã«å®è¡ãããŸãã è¡è¡åã®ãã¹ãŠã®ã³ã³ããŒãã³ãã¯ãæåŸã®ã³ã³ããŒãã³ãã«åå²ããå¿ èŠããããŸãã èšãæããã°ïŒ
-å次座æš
-ãã«ã«ã座æš
ç¥ã£ãŠããã¹ãäž»ãªããšã¯ããã¹ãŠã®OpenGLã¯ãªããã³ã°ããã³ã©ã¹ã¿ã©ã€ãºã¢ã«ãŽãªãºã ããã«ã«ã座æšã§æ©èœããããšã§ããããã以åã¯ããã¹ãŠã®å€æãåäžãªåº§æšã§å®è¡ãããŸãã å次座æšãããã«ã«ã座æšãžã®ç§»è¡ã¯ãããŒããŠã§ã¢ã§è¡ãããŸãã
Canonicalãã¥ãŒããªã¥ãŒã ïŒCVVïŒã¯ãOpenGLã®æ°å°ãªãããã¥ã¡ã³ãåãããéšåã®1ã€ã§ãã å³ãããããããã« 1 CVVã¯ãåç¹ãäžå¿ãšãããšããžã®é·ãã2ã«çãã軞æ¹åã«æŽåããç«æ¹äœã§ãã CVVãšãªã¢ã«åé¡ããããã®ã¯ãã¹ãŠã©ã¹ã¿ã©ã€ãºã®å¯Ÿè±¡ãšãªããCVVã®å€åŽã«ãããã®ã¯ãã¹ãŠç¡èŠãããŸãã CVVãéšåçã«è¶ ãããã®ã¯ãã¹ãŠãã¯ãªããã³ã°ã¢ã«ãŽãªãºã ã®å¯Ÿè±¡ãšãªããŸãã ç¥ã£ãŠããã¹ãæãéèŠãªããšã¯ãCVV座æšç³»ãå·Šå©ãã§ããããšã§ãïŒ
å³ 1. Canonical OpenGL Clipping VolumeïŒCVVïŒ
å·ŠåŽã®åº§æšç³»ïŒ OpenGL 1.0ã®ä»æ§ã§ã䜿çšãããŠãã座æšç³»ãå³å©ãã§ããããšãæ確ã«ç€ºãããŠããã®ã¯ã©ãã§ããïŒ æ£ããããŸãããã
å³ 2.座æšç³»
å³ãããããããã« 2ã€ã®åº§æšç³»ã¯ã Z軞ã®æ¹åã®ã¿ãç°ãªããŸãã OpenGL 1.0ã¯å®éã«å³å©ãã®ãŠãŒã¶ãŒåº§æšç³»ã䜿çšããŸãã ãã ããCVV座æšç³»ãšãŠãŒã¶ãŒåº§æšç³»ã¯ãŸã£ããç°ãªããã®ã§ãã ããã«ãããŒãžã§ã³3.3以éã§ã¯ãæšæºã®OpenGL座æšç³»ã®ãããªãã®ã¯ãªããªããŸããã åè¿°ã®ããã«ãããã°ã©ããŒèªèº«ããããªãã¯ã¹æäœã¢ãžã¥ãŒã«ãå®è£ ããŸãã å転è¡åã®åœ¢æãå°åœ±è¡åã®åœ¢æãéè¡åã®æ€çŽ¢ãè¡åä¹ç®-ããã¯ãè¡åæŒç®ã¢ãžã¥ãŒã«ã«å«ãŸããæŒç®ã®æå°ã»ããã§ãã 2ã€ã®è«ççãªè³ªåããããŸãã å¯èŠæ§ã®ç¯å²ããšããžã®é·ãã2ã®ç«æ¹äœã§ããå Žåãäœåãã®ä»»æã®ãŠãããã®ã·ãŒã³ãç»é¢ã«è¡šç€ºãããã®ã¯ãªãã§ããïŒ ãŠãŒã¶ãŒåº§æšç³»ã¯ã©ã®æç¹ã§CVV座æšç³»ã«å€æãããŸãã å°åœ±è¡åã¯ããããã®åé¡ã«å¯ŸåŠããæ¬è³ªã§ãã
äžèšã®äž»ãªèãæ¹ã¯ãéçºè èªèº«ããŠãŒã¶ãŒåº§æšç³»ã®ã¿ã€ããèªç±ã«éžæã§ããæ圱è¡åãæ£ããèšè¿°ããå¿ èŠããããšããããšã§ãã ããã§OpenGLã®äºå®ãçµããããã¹ãŠããŸãšããæãæ¥ãŸããã
æãåºç¯ã§ç解ãé£ãããããªãã¯ã¹ã®1ã€ã¯ãéèŠå€æã®ãããªãã¯ã¹ã§ãã ããã§ã¯ãCVVãšãŠãŒã¶ãŒåº§æšç³»ã«ã©ã®ããã«é¢ä¿ããŠããŸããïŒ èŠ³æž¬è ãŸã§ã®è·é¢ãé·ããªããšãªããžã§ã¯ããå°ãããªãã®ã¯ãªãã§ããïŒ ãªããžã§ã¯ããè·é¢ã®å¢å ãšãšãã«æžå°ããçç±ãç解ããããã«ã3次å ã¢ãã«ã®ãããªãã¯ã¹å€æã段éçã«èŠãŠã¿ãŸãããã 3次å ã¢ãã«ããäºãã«å®å šã«ç¬ç«ããŠè¡åå€æãè¡ãé ç¹ã®æéãªã¹ãã§æ§æãããŠããããšã¯åšç¥ã®äºå®ã§ãã 2次å ã¢ãã¿ãŒç»é¢äžã®3次å é ç¹ã®åº§æšã決å®ããã«ã¯ã以äžãè¡ãå¿ èŠããããŸãã
- ãã«ã«ã座æšãå次座æšã«å€æããŸãã
- å次座æšã«ã¢ãã«è¡åãä¹ç®ããŸãã
- çµæã«çš®ãããªãã¯ã¹ãæããŸãã
- çµæã«æ圱è¡åãä¹ç®ããŸãã
- çµæãå次座æšãããã«ã«ã座æšã«è»¢éããŸãã
ãã«ã«ã座æšã®å次座æšãžã®å€æã«ã€ããŠã¯ãåã«èª¬æããŸããã ã¢ãã«è¡åã®å¹ŸäœåŠçãªæå³ã¯ãã¢ãã«ãããŒã«ã«åº§æšç³»ããã°ããŒãã«åº§æšç³»ã«å€æããããšã§ãã ãŸãã¯ã圌ããèšãããã«ãã¢ãã«ç©ºéããããŒã¯ãã¯ãŒã«ã空éã«æã¡èŸŒãããšã ãã¡ã€ã«ããããŒãããã3次å ãªããžã§ã¯ããã¢ãã«ç©ºéã«ããããã®åº§æšããªããžã§ã¯ãèªäœãåºæºã«ããŠæž¬å®ãããŠãããšããŸãããã 次ã«ãã¢ãã«ãããªãã¯ã¹ã䜿çšããŠãã¢ãã«ã®é 眮ãã¹ã±ãŒãªã³ã°ãå転ãè¡ããŸãã ãã®çµæã3次å ã¢ãã«ã®ãã¹ãŠã®é ç¹ã¯ã3次å ã·ãŒã³ã®å®éã®å次座æšãåãåããŸãã ã¯ãŒã«ã空éã«çžå¯Ÿçãªã¢ãã«ç©ºéã¯ããŒã«ã«ã§ãã 座æšã¯ãã¢ãã«ç©ºéããã¯ãŒã«ã空éã«ïŒããŒã«ã«ããã°ããŒãã«ã«ïŒè»¢éãããŸãã ãã®ããã«ãã¢ãã«è¡åã䜿çšãããŸãã
次ã«ã¹ããã3ã«é²ã¿ãŸãã ããã§çš®ç©ºéãåãå§ããŸãã ãã®ç©ºéã§ã¯ã座æšã¯èŠ³æž¬è ã®äœçœ®ãšåããåºæºã«ããŠããŸãã§äžçã®äžå¿ã§ãããã®ããã«æž¬å®ãããŸãã ãã¥ãŒç©ºéã¯ã¯ãŒã«ã空éã«å¯ŸããŠããŒã«ã«ã§ããããã座æšãå ¥åããå¿ èŠããããŸãïŒåã®äŸã®ããã«äœæããªãã§ãã ããïŒã çŽæ¥ãããªãã¯ã¹å€æã¯ã空éãã座æšãåãåºããŸãã éã«ãããããå ¥ããã«ã¯ããããªãã¯ã¹å€æãéã«ããå¿ èŠããããŸãããããã£ãŠãçš®å€æã¯éãããªãã¯ã¹ã«ãã£ãŠèšè¿°ãããŸãã ãã®éè¡åãååŸããæ¹æ³ã¯ïŒ æåã«ã芳枬è ã®çŽæ¥è¡åãååŸããŸãã ãªãã¶ãŒããŒã®ç¹åŸŽã¯äœã§ããïŒ èŠ³å¯è ã¯ãèªåããã座æšãšãã¥ãŒã®æ¹åãã¯ãã«ã«ãã£ãŠèšè¿°ãããŸãã 芳枬è ã¯åžžã«èªåã®ããŒã«ã«Z軞ã®æ¹åãèŠãŸãã ãªãã¶ãŒããŒã¯ã¹ããŒãžãåãåã£ãŠã¿ãŒã³ã§ããŸãã å€ãã®ç¹ã§ãããã¯ã¢ãã«è¡åã®æå³ã«äŒŒãŠããŸãã æŠããŠããã®ãšããã§ãã ãã ãããªãã¶ãŒããŒã«ãšã£ãŠãã¹ã±ãŒãªã³ã°æäœã¯ç¡æå³ã§ãããããã£ãŠããªãã¶ãŒããŒã®ã¢ãã«è¡åãš3次å ãªããžã§ã¯ãã®ã¢ãã«è¡åã®éã«çå·ã眮ãããšã¯ã§ããŸããã ãªãã¶ãŒããŒã®ã¢ãã«è¡åã¯ãç®çã®çŽæ¥è¡åã§ãã ãã®è¡åãå転ãããšãçš®è¡åãåŸãããŸãã å®éã«ã¯ãããã¯ãã°ããŒãã«ãªå次座æšã®ãã¹ãŠã®é ç¹ãã芳枬è ã«é¢é£ããæ°ããå次座æšãåãåãããšãæå³ããŸãã ãããã£ãŠã芳枬è ãç¹å®ã®é ç¹ãèŠãå Žåã皮空éã«ããããã®é ç¹ã®å次座æšzã®å€ã¯ç¢ºå®ã«æ£ã®æ°ã«ãªããŸãã é ç¹ã芳枬è ã®èåŸã«ããå Žåã皮空éã§ã®ãã®åäžåº§æšzã®å€ã¯ééããªãè² ã®æ°ã«ãªããŸãã
ã¹ããã4ã¯æãèå³æ·±ãã¹ãããã§ãã åã®ã¹ãããã¯æå³çã«è©³çŽ°ã«æ€èšãããŠãããããèªè ã¯ç¬¬4ã¹ãããã®ãã¹ãŠã®ãªãã©ã³ãã®å šäœåãææ¡ã§ããŸããã 4çªç®ã®ã¹ãããã§ã¯ãå次座æšããã¥ãŒããŒãããCVV空éã«ç§»åããŸãã ç¹°ãè¿ããŸãããæœåšçã«èŠãããã¹ãŠã®é ç¹ãå次座æšzã®æ£ã®å€ãæã€ãšããäºå®ã匷調ãããŸãã
次ã®åœ¢åŒã®è¡åãèããŸãïŒ
ãããŠã芳枬è ã®å次空éå ã®ç¹ïŒ
å質ãªåº§æšã«æ€èšäžã®è¡åãæããŸãïŒ
çµæã®å次座æšããã«ã«ã座æšã«å€æããŸãã
ãã¥ãŒããŒãã«2ã€ã®ãã€ã³ããããã x座æšãšy座æšãåãã§ã z座æšãç°ãªããšããŸãã ã€ãŸãããã€ã³ãã®1ã€ãä»ã®ãã€ã³ãã®åŸã«é 眮ãããŸãã é è¿æ³ã®æªã¿ã®ããã芳å¯è ã¯äž¡æ¹ã®ç¹ãèŠãå¿ èŠããããŸãã å®éã z座æšã«ããé€ç®ã«ãããåç¹ãžã®å§çž®ãçºçããããšãåŒããããããŸãã zå€ã倧ããã»ã©ïŒãã€ã³ãã芳枬è ããé ãã»ã©ïŒãå§çž®ã匷ããªããŸãã é è¿æ³ã®å¹æã«ã€ããŠèª¬æããŸãã
OpenGLä»æ§ã§ã¯ãã¯ãªããã³ã°ããã³ã©ã¹ã¿ã©ã€ãºæäœã¯ãã«ã«ã座æšã§å®è¡ãããå皮座æšããã«ã«ã座æšã«å€æããããã»ã¹ã¯èªåçã«è¡ãããŸãã
ãããªãã¯ã¹ïŒ1ïŒã¯ããããªãã¯ã¹éèŠæ圱ã®ãã³ãã¬ãŒãã§ãã åè¿°ã®ããã«ãæ圱ãããªãã¯ã¹ã¿ã¹ã¯ã¯2ã€ã®ãã€ã³ãã§æ§æãããŸãããŠãŒã¶ãŒåº§æšç³»ã®èšå®ïŒå·ŠåŽãŸãã¯å³åŽïŒã芳å¯è ã®å¯èŠæ§ã®CVVãžã®è»¢éã§ãã å·Šå©ãã®ãŠãŒã¶ãŒåº§æšç³»ã®éèŠè¡åãå°ãåºããŸãã
æ圱è¡åã¯ã4ã€ã®ãã©ã¡ãŒã¿ãŒã䜿çšããŠèª¬æã§ããŸãïŒå³3ïŒã
- ã©ãžã¢ã³åäœã®èŠéè§ïŒ fovy ïŒ;
- ã¢ã¹ãã¯ãæ¯
- è¿ãã®ã¯ãªããã³ã°å¹³é¢ãŸã§ã®è·é¢ïŒ n ïŒ;
- ãã¡ãŒã¯ãªããã³ã°ãã¬ãŒã³ãŸã§ã®è·é¢ïŒ f ïŒã
å³ 3.å°æ¥ã®ç¯å²
ææãªå¯èŠæ§ããªã¥ãŒã ã®æ£é¢ã«ãããªãé¢ãžã®èŠ³æž¬è 空éã®ç¹ã®æ圱ãæ€èšããŠãã ããã ããããããããããã«ãå³ å³ïŒã¯åŽé¢å³ã§ããã ãŸãããŠãŒã¶ãŒåº§æšç³»ã¯CVV座æšç³»ãšäžèŽããããšã«æ³šæããŠãã ãããã€ãŸããå·ŠåŽã®åº§æšç³»ã¯ã©ãã§ã䜿çšãããŸãã
å³ 4.ä»»æã®ç¹ãæ圱ãã
ãã®ãããªäžè§åœ¢ã®ããããã£ã«åºã¥ããŠã次ã®çåŒãçã«ãªããŸãã
yêããã³xêãè¡šçŸããŸãã
ååãšããŠãæ圱ç¹ã®åº§æšãååŸããã«ã¯åŒïŒ2ïŒã§ååã§ãã ãã ãã3次å ãªããžã§ã¯ããæ£ããã·ãŒã«ãããã«ã¯ãåãã©ã°ã¡ã³ãã®æ·±ããç¥ãå¿ èŠããããŸãã ã€ãŸãã zã³ã³ããŒãã³ãã®å€ãä¿åããå¿ èŠããããŸãã ãã®å€ã¯ãOpenGL深床ãã¹ãã§äœ¿çšãããŸãã å³ å³ 3ã¯ã zêã®å€ããã©ã°ã¡ã³ãã®æ·±ããšããŠé©åã§ã¯ãªãããšã瀺ããŠããŸãã ãã㯠ããã€ã³ãã®ãã¹ãŠã®æ圱ãzêã®åãå€ãæã€ããšãã§ããããã§ã ã ãã®ç¶æ³ããæãåºãæ¹æ³ã¯ãããããç䌌深床ã®äœ¿çšã§ãã
æ¬äŒŒæ·±åºŠããããã£ïŒ
- ç䌌深床ã¯ã zã®å€ã«åºã¥ããŠèšç®ãããŸãã
- ãã€ã³ãã芳枬è ã«è¿ããã°è¿ãã»ã©ãæ¬äŒŒæ·±åºŠã®éèŠæ§ã¯äœããªããŸãã
- å¯èŠæ§ããªã¥ãŒã ã®åé¢ã«ãããã¹ãŠã®ãã€ã³ãã§ã¯ãæ¬äŒŒæ·±åºŠã®å€ã¯-1ã§ãã
- å¯èŠããªã¥ãŒã ã®ã«ãããªãã®é æ¹é¢ã«ãããã¹ãŠã®ãã€ã³ãã®å Žåãç䌌深床ã®å€ã¯1ã§ãã
- å¯èŠããªã¥ãŒã å ã«ãããã¹ãŠã®ãã©ã°ã¡ã³ãã¯ãç¯å²[-1 1]ã®ç䌌深床å€ãæã¡ãŸãã
æ¬äŒŒæ·±ããèšç®ããåŒãå°ããŸãããã åºç€ãšããŠã次ã®åŒã䜿çšããŸãã
ä¿æ°aããã³bãèšç®ããå¿ èŠããããŸãã ãããè¡ãããã«ãç䌌深床3ããã³4ã®ããããã£ã䜿çšããŸãã2ã€ã®æªç¥æ°ãæã€2ã€ã®æ¹çšåŒã®ã·ã¹ãã ãååŸããŸãã
ã·ã¹ãã ã®äž¡æ¹ã®éšåãè¿œå ããçµæã«ç©fnãæããŠã fãšnããŒãã«ããããšã¯ã§ããŸããã ååŸãããã®ïŒ
ãã©ã±ãããéããçšèªã䞊ã¹æ¿ããŠãå·ŠåŽã«aã®ããéšåã®ã¿ãå³åŽã«bã ããæ®ãããã«ããŸãã
ïŒ5ïŒã«ïŒ6ïŒãä»£å ¥ããŸãã åŒãåçŽãªåæ°ã«å€æããŸãã
äž¡åŽã«-2fnãä¹ç®ããŸãã ã fãšnã¯ãŒãã«ã¯ãªããŸããã åæ§ã®ãã®ãäžããçšèªã䞊ã¹æ¿ããŠbãè¡šçŸããŸãã
ïŒ7ïŒãïŒ6ïŒã«ä»£å ¥ããaãè¡šçŸããŸãã
ãããã£ãŠãã³ã³ããŒãã³ãaããã³bã¯æ¬¡ãšçãããªããŸãã
ããã§ãååŸããä¿æ°ã空çœè¡åïŒ1ïŒã«ä»£å ¥ããå質ãªèŠ³ââ枬空éã®ä»»æã®ç¹ã®z座æšã«äœãèµ·ãããã远跡ããŸãã 眮æã¯æ¬¡ã®ããã«å®è¡ãããŸãã
åæ¹ã¯ãªããã³ã°å¹³é¢ãŸã§ã®è·é¢nã2ã«çãããé æ¹ã¯ãªããã³ã°å¹³é¢ãŸã§ã®è·é¢fã10ã«çãããšããŸããåçš®ã®èŠ³æž¬ç©ºéå ã®5ã€ã®ç¹ãèããŸãã
ãã€ã³ã | äŸ¡å€ | 説æ |
---|---|---|
1 | 1 | ãã€ã³ãã¯ãå¯èŠæ§ããªã¥ãŒã ã®åé¢ã¯ãªããã³ã°ãã¬ãŒã³ã®åã«ãããŸãã ã©ã¹ã¿ã©ã€ãºãæž¡ããŸããã |
2 | 2 | ãã€ã³ãã¯ãã¯ãªããã³ã°å¯èŠããªã¥ãŒã ã®å端ã«ãããŸãã ã©ã¹ã¿ã©ã€ãºãããŠããŸãã |
3 | 5 | ãã€ã³ãã¯ãå¯èŠããªã¥ãŒã ã®åé¢ã®ã«ãããªããã§ãŒã¹ãšãã¡ãŒã«ãããªããšããžã®éã«ãããŸãã ã©ã¹ã¿ã©ã€ãºãããŠããŸãã |
4 | 10 | ãã€ã³ãã¯ãå¯èŠæ§ã®ã¯ãªããã³ã°ããªã¥ãŒã ã®å察åŽã«ãããŸãã ã©ã¹ã¿ã©ã€ãºãããŠããŸãã |
5 | 20 | ãã€ã³ãã¯ãå¯èŠæ§ã®ã¯ãªããã³ã°ããªã¥ãŒã ã®é 端ãè¶ ããŠé 眮ãããŸãã ã©ã¹ã¿ã©ã€ãºãæž¡ããŸããã |
ãã¹ãŠã®ãã€ã³ãã«è¡åïŒ8ïŒãä¹ç®ããçµæã®å次座æšããã«ã«ã座æšã«å€æããŸã ã ãããè¡ãã«ã¯ãæ°ããåçš®æåã®å€ãèšç®ããå¿ èŠããããŸã ãã㊠ã
ãã€ã³ã1ïŒ
ãã€ã³ã2ïŒ
ãã€ã³ã3ïŒ
ãã€ã³ã4ïŒ
ãã€ã³ã5ïŒ
åäžãªåº§æšã«æ³šæããŠãã ãã CVVã§çµ¶å¯Ÿã«æ£ããé 眮ãããŸããæãéèŠãªããšã¯ãæ¬äŒŒæ·±åºŠããã¹ãã®èŠä»¶ãå®å šã«æºãããããOpenGL深床ãã¹ããå¯èœã«ãªã£ãããšã§ãã
z座æšãèšç®ãã x座æšãšy座æšã«é²ã¿ãŸãããã åè¿°ã®ããã«ãå¯èŠæ§ã®èŠèŸŒã¿ç¯å²å šäœãCVVã«åãŸãå¿ èŠããããŸãã CVVãªãã®é·ãã¯2ã§ãã ãããã£ãŠãèŠéãã®ããªã¥ãŒã ã®é«ããšå¹ ã¯ã2ã€ã®ä»»æã®åäœã«å§çž®ããå¿ èŠããããŸãã
è§åºŠãšã¢ã¹ãã¯ãå€ããããŸãã ãããã®å€ã䜿çšããŠé«ããšå¹ ãè¡šçŸããŸãããã
å³ 5.å¯èŠæ§ã®ç¯å²
å³ãã 5ã¯æ¬¡ã®ããšã瀺ããŠããŸãã
ããã§ãCVG OpenGLã§åäœããã«ã¹ã¿ã å·ŠåŽåº§æšç³»ã®éèŠæ圱è¡åã®æçµãã¥ãŒãååŸã§ããŸãã
ãããè¡åã®çµè«ã§ãã
OpenGLã®äž»èŠãªã©ã€ãã«ã§ããDirectXã«ã€ããŠäžèšã DirectXã¯ãCVVã®å¯žæ³ãšäœçœ®ã®ã¿ãOpenGLãšç°ãªããŸãã DirectXã§ã¯ãCVVã¯x軞ãšy軞ã«æ²¿ã£ãé·ãã2ã«çããé·æ¹åœ¢ã®ç®±ã§ããã z軞ã«æ²¿ã£ãé·ãã¯1ã§ãã xãšyã®ç¯å²ã¯[-1 1]ã zã®ç¯å²ã¯[0 1]ã§ãã CVV座æšç³»ã«ã€ããŠã¯ãOpenGLãšåæ§ã«ãDirectXã¯å·Šæ座æšç³»ã䜿çšããŸãã
ãŠãŒã¶ãŒã®å³æ座æšç³»ã®éèŠè¡åã衚瀺ããã«ã¯ãå³ãåæç»ããå¿ èŠããããŸãã Z軞ã®æ°ããæ¹åãèæ ®ãã2ãå³3ãå³4ã ãããªãèšç®ã¯å®å šã«é¡äŒŒããŠããããµã€ã³ã«æ£ç¢ºã§ãã DirectXè¡åã®å Žåãç䌌深床3ããã³4ã®ããããã£ã¯ç¯å²[0 1]ã«å€æŽãããŸãã
ãã®ãããã¯ã§ã¯ãææãªè¡åã¯éããŠãããšèããããšãã§ããŸãã
æçšãªæç®
1. ã°ã©ãã£ãã¯ãã€ãã©ã€ã³
2. å次座æš
3. Lanterman A.ãããªã²ãŒã çšã®ãã«ãã³ã¢ããã³GPUããã°ã©ãã³ã°
4. ãªã³ããã³RW CS 543-ã³ã³ãã¥ãŒã¿ãŒã°ã©ãã£ãã¯ã¹ïŒæ圱
5. Segal M.ãAkeley K. The OpenGL Graphics SystemïŒA SpecificationïŒããŒãžã§ã³3.3ïŒã³ã¢ãããã¡ã€ã«ïŒ-2010幎3æ11æ¥ïŒ
6. Song HA OpenGLãããžã§ã¯ã·ã§ã³ãããªãã¯ã¹
7. OpenGLã·ã§ãŒãã£ã³ã°èšèªããŒãžã§ã³3.30
8. ãã¥ãŒããªã¢ã«12-éèŠæ圱
9. ã€ã°ããã³ã³A.å次座æš
10. èŠç¹å€æ