HSP¥Ý¡¼¥¿¥ë
¥µ¥¤¥È¥Þ¥Ã¥× ¤ªÌ䤤¹ç¤ï¤»


HSPTV!·Ç¼¨ÈÄ


̤²ò·è ²ò·è Ää»ß ºï½üÍ×ÀÁ

2016
0131
mktHGIMG4 Æó¤Ä¤Î¥â¥Ç¥ë¤Îµ¿»÷¿Æ»Ò3²ò·è


mkt

¥ê¥ó¥¯

2016/1/31(Sun) 23:31:43|NO.74397

´Ý°ì½µ´Ö¶ì¤·¤ó¤Ç¤¤¤Þ¤¹¡£
¶µ¤¨¤Æ¤¤¤¿¤À¤­¤¿¤¤¤³¤È¤¬¤´¤¶¤¤¤Þ¤¹¡£

¿åÃæ¤ò±Ë¤°¤ªµû¤òºî¤ê¤¿¤¤¤Î¤Ç¤¹¤¬¡Ä
ʬΥ¤·¤¿Æó¤Ä¤Î¥â¥Ç¥ë
id_model //ƹÂÎ
id_model2 //Èø
¤òƱ»þ¤ËÆ°¤«¤·¤¿¤¤¤È»×¤Ã¤Æ¤¤¤Þ¤¹¡£


xx=x¼´²óž³ÑÅÙ yy=y¼´²óž³ÑÅÙ zz=z¼´²óž³ÑÅÙ setang id_model,xx,yy,zz setang id_model2,xx,yy,zz setpos id_model,x,y,z setpos id_model2,x+(-0.4f*sin(yy)),y,z+(-0.4f*cos(yy))

yy¤¬ÊѲ½¤·¤Æ¤â¤³¤ì¤Ê¤é¼«Á³¤ÊÆ°¤­¤ò¤·¤Þ¤¹¡£
¤·¤«¤·¡¢xx¤äzz¤Î¼´¤ò²óž¤µ¤»¤ë¤ÈÅöÁ³¤Î¤´¤È¤¯
Èø¤Èƹ¤¬Ê¬Î¥¤·¤Þ¤¹¡£¤½¤³¤Ç¤¤¤í¤¤¤í¤Ê¥µ¥¤¥È¤äËܤò¸«¤Ê¤¬¤é
¼°¤òÁȤßΩ¤Æ¤¿¤Î¤Ç¤¹¤¬¡¢Á´¤¯»õ¤¬Î©¤Á¤Þ¤»¤ó¤Ç¤·¤¿¡Ä

¤½¤³¤Çº£¤Ç¤­¤ë¤è¤¦¤Ë¤Ê¤ê¤¿¤¤¤³¤È¤Ï
­¡´ðËÜŪ¤Ë¤ä¤ê¤¿¤¤Æ°ºî¤Ï²£¤È½Ä¤Î¤ß¤Ç
¡¡¼Ð¤á¤Ë¤·¤¿¤¯¤Ê¤¤¡£¤¿¤È¤¨¤Ðy¼´¤¬ÊѲ½¤·¤¿¤È¤­¤Ë
¡¡¤ªµû¤¬¾å²¼±¿Æ°¤Ç¤Ï¤Ê¤¯Å¾Ê¤¤·¤Æ¤·¤Þ¤¦¤Î¤òľ¤·¤¿¤¤¡Ä

­¢¾å²¼±¿Æ°¤¹¤ë¤È¤­¤Ë¡¢¤·¤Ã¤Ý¤¬Ê¬Î¥¤·¤Ê¤¤¤è¤¦¤Ë¤·¤¿¤¤¡£

¤ï¤«¤ëÊý¡¢¸æ»ØÆ¤À¤µ¤¤
¤Á¤Ê¤ß¤Ë;Ã̤ˤʤ뤫¤âÃΤì¤Þ¤»¤ó¤¬
¡¡fvdir¡¡FV,0.0f,0.0f,0.0f ¡Ä¥Ñ¥é¥á¡¼¥¿¤Î¿ô¤¬Â¿¤¹¤®¤Þ¤¹
¡¡selang id_model ¡Äʸˡ¤¬´Ö°ã¤Ã¤Æ¤¤¤Þ¤¹

¤È¤¤¤¦¥¨¥é¡¼¤¬¤½¤ì¤¾¤ì½Ð¤Æ»È¤¨¤Þ¤»¤ó¤Ç¤·¤¿¡£

¢¨¤Á¤Ê¤ß¤ËÁ°²ó¤Î¤ï¤¿¤·¤Î¼ÁÌä¤â¤Þ¤À̤²ò·è¤Ë¤·¤Æ¤¤¤Þ¤¹¤¬
¡¡¤â¤¦¾¯¤·¼è¤êÁȤó¤Ç¤À¤á¤À¤Ã¤¿¾ì¹ç¤«²ò·è¤·¤¿¾ì¹ç²ò·èºÑ¤ß¤Ë
¡¡¤·¤Þ¤¹¡£¤¤¤¯¤Ä¤â¥¹¥ì¥Ã¥É¤òΩ¤Æ¤Æ¤¹¤¤¤Þ¤»¤ó



¤³¤Îµ­»ö¤ËÊÖ¿®¤¹¤ë


²Ë¿Í

¥ê¥ó¥¯

2016/2/1(Mon) 01:13:34|NO.74398

ºÇ¿·ÈǤϻ¤Æ¤Ê¤¤¤±¤É²óž¤¬¤«¤é¤ó¤Ç¤ëÌ¿Î᤬¿§¡¹¤ª¤«¤·¤¤
getang¡¢selang¤Ï¤½¤â¤½¤âÌ¿Î᤬¸ºß¤·¤Ê¤¤¤·fvdir¤Ï¥Ñ¥é¥á¡¼¥¿°ì¤Ä¤Ç¤â¥¨¥é¡¼¤¬½Ð¤ë
¿ʬquat·Ï¤Ë°Ü¹Ô¤¹¤ë¤ó¤À¤í¤¦¤±¤É¡¢¤³¤ì¤âÆ°ºî¤¬¤ª¤«¤·¤¤¡¦¡¦¡¦


¤Ê¤Î¤Ç¼«Á°¤Çfvdir¤òºÆ¸½¤¹¤ëɬÍפ¬¤¢¤ë



²Ë¿Í

¥ê¥ó¥¯

2016/2/1(Mon) 22:01:45|NO.74408

ºÇ¿·ÈǤǤâÉÔ¶ñ¹ç¤Ï½¤Àµ¤µ¤ì¤Æ¤¤¤Ê¤¤¤è¤¦¤Ê¤Î¤ÇfvdirÌ¿Îá¤òÄɲ乤ë¥â¥¸¥å¡¼¥ë¤òºî¤Ã¤Æ¤ß¤¿
¤«¤Ê¤é¤º#include "hgimg4.as"¤Î¸å¤ËÁÞÆþ
hgimg3¤Î¤È¤Ï¾¯¤·°ã¤¤Y¼´¤òȿž¤·¤Ê¤¯¤ÆÎɤ¤


#include "hgimg4.as" #module #undef fvdir #deffunc fvdir array fv,double _vx,double _vy,double _vz dup ay,fv(1) //¼Â¿ô¤ÎÇÛÎó¤ò3²ó°Ê¾å»²¾È¤¹¤ë¤è¤êdup¤ÇÊÑ¿ô¤Ë¤·¤¿Êý¤¬¤Á¤ç¤Ã¤È¤À¤±·Ú¤¤ dup az,fv(2) vx=_vx*cos(az)-_vy*sin(az) vy=_vx*sin(az)+_vy*cos(az) vx1=vx*cos(ay)+_vz*sin(ay) vz1=-vx*sin(ay)+_vz*cos(ay) fv(1)=vy*cos(fv)-vz1*sin(fv) fv(2)=vy*sin(fv)+vz1*cos(fv) fv=vx1 return #global gpreset setcls CLSMODE_SOLID, $4040 setcolor GPOBJ_LIGHT, 1,1,1 ; ¥é¥¤¥È¥«¥é¡¼¤òÀßÄê setdir GPOBJ_LIGHT, 0.5,0.5,0.5 ; ¥¢¥ó¥Ó¥¨¥ó¥È¥«¥é¡¼¤òÀßÄê chdir dir_exe+"\\sample\\\hgimg4" gpload id_model,"res/duck" ; ¥â¥Ç¥ëÆɤ߹þ¤ß gpclone id_model(1), id_model ; ºÇ½é¤Î¥â¥Ç¥ë°Ê¹ß¤Ï¥¯¥í¡¼¥ó xx=0.0 yy=0.0 zz=0.0 setpos id_model,0,0,0 //¤ª¤Þ¤±¤Ç»Ò¤ÎÀܳ°ÌÃÖ¤ò¸åÊý¤Ë¤º¤é¤·¤Æ³ÑÅÙ¤òÊѤ¨¤ë¥µ¥ó¥×¥ë¡Ê¥ª¥¤¥é¡¼³Ñ²óž¤Ê¤Î¤ÇXZ¼´Î¾Êý²óž¤µ¤»¤ë¤È¤ª¤«¤·¤¯¤Ê¤ë¡Ë gpclone id_Parent, id_model gpclone id_Child, id_model Parent_angx=0.0 Parent_angy=0.0 Parent_angz=0.0 Child_angx=0.0 Child_angy=0.0 Child_angz=0.0 setpos id_Parent,0,-3,10 setpos GPOBJ_CAMERA,0.0,00.0,20.001 repeat stick key,15 if key&128 : end redraw 0 ; ÉÁ²è³«»Ï ; ¥«¡¼¥½¥ë¥­¡¼¤Ç¥«¥á¥é°ÌÃÖ¤òÆ°¤«¤¹ if key&1 : addpos GPOBJ_CAMERA, -1, 0 if key&4 : addpos GPOBJ_CAMERA, 1, 0 if key&8 : addpos GPOBJ_CAMERA, 0, 1 if key&2 : addpos GPOBJ_CAMERA, 0, -1 yy+0.04 xx+0.03 zz+0.01 getpos id_model,x,y,z gplookat GPOBJ_CAMERA, x,y,z ; ¥«¥á¥é¤«¤é»ØÄꤷ¤¿ºÂɸ¤ò¸«¤ë setpos id_model,x,y,z setang id_model,xx,yy,zz setang id_model(1),xx,yy,zz fvset fv,xx,yy,zz fvdir fv,-1.5, 0.0, 0.0 setpos id_model(1),x+fv,y+fv(1),z+fv(2) //¤ª¤Þ¤± Parent_angx=sin(0.02*cnt) Parent_angy+0.01 angx=Parent_angx angy=Parent_angy+sin(0.1*cnt)*0.4 angz=Parent_angz setang id_Parent,angx,angy,angz //¿Æ¤Î¸«¤¿ÌܤΥ¢¥ó¥°¥ë fvset fv,Parent_angx,Parent_angy,Parent_angz //¿Ê¤àÊý¸þ fvdir fv,0.05, 0.0, 0.0 selpos id_Parent objaddfv fv getpos id_Parent,x,y,z setpos id_Child,x,y,z Child_angy=-sin(0.1*cnt)*0.6 //»Ò¤Î³ÑÅÙ setang id_Child,angx,angy,angz //¿Æ¤Î¸«¤¿ÌܤγÑÅÙ¤ò¥»¥Ã¥È addang id_Child,Child_angx,Child_angy,Child_angz //»Ò¤Î³ÑÅÙ¤òÄɲà fvset fv,angx,angy,angz //¿Æ¤Î¸«¤¿ÌܤΥ¢¥ó¥°¥ë¤«¤é¸åÊý¤Î¥í¡¼¥«¥ëºÂɸ fvdir fv,-0.8, 0.0, 0.0 fvset cfv,Child_angx,Child_angy,Child_angz //getang¤¬Ìµ¤¤¤Î¤Ç¡¦¡¦¡¦ fvadd cfv,angx,angy,angz fvdir cfv,-0.8, 0.0, 0.0 fvadd fv,cfv,cfv(1),cfv(2) //¸åÊý¤Î¥í¡¼¥«¥ëºÂɸ¤Ë²Ã»» selpos id_Child objaddfv fv gpdraw ; ¥·¡¼¥ó¤ÎÉÁ²è redraw 1 ; ÉÁ²è½ªÎ» await 1000/60 ; ÂÔ¤Á»þ´Ö loop



mkt

¥ê¥ó¥¯

2016/2/1(Mon) 22:31:14|NO.74409

>²Ë¿Í¤µ¤Þ
´¶Æ°¤Î¤¢¤Þ¤ê¸ÀÍÕ¤¬½Ð¤Þ¤»¤ó¡£
¤ª¤Þ¤±¤â¹ë²Ú¤¹¤®¤Ê¤¯¤é¤¤¤Ç¤¹¡ª¡ª
¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤·¤¿¡£
°ìÆɤǤϥâ¥Î¤Ë¤Ç¤­¤Æ¤¤¤Þ¤»¤ó¤¬¡¢¤³¤Î¥¹¥¯¥ê¥×¥È¤ò
¤â¤È¤Ë¹Í¤¨¤µ¤»¤Æ¤¤¤¿¤À¤­¤Þ¤¹¡ª

º£Ìë¤Ï̲¤ì¤Þ¤¹¡ª

¤¹¤´¡¼¡ª



ONION software Copyright 1997-2023(c) All rights reserved.