¤³¤ó¤Ë¤Á¤Ï¡£Drip¤Ç¤¹¡£
¥¢¥¥¢¥¥Î¥Ò¥í¥í¤µ¤ó¡ä
>> ¡ÖGPPBIND_NOSCALE¡×¤Ï²áµî¥Ð¡¼¥¸¥ç¥ó¤È¤Î¸ß´¹À¤Î¤¿¤á¤Î¤â¤Î
>¤³¤Î°ÕÌ£¤¬¤è¤¯Ê¬¤«¤ê¤Þ¤»¤ó¡£[hgimg4] ¤Î²áµî¥Ð¡¼¥¸¥ç¥ó¤È¸ß´¹¤ò¼è¤ë¤È¤¤¤¦¡¢
>¤½¤Î¤³¤È¤¬¶ñÂÎŪ¤Ë¤É¤¦¤¤¤¦¤³¤È¤ò°ÕÌ£¤·¤Æ¤¤¤ë¤Î¤«Ê¬¤«¤ê¤Þ¤»¤ó¡£
HSP3.51¤Þ¤Ç¤ÏʪÍýÆ°ºî¤¬scale¤ò¹Í褻¤º¤ËȽÄꤷ¤Æ¤¤¤¿»þÂ夬¤¢¤ê¤Þ¤¹¡£
Hgimg4ÉÕ°¥µ¥ó¥×¥ë¤Î test11.hsp ¤Î37¹ÔÌܤ¢¤¿¤ê¤Ë setscale i,2,2,2 ¤ò°ì¹ÔÄɲ䷤Ƽ¹Ԥ·¤Æ¤ß¤Þ¤¹¤ÈHSP3.6¤È3.51¤Ç¤ÎÆ°ºî¤Î°ã¤¤¤¬¤ï¤«¤ë¤«¤È»×¤¤¤Þ¤¹¡£
¤³¤ÎÉÔ¶ñ¹ç¤Î½¤Àµ¤È¤È¤â¤Ë¤«¤Ä¤Æ¥Ð¥°¤Î¸ºß¤·¤¿¥Ð¡¼¥¸¥ç¥ó¤È¸ß´¹À¤ò¼è¤ë¤¿¤á¤ËÀߤ±¤é¤ì¤¿¥Ñ¥é¥á¡¼¥¿¤¬GPPBIND_NOSCALE¤Ç¤¹¡£
»È¤¤¤è¤¦¤Ë¤è¤Ã¤Æ¤ÏǤ°Õ¤Ç¾¯¤·Êɤˤá¤ê¹þ¤ó¤Ç¸«¤¨¤ëʪÍýÆ°ºî¥â¥Ç¥ë¤ÎÀ¸À®Åù¤Ë¤â»È¤¦¤³¤È¤¬¤Ç¤¤Þ¤¹¤è¡£
¥Õ¥ê¡¼¥á¥Ã¥·¥å¤Ë´Ø¤·¤Æ¡ä
¸Ä¿ÍŪ¤Ê¸«²ò¤Ç¤¹¤¬¡¢¸½¾õ¤ÎHgimg4¤Î¥á¥Ã¥·¥å¤ÎʪÍýÆ°ºî¤Ï»ÅÍÍÄ̤ê¤ËÆ°ºî¤·¤Æ¤ª¤é¤º¡¢ËؤɻȤ¦»ö¤¬¤Ç¤¤Ê¤¤µ¤¤¬¤·¤Æ¤¤¤Þ¤¹¡£
¤Þ¤ºÄºÅÀ¤ÎÅÐÏ¿½ç½ø¤äUV¤ÎºÂɸÀâÌÀ¤¬¥Þ¥Ë¥å¥¢¥ëÄ̤ê¤Ë¤Ê¤Ã¤Æ¤¤¤Ê¤¤¤³¤È¤Ïï¤â¤¬º®Í𤹤ëÉôʬ¤«¤È»×¤¤¤Þ¤¹¡Ê¾¯¤Ê¤¯¤È¤â»Í³Ñ¥Ý¥ê¥´¥ó¤òÀ¸À®¤·¤è¤¦¤È¤·¤¿¾ì¹ç¡¢ÄºÅÀ¤ò»þ·×²ó¤ê¡Ê°¿¤¤¤ÏÈ¿»þ·×²ó¤ê¡Ë¤ËÅÐÏ¿¤¹¤ë¤³¤È¤ÏÀäÂФˤǤ¤Ê¤¤¤Ï¤º¤Ç¤¹¡Ë¤¬¡¢
Åö¤¿¤êȽÄê¤âÌÇÃã¶ìÃã¤Ç¶õÃæ¤ËÉ⤤¤¿¤êÃÏÌ̤ˤá¤ê¹þ¤ó¤À¤ê¤È¡¢¤Þ¤È¤â¤ËÆ°ºî¤·¤Æ¤¤¤Ê¤¤¤è¤¦¤Ë¸«¤¨¤Þ¤¹¡£
Ê̤Υ¹¥ì¥Ã¥É¤ÇGENKI¤µ¤ó¤âµ¤¤Å¤«¤ì¤Æ¤¤¤é¤Ã¤·¤ã¤¤¤Þ¤¹¤¬¡¢HSPÉÕ°¤Î¥Õ¥ê¡¼¥á¥Ã¥·¥å¤Î¥µ¥ó¥×¥ë¤â¸íµ¤Ë¤è¤Ã¤Æ¥á¥Ã¥·¥å¤ÎʪÍý¤¬Àµ¾ï¤ËÀßÄê¤Ç¤¤Æ¤ª¤é¤º¡¢
¤½¤â¤½¤âÆ°ºî¤Î¸«¤¿Ìܤ¬gpbox¤È²¿¤éÊѤï¤ê̵¤¤·Á¾õ¤Ç¥Æ¥¹¥È¤·¤Æ¤¤¤ë¤¿¤á¡¢¥Õ¥ê¡¼¥á¥Ã¥·¥å¤È¤Î°ã¤¤¤¬Á´¤¯¤ï¤«¤é¤Ê¤¤¤Î¤âÌäÂê¤Ë»×¤¤¤Þ¤¹¡£
//¥Õ¥ê¡¼¥á¥Ã¥·¥å¤ÎʪÍýÆ°ºî¤¬¤ª¤«¤·¤¤¥µ¥ó¥×¥ë¡Ê¥³¥Ô¥Ú¤Ç¼Â¹Ô¤Ç¤¤Þ¤¹¡Ë
//¡¡¡¦ÊªÂΤ¬Å¬Åö¤ÊÂ礤µ¤ÎÈ¢·¿¤ËȽÄꤵ¤ì¤Æ¤ë¤Ã¤Ý¤¯¤Ê¤¤¤Ç¤¹¤«¡©
//¡¡¡¦¥Þ¥¦¥¹¤òÆ°¤«¤¹¤È¥«¥á¥é¤¬²óž¤·¤Þ¤¹
//¡¡¡ÊHSP3.6¡ÁHSP3.7b2¤Ë¤ÆÆ°ºî¡¦¥Æ¥¹¥ÈºÑ¡Ë
#include "hgimg4.as" //hgimg4Æɤ߹þ¤ß
chdir dir_exe+"\\sample\\hgimg4" //hgimg4¤Î¥Õ¥©¥ë¥À¤Ç¼Â¹Ô
gpfloor id,100,100,$8899FF:setpos id,0,-10,0 //¾²À¸À®
gppbind id,0,0.5 //¾²¤ËʪÍýÀßÄê
repeat 2 //2¼ïÎà¤Î¿Þ·Á¤òÀ¸À®
//¤Ê¤ó¤«Å¬Åö¤ÊʪÂΤòÀ¸À®¤¹¤ë½èÍý
gpmeshclear:idMax=0 //¥Ý¥ê¥´¥ó¥ê¥»¥Ã¥È
type=3+cnt\2 //»°³Ñ¥Ý¥ê¥´¥ó¤«»Í³Ñ¥Ý¥ê¥´¥ó¤«»ØÄê
height=8.0 //¤í¤¯¤í¤Î·Á¾õ¤´¤È¤Î¹â¤µ¤ò»ØÄê
ddim size,1 //¤í¤¯¤í¤Î·Á¾õ¡ÊÉý¡Ë
if cnt=0:size=1.5,8.0:ccc=$99FFAA //¤í¤¯¤í¤Î·Á¾õ¤È¿§¤òÅÐÏ¿¡Ê1²óÌÜ¡Ë
if cnt=1:size=1.5,8.0,4.0:ccc=$FFAA99 //¤í¤¯¤í¤Î·Á¾õ¤È¿§¤òÅÐÏ¿¡Ê2²óÌÜ¡Ë
repeat length(size):y=cnt //·Á¾õ¾ðÊó¿ô¤Ç¥ë¡¼¥×
repeat type //¥Ý¥ê¥´¥óʬ¤ÎĺÅÀ¤òÀ¸À®
fv=sin(m_pi/type*2*cnt)*size(y),height*y-2,cos(m_pi/type*2*cnt)*size(y)
gpmeshadd IDs(idMax),fv,fv(1),fv(2),fv,fv(1),fv(2),0,0:idMax++
loop
loop
if idMax<4:end //¤í¤¯¤í¤¬À¸À®¤µ¤ì¤Æ¤¤¤Ê¤¤
if type=4:{ //»Í³Ñ¥Ý¥ê¥´¥ó¤Çºî¤ë¤í¤¯¤í
gpmeshpolygon IDs(3),IDs(2),IDs(0),IDs(1) //³¸
gpmeshpolygon IDs(idMax-4),IDs(idMax-3),IDs(idMax-1),IDs(idMax-2) //Äì
}else:if type=3:{ //»°³Ñ¥Ý¥ê¥´¥ó¤Çºî¤ë¤í¤¯¤í
gpmeshpolygon IDs(2),IDs(1),IDs(0) //³¸
gpmeshpolygon IDs(idMax-3),IDs(idMax-2),IDs(idMax-1) //Äì
}else{
end //¤½¤ì°Ê³°¤Î¥Ý¥ê¥´¥ó¤Ïǧ¤á¤Ê¤¤
}
repeat type*(idMax/type-1) //¤í¤¯¤í¤Î¦Ì̤òÀ¸À®
id=cnt\type+cnt/type*type,(cnt+1)\type+cnt/type*type
gpmeshpolygon IDs(id),IDs(id(1)),IDs(id+type),IDs(id(1)+type)
loop
repeat 5 //5¸Ä¤Î¤í¤¯¤í¤ò¥é¥ó¥À¥àÇÛÃÖ
gpmesh id,ccc:setang id,0.01*rnd(628),0.01*rnd(628)
setpos id,rnd(60)-30,10+cnt*height,rnd(60)-30
gppbind id,1,0.5,GPPBIND_MESH //¤í¤¯¤í¤Ï¥á¥Ã¥·¥å¤ÇʪÍý·Á¾õȽÄê
gppset id,GPPSET_GRAVITY,0.0,-20.0,0.0
loop
loop
repeat //¥á¥¤¥ó¥ë¡¼¥×
fv=sin(0.01*(ginfo_winx/2-mousex))*80 // ¥Þ¥¦¥¹¤Ç
fv(1)=0.1*(ginfo_winy/2-mousey) // ¥«¥á¥é
fv(2)=cos(0.01*(ginfo_winx/2-mousex))*80 // Áàºî
setpos GPOBJ_CAMERA,fv,fv(1),fv(2)
gplookat GPOBJ_CAMERA,0,0,0
redraw 0 //ÉÁ²è³«»Ï
color:boxf
gpdraw
color 255,255,255:pos 30,30:mes "¥Õ¥ê¡¼¥À¥à¤¹¤®¤ë¡°¡°¡¨"
redraw 1
await 16
loop
¤³¤Î¾õÂ֤ǺîÉÊÀ©ºî¤Ë¥Õ¥ê¡¼¥á¥Ã¥·¥å¤ò¡ÊÆäËʪÍý¤Ç¡ËÍøÍѤµ¤ì¤Æ¤¤¤ëÊý¤Ïº£¤Î¤È¤³¤í¸ºß¤¹¤ë¤Î¤«¤â¤«¤Ê¤ê²ø¤·¤¤µ¤¤¬¤·¤Æ¤¤¤Þ¤¹¡£
¸Ä¿ÍŪ¤Ë¤Ï¡Ä¤Ç¤¹¤¬¡¢¤â¤¦¸½»þÅÀ¤Þ¤Ç¤Î¥Õ¥ê¡¼¥á¥Ã¥·¥å¤Î»ÅÍͤä¸ß´¹À¤ÏÀµÄ¾¤É¤¦¤Ç¤â¤¤¤¤¤Î¤Ç¡¢
¼ÂºÝ¤ÎºîÉÊÀ©ºî¤òÁÛÄꤷ¤¿»ÅÍͤ˺þ¿·¤·¤¿Êý¤¬Îɤ¤¤è¤¦¤Êµ¤¤¬¤·¤Æ¤¤¤Þ¤¹¡£
¤³¤³¤Þ¤Ç¤ª¤«¤·¤ÊÆ°ºî¤Ç¤¹¤È¡¢µì¥Ð¡¼¥¸¥ç¥ó¤È¤Î¸ß´¹À¤ò¼è¤ë¥Õ¥é¥°¤â¤«¤¨¤Ã¤Æº®Íð¤Î¸µ¤Ê¤Î¤Ç¤³¤ÎºÝÍפé¤Ê¤¤¤È»×¤Ã¤Æ¤¤¤Þ¤¹¡£
P.S¡§
¾åµ¤Î¥µ¥ó¥×¥ë¤ÇʪÂΤ諤¿Ìܤ¬¥Ì¥ë¥Ã¤È¤·¤Æ¤¤¤ë¤Î¤ÏĺÅÀ¤ò»È¤¤¤Þ¤ï¤·¤Æ¤¤¤ë·ë²Ì¤Ê¤ó¤Ç¤¹¤¬¡¢
ĺÅÀ¤Ï»È¤¤¤Þ¤ï¤·¤Ä¤ÄÌ̤´¤È¤ËUV¤äË¡Àþ¤òÀßÄꤹ¤ë¤³¤È¤Ï¤Ç¤¤Ê¤¤¤Î¤Ç¤·¤ç¤¦¤«¡©
¡ÊÆâÉôŪ¤Ë°ÕÌ£¤Î¤¢¤ë»ö¤«¤Ï¤ï¤«¤ê¤Þ¤»¤ó¤¬¡Ë¸½¾õ¤ÎHgimg4¤ÇÌ̤´¤È¤ËË¡Àþ¤äUV¤òÀßÄꤷ¤è¤¦¤È¤·¤¿¾ì¹ç¡¢
Ʊ¤¸ºÂɸ¤ÎĺÅÀ¤ò»È¤¦Ì̤¬Ê£¿ô¤¢¤Ã¤Æ¤âÌ̤οô¤À¤±Æ±¤¸ºÂɸ¤ÎĺÅÀ¤òºÆÅÐÏ¿¤¹¤ëɬÍפ¬¤¢¤ê¡¢¥á¥â¥ê¤òÁêÅö̵Â̸¯¤¤¤¹¤ë¤è¤¦¤Êµ¤¤¬¤·¤Æ¤¤¤Þ¤¹¡£
ÅÄ
¢¬¤³¤Î¤è¤¦¤Ê4¤Ä¤Î»Í³ÑÌ̤ò»ý¤Ä¥á¥Ã¥·¥å¤òÀ¸À®¤·¤è¤¦¤È¤·¤¿¾ì¹ç¡¢ÄºÅÀ¤¬»È¤¤¤Þ¤ï¤»¤ì¤ÐĺÅÀ¾ðÊó¤Ï9¸Ä¤ÇºÑ¤ß¤Þ¤¹¤¬¡¢
Ì̤´¤È¤ËË¡Àþ¤äUV¤òÀßÄꤷ¤è¤¦¤È¤·¤¿¾ì¹çĺÅÀ¤Ï»È¤¤¤Þ¤ï¤»¤º¡¢16¸Ä¤ÎĺÅÀ¤òÅÐÏ¿¤¹¤ëɬÍפ¬¤¢¤ê¡¢
ÆäËÃæ±û¤ÎĺÅÀ¤Ï£´¤Ä¤ÎÌ̤ËÍøÍѤµ¤ì¤Æ¤Þ¤¹¤«¤é¡¢4²ó¤âƱ¤¸ºÂɸ¤òºÆÅÐÏ¿¤¹¤ë¥Ï¥á¤Ë¤Ê¤ê¤Þ¤¹¤è¤Í¡£
¤Ê¤ó¤À¤«À¨¤¯¥á¥â¥ê¤Î̵Â̸¯¤¤¤ò¤·¤Æ¤¤¤ëµ¤¤¬¤¹¤ë¤Î¤Ç¤¹¤¬¡°¡°¡¨¡¨¡¨
¡Ê»°³Ñ¥Ý¥ê¥´¥ó¤Ç·ÁÀ®¤·¤è¤¦¤È¤·¤¿¾ì¹ç¤Ï¹¹¤ËÁý¤¨¤Æ24¸Ä¤ÎĺÅÀ¤¬É¬Íפˡ£9¸Ä ¢ª 24¸Ä¡Ä ¤¦¤¥¡Ä¤ó¡Ë