锘??xml version="1.0" encoding="utf-8" standalone="yes"?>久久久久久久性,亚洲美女精品久久,国产精品亚洲欧美http://m.shnenglu.com/billhsu/category/7690.htmlzh-cnThu, 23 Jun 2011 13:22:17 GMTThu, 23 Jun 2011 13:22:17 GMT60Android娓告垙璁℃椂http://m.shnenglu.com/billhsu/archive/2011/01/30/139627.htmlBill HsuBill HsuSun, 30 Jan 2011 15:16:00 GMThttp://m.shnenglu.com/billhsu/archive/2011/01/30/139627.htmlhttp://m.shnenglu.com/billhsu/comments/139627.htmlhttp://m.shnenglu.com/billhsu/archive/2011/01/30/139627.html#Feedback0http://m.shnenglu.com/billhsu/comments/commentRss/139627.htmlhttp://m.shnenglu.com/billhsu/services/trackbacks/139627.htmlhttp://androgeek.info/?p=299

浠ュ墠浠g爜緇忛獙寰堝閮芥槸鍩轟簬windows鐨勶紝鎵浠ュandroid涓嬮潰鐨勮鏃跺嚱鏁頒笉鏄お浜嗚В銆?br>
鍦ㄥ啓Friut3D鏃訛紝鎴戠敤鐨勪唬鐮佹槸鐢╣ettimeofday()鏉ヨ鏃剁殑銆備絾鏄晥鏋滀笉濂斤紝娓告垙閲屾湁涓満鏅窇璧鋒潵鍗佸垎鍗★紝acepig鍏勫拰鎴戦兘瑙夊緱榪欎釜闂寰堣寮傘傚紑濮嬭寰楄繖鏄ā鍨嬬殑闂錛岀幇鍦ㄧ湅鏉ユ槸璁℃椂鍑芥暟涓嶇簿紜児寰楃ジ銆?br>
鐪嬬湅褰撴椂鍐欑殑鑾峰彇緋葷粺鏃墮棿鐨勪唬鐮侊細

static long getTime(void)

{
gettimeofday(
&now, NULL);
return (long)(now.tv_sec*1000 + now.tv_usec/1000);
}


浠婂ぉ鍦ㄤ竴涓猤oogle璁ㄨ緇勯噷寰楃煡gettimeofday()璁板緱鐨則ick鏄笉鍑嗙‘鐨勩傝岃繖涓父鎴忛昏緫渚濊禆浜巘ime delta鏉ヨ綆楀悇涓墿浣撹繍鍔紝璁℃椂涓嶇簿紜紝娓叉煋鑷劧浼氬崱欏褲?br>
浜庢槸鐢ㄧ撼縐掔駭鐨勫噯紜害鐨刢lock_gettime()閲嶅啓浜唃etTime()鍑芥暟錛?br>
static long _getTime(void)

{
struct timespec now;
clock_gettime(CLOCK_MONOTONIC, 
&now);
return now.tv_sec*1000000 + now.tv_nsec/1000;

}


鏀逛簡璁℃椂鍑芥暟鍚庯紝娓告垙鍚勪釜鍦烘櫙閮芥祦鐣呬簡銆?br>

Bill Hsu 2011-01-30 23:16 鍙戣〃璇勮
]]>
楠ㄩ鍔ㄧ敾涓殑鍙嶅悜鍔ㄥ姏瀛?/title><link>http://m.shnenglu.com/billhsu/archive/2010/08/26/124852.html</link><dc:creator>Bill Hsu</dc:creator><author>Bill Hsu</author><pubDate>Thu, 26 Aug 2010 09:29:00 GMT</pubDate><guid>http://m.shnenglu.com/billhsu/archive/2010/08/26/124852.html</guid><wfw:comment>http://m.shnenglu.com/billhsu/comments/124852.html</wfw:comment><comments>http://m.shnenglu.com/billhsu/archive/2010/08/26/124852.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.shnenglu.com/billhsu/comments/commentRss/124852.html</wfw:commentRss><trackback:ping>http://m.shnenglu.com/billhsu/services/trackbacks/124852.html</trackback:ping><description><![CDATA[<span id="hvzpftn" class="Apple-style-span" style="border-collapse: separate; color: #000000; font-family: Simsun; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;">IK鍦ㄩ楠煎姩鐢婚噷甯稿父鑳界湅鍒幫紝浣滅敤灝辨槸鏍規(guī)嵁瀛愰楠肩殑鏂逛綅鎺ㄧ畻鍑哄畠鐨勯偅浜涚埗楠ㄩ鏂逛綅銆傚彲鏄竴鐩撮兘鏄煡閬撴湁閭d箞鍥炰簨錛屼絾鏄張涓嶅お鐭ラ亾鍏蜂綋鏄庝箞瀹炵幇鐨勩?br />鍦╩ulti-crash.com涓婄湅鍒頒竴綃?a target="_blank" ><span style="font-style: italic;">楠ㄩ鍔ㄧ敾鍙嶅悜鍔ㄥ姏瀛?IK)鐨勫疄鐜?nbsp; </span></a>錛屽唴瀹瑰啓鐨勫緢鏄撴噦銆?br />榪欐槸鍩轟簬CCD(</span>Cyclic Coordinate Descent<span id="hvzpftn" class="Apple-style-span" style="border-collapse: separate; color: #000000; font-family: Simsun; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;">)綆楁硶鐨勩傝繕鏈夌闆呭彲姣旂煩闃電殑綆楁硶錛屼笉榪囪繖縐嶇畻娉曟垜榪樹笉澶竻妤氾紝甯屾湜楂樻墜鎸囨暀鍟娿?br />涓嬮潰璁茶CCD錛屽厛鐪嬭繖寮犲浘銆?br /><img style="width: 540px; height: 214px;" src="http://m.shnenglu.com/images/cppblog_com/billhsu/ccd.gif" border="0" alt="" /><br />娉ㄦ剰鍥句腑鐨勭孩綰垮拰緇跨嚎錛岀孩綰挎槸褰撳墠楠ㄩ涓庣洰鏍囬楠肩殑榪炵嚎錛岀豢綰挎槸鐩爣楠ㄩ涓庢渶緇堜綅緗殑榪炵嚎銆?br />浠庡瓙楠ㄩ鍒扮埗楠ㄩ鐨勯『搴忚凱浠h綆楋紝鏃嬭漿綰㈢嚎鍒扮豢綰褲傝繖鏍峰榪唬鍑犳灝變細寰楀埌杈冨ソ鐨勭粨鏋溿?br /><br />瑕佹敞鎰忕殑鏄渶瑕佸楠ㄩ鐨勬棆杞寖鍥村姞浠ラ檺鍒訛紝鍥犱負浜轟綋鐨勫叧鑺備笉鏄互鍙互浠繪剰鏂瑰紡鏃嬭漿鐨勩?br /><img src="http://m.shnenglu.com/images/cppblog_com/billhsu/ccd3.JPG" border="0" alt="" /><br />[渚嬪鍥句腑钃濊壊閮ㄥ垎涓哄彲浠ユ棆杞殑鑼冨洿]<br /><br /><span style="font-style: italic;"></span></span><img src ="http://m.shnenglu.com/billhsu/aggbug/124852.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.shnenglu.com/billhsu/" target="_blank">Bill Hsu</a> 2010-08-26 17:29 <a href="http://m.shnenglu.com/billhsu/archive/2010/08/26/124852.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>Android NDK 寮鍙慜penGL ES 2.0涓浜涙敞鎰忕偣http://m.shnenglu.com/billhsu/archive/2010/08/10/122914.htmlBill HsuBill HsuTue, 10 Aug 2010 03:37:00 GMThttp://m.shnenglu.com/billhsu/archive/2010/08/10/122914.htmlhttp://m.shnenglu.com/billhsu/comments/122914.htmlhttp://m.shnenglu.com/billhsu/archive/2010/08/10/122914.html#Feedback1http://m.shnenglu.com/billhsu/comments/commentRss/122914.htmlhttp://m.shnenglu.com/billhsu/services/trackbacks/122914.html鑷繁涔熻瘯浜嗚瘯鐢∟DK緙栦竴涓狾penGL ES 2.0鐨勭▼搴忥紝鍙槸錛岀紪璇戠殑鏃跺欏嚭鐜頒簡涓澶у爢閿欍?br>
濡傚浘錛屾弧灞忓箷閮芥槸 undefined reference to 閭d簺OpenGL ES鍑芥暟銆?br>鐪嬫潵鏄簱鏂囦歡娌℃湁閾炬帴榪涙潵銆?br>
榪欐槸NDK渚嬪瓙閲岀殑Android.mk鐨勫啓娉曪細
LOCAL_PATH:= $(call my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE    :
= libgl2jni
LOCAL_CFLAGS    :
= -Werror
LOCAL_SRC_FILES :
= gl_code.cpp
LOCAL_LDLIBS    :
= -llog -lGLESv2

include $(BUILD_SHARED_LIBRARY)

闂灝卞嚭鍦ㄧ敤綰㈣壊鏍囧嚭鐨勯偅琛屻?br>
鎶婇偅鍙ヤ慨鏀逛負錛?br>
LOCAL_LDLIBS := -L$(SYSROOT)/usr/lib -llog
LOCAL_LDLIBS
+=-L$(SYSROOT)/usr/lib -lGLESv2

灝卞彲浠ユ甯哥紪璇戜簡銆?br>
榪樻湁涓浜涙敞鎰忕偣鏄細
緙栬瘧紼嬪簭鍓嶈clean錛屽惁鍒欑紪璇戜細鍑洪敊錛?br>姣忔鏇存柊浜嗚嚜宸辯殑.so鏂囦歡鍚庯紝鍦╡clipse鐨勯偅涓猨ava欏圭洰閲岃璁扮潃refresh涓涓嬨?br>


Bill Hsu 2010-08-10 11:37 鍙戣〃璇勮
]]>
闈犲緱浣忕殑浼戠湢鍑芥暟XSleephttp://m.shnenglu.com/billhsu/archive/2010/07/30/121679.htmlBill HsuBill HsuFri, 30 Jul 2010 02:55:00 GMThttp://m.shnenglu.com/billhsu/archive/2010/07/30/121679.htmlhttp://m.shnenglu.com/billhsu/comments/121679.htmlhttp://m.shnenglu.com/billhsu/archive/2010/07/30/121679.html#Feedback0http://m.shnenglu.com/billhsu/comments/commentRss/121679.htmlhttp://m.shnenglu.com/billhsu/services/trackbacks/121679.html浠婂ぉ鍦╟sdn涓婄湅鍒頒簡涓綃囨枃绔狅細http://blog.csdn.net/lanzhengpeng2/archive/2008/05/06/2401554.aspx
璁茬殑涔熸濂芥槸榪欎釜闂錛岃褰曚竴涓嬨?br>
鍦ㄤ嬌鐢╰imeGetTime()鐨勪唬鐮佸潡鐨勫墠鍚庡姞涓?span class="Apple-style-span" style="border-collapse: separate; color: #000000; font-family: Simsun; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;">timeBeginPeriod(1)鍜?/span>timeEndPeriod(1)錛屽氨鍙互鎻愰珮timeGetTime()鐨勭簿搴︺?br>
鍚屾椂錛屽彲浠ュ埄鐢╰imeSetEvent鍐欎簡涓涓潬寰椾綇鐨勪紤鐪犲嚱鏁癧浠g爜鏉ヨ嚜涓婅堪鏂囩珷]錛?br>
static void XSleep(DWORD dwDelay,HANDLE hEvent)
 {
  MMRESULT hTimer 
= timeSetEvent(dwDelay,1,(LPTIMECALLBACK)hEvent,0,TIME_ONESHOT | TIME_CALLBACK_EVENT_SET);
  MsgWaitForMultipleObjectsEx(
1,&hEvent,INFINITE,QS_ALLINPUT,0); //褰撴湁Windows娑堟伅鏃訛紝榪樿兘緇х畫澶勭悊Windows娑堟伅銆傛晠閫夋嫨浜嗚繖涓嚱鏁般?/span>
  timeKillEvent(hTimer);
 }

娑堟伅寰幆[浠g爜鏉ヨ嚜涓婅堪鏂囩珷]錛?br>
 MSG msg;
 DWORD dwLastTime;
 HANDLE hSleepEvent 
= CreateEvent(NULL,FALSE,FALSE,NULL);

 timeBeginPeriod(
1);

 dwLastTime 
= timeGetTime();
 
while(isActive())
 {
  
//闇瑕佷竴鐩村鐞哤indows娑堟伅鍒版棤娑堟伅澶勭悊涓烘
  for(;PeekMessage(&msg,NULL,0,0,PM_REMOVE);)
  {
   
if(msg.message == WM_QUIT)
   {
    CloseHandle(hSleepEvent);
    timeEndPeriod(
1);
    
return ;
   }
   
if(!TranslateAccelerator(msg.hwnd,hAccelTable,&msg))
   {
    TranslateMessage(
&msg);
    DispatchMessage(
&msg);
   }
  }

  DWORD FrameDelay 
= max(1,1000/max(1,GetMaxFPS()));
  DWORD dwTime 
= timeGetTime();
  
if(dwLastTime + FrameDelay > dwTime)
  {
   XSleep(dwLastTime 
+ FrameDelay - dwTime,hSleepEvent);
  }
  
else
  {
   update();
   dwLastTime 
+= ((dwTime - dwLastTime) / FrameDelay) * FrameDelay; //褰撳疄闄呭撫鏁頒弗閲嶄綆浜庨鏈熷撫鏁版椂錛岃繖孌典唬鐮佸彲浠ュ畬鎴愯煩甯у姛鑳斤紱褰撳疄闄呭撫鏁板ぇ浜庣瓑浜庨鏈熷撫鏁版椂錛岃繖孌典唬鐮佷粛鐒跺彲浠ヤ嬌甯т箣闂寸殑鏃墮棿闂撮殧鍥哄畾銆備箣鍓嶈阿Boss娌℃湁澶勭悊濂界殑涓昏灝辨槸榪欎釜銆?/span>
  }
 }

 CloseHandle(hSleepEvent);
 timeEndPeriod(
1);
榪欐牱錛屾椂闂磋宸氨浼氬湪1ms涔嬪唴浜嗭紝娓告垙涔熷氨涓嶄細鎶栧姩浜嗐?br>

Bill Hsu 2010-07-30 10:55 鍙戣〃璇勮
]]>
鍩轟簬shader鐨勯楠艱挋鐨綆?/title><link>http://m.shnenglu.com/billhsu/archive/2010/04/01/111326.html</link><dc:creator>Bill Hsu</dc:creator><author>Bill Hsu</author><pubDate>Thu, 01 Apr 2010 14:10:00 GMT</pubDate><guid>http://m.shnenglu.com/billhsu/archive/2010/04/01/111326.html</guid><wfw:comment>http://m.shnenglu.com/billhsu/comments/111326.html</wfw:comment><comments>http://m.shnenglu.com/billhsu/archive/2010/04/01/111326.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.shnenglu.com/billhsu/comments/commentRss/111326.html</wfw:commentRss><trackback:ping>http://m.shnenglu.com/billhsu/services/trackbacks/111326.html</trackback:ping><description><![CDATA[     鎽樿: 鎴戠殑鍙よ懀鏄懼崱寰堟搷铔嬶紝濂界绔殑shader錛屼紶楠ㄩ鐭╅樀榪涘幓錛岀‖鏄病鍙嶅簲銆傘?<br>瀵誨瑙呰錛屾壘鍒頒簡 NVIDIA SDK 鐨別xample錛岀粓浜庤В鍐充簡銆?<br>闅鵑亾鎴戠殑鏄懼崱涓嶆敮鎸丅LENDINDICES鍜孊LENDWEIGHT? <br>鎶夿LENDINDICES鍜孊LENDWEIGHT鐢═EXCOORD[n]琛ㄧず鎵嶆甯搞傘?<br>涓嶈搴熻瘽錛岀洿鎺ヤ笂浠g爜銆?nbsp; <a href='http://m.shnenglu.com/billhsu/archive/2010/04/01/111326.html'>闃呰鍏ㄦ枃</a><img src ="http://m.shnenglu.com/billhsu/aggbug/111326.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.shnenglu.com/billhsu/" target="_blank">Bill Hsu</a> 2010-04-01 22:10 <a href="http://m.shnenglu.com/billhsu/archive/2010/04/01/111326.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>GPU姘撮潰妯℃嫙http://m.shnenglu.com/billhsu/archive/2010/03/23/110376.htmlBill HsuBill HsuTue, 23 Mar 2010 12:59:00 GMThttp://m.shnenglu.com/billhsu/archive/2010/03/23/110376.htmlhttp://m.shnenglu.com/billhsu/comments/110376.htmlhttp://m.shnenglu.com/billhsu/archive/2010/03/23/110376.html#Feedback0http://m.shnenglu.com/billhsu/comments/commentRss/110376.htmlhttp://m.shnenglu.com/billhsu/services/trackbacks/110376.html

鏁堟灉姣旇緝綆鍗曪紝鍙槸妯℃嫙浜嗕笅姘撮潰鐨勫弽灝勬晥鏋溿傛姌灝勪笌Fresnel緋繪暟娌℃湁鑰冭檻銆?br />
姘撮潰妯℃嫙澶ц嚧闇瑕佸垎榪欎箞鍑犳錛?br />1.鍓鎺夋按闈互涓嬬殑欏剁偣[gpu閲岀殑clipplane瑕佹敞鎰忚漿鎹㈠埌Clip Space]錛?br />灝嗘憚鍍忔満鏀懼埌鍚屽師鎽勫儚鏈哄叧浜庢按闈㈠縐扮殑浣嶇疆錛屾瘮濡傚師鏉ユ憚鍍忔満鍦?x,y,z)錛?br />姝ゆ椂灝辮鎶婃憚鍍忔満鏀懼湪(x,-y,z)錛寀p鍚戦噺涔熻璁劇疆鎴愬悜涓嬬殑銆?br />鍐嶆妸鍦烘櫙娓叉煋鍒癛ender Target鐨勭汗鐞嗕笂(鎴戠敤鐨勭汗鐞嗗ぇ灝忔槸256*256)錛屼笉鐭ラ亾涓轟粈涔圧ender Target鐨勭汗鐞嗗ぇ灝忎笉鑳借秴榪囩獥鍙eぇ灝忥紝瓚呰繃鐨勮瘽娓叉煋浼氬嚭閿欙紝鐭ラ亾鐨勫ぇ澶у憡璇夋垜涓涓嬪搱銆?br />
浜庢槸錛屽氨寰楀埌浜嗚繖鏍蜂竴涓汗鐞嗭細


2.灝嗕笂闈㈠緱鍒扮殑綰圭悊涓庢按闈㈢殑欏剁偣瀵瑰簲.
鎶奦ertex Shader涓箻榪囧彉鎹㈢煩闃靛悗鐨勫潗鏍囦紶鍒癙ixel Shader,
鍦≒S涓綆?br />
聽聽 聽聽聽聽 float2 clipspace = input.Coord.xy / input.Coord.w;
聽聽 聽聽聽聽 clipspace.x=((clipspace.x * 0.5f) + 0.5f);
聽聽 聽聽聽聽 clipspace.y = ((clipspace.y * -0.5f) + 0.5f);
聽聽 聽聽聽聽 clipspace.x=1-clipspace.x;
鏃㈠彲浠ヨ姘撮潰欏剁偣涓庣汗鐞嗗搴旓紝鐒跺悗鍐嶆兂鍔炴硶鎶婄汗鐞嗗潗鏍囨壈涔辨潵妯℃嫙姘撮潰娉㈠姩銆?br />
3.鍐嶆覆鏌撲竴嬈″満鏅氨鍙互浜嗐?br />
澶у涔熷彲浠ュ弬鑰冧笅Azure鐨勬按闈㈡覆鏌撴簮浠g爜錛?a temp_href=" http://www.azure.com.cn/article.asp?id=186" href="%20http://www.azure.com.cn/article.asp?id=186">
http://www.azure.com.cn/article.asp?id=186


Bill Hsu 2010-03-23 20:59 鍙戣〃璇勮
]]>
鍙紪紼嬬閬撲笅鐨勫壀瑁佸鉤闈?/title><link>http://m.shnenglu.com/billhsu/archive/2010/01/20/106088.html</link><dc:creator>Bill Hsu</dc:creator><author>Bill Hsu</author><pubDate>Wed, 20 Jan 2010 14:00:00 GMT</pubDate><guid>http://m.shnenglu.com/billhsu/archive/2010/01/20/106088.html</guid><wfw:comment>http://m.shnenglu.com/billhsu/comments/106088.html</wfw:comment><comments>http://m.shnenglu.com/billhsu/archive/2010/01/20/106088.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://m.shnenglu.com/billhsu/comments/commentRss/106088.html</wfw:commentRss><trackback:ping>http://m.shnenglu.com/billhsu/services/trackbacks/106088.html</trackback:ping><description><![CDATA[ <p class="MsoNormal"> <span>鍓騫抽潰</span> <span>(Clip Plane)</span> <span>鍦ㄥ浘褰㈠棰嗗煙鏈夌潃閲嶈鐨勪綔鐢紝姣斿姘撮潰妯℃嫙涓紝娓叉煋鎶樺皠綰圭悊鏃訛紝鎴戜滑灝卞繀欏誨皢姘撮潰浠ヤ笂鐨勯《鐐歸氳繃鍓騫抽潰鍓鎺夈?/span> </p> <p class="MsoNormal"> <span>鍦ㄨ繃鍘葷殑鍥哄畾娓叉煋綆¢亾鏃朵唬錛屽壀瑁佸鉤闈㈢殑瀹炵幇杈冧負綆鍗曪紝姣斿鍦?/span> <span>DirectX 9</span> <span>涓紝鍙互鍏堣瀹氬壀瑁佸鉤闈㈠湪涓栫晫鍧愭爣緋諱笅鐨勬柟紼?/span> <span>(ax+by+cz+d=0)</span> <span>錛屽啀璋冪敤</span> <span>SetClipPlane(DWORD Index,CONST float * pPlane)</span> <span>榪欎釜</span> <span>API</span> <span>鍑芥暟灝卞彲浠ヤ簡銆?/span> </p> <p class="MsoNormal"> <span>聽</span> </p> <p class="MsoNormal"> <span>闄勪笂渚嬪瓙紼嬪簭錛?/span> </p> <p class="MsoNormal" style="background: none repeat scroll 0% 0% rgb(238, 238, 238); text-align: left; -moz-background-inline-policy: continuous;" align="left"> <span style="font-size: 10pt; color: black;">vPosition=D3DXVECTOR3(0,0,0);</span> <span style="font-size: 10pt; color: green;">//</span> <span style="font-size: 10pt; color: green;">騫抽潰涓婁竴涓偣<span><br /></span></span> <span style="font-size: 10pt; color: black;">vNormal=D3DXVECTOR3(0,1,0);</span> <span style="font-size: 10pt; color: green;">//</span> <span style="font-size: 10pt; color: green;">娉曞悜閲?span><br /></span></span> <span style="font-size: 10pt; color: black;">D3DXPlaneFromPointNormal(聽&clipplane,聽&vPosition,聽&vNormal聽);</span> <span style="font-size: 10pt; color: green;">//</span> <span style="font-size: 10pt; color: green;">鐢熸垚鍓騫抽潰<span><br /></span></span> <span style="font-size: 10pt; color: black;"> <br /> m_pDevice()->SetClipPlane(聽0,聽(</span> <span style="font-size: 10pt; color: blue;">float</span> <span style="font-size: 10pt; color: black;">*)clipplane);聽</span> </p> <p class="MsoNormal"> <span>聽</span> </p> <p class="MsoNormal"> <span>鐒惰岋紝鍦ㄧ幇鍦ㄧ殑鍙紪紼嬬閬?/span> <span>(programmable pipeline)</span> <span>涓嬶紝璁劇疆鐨勫壀瑁佸鉤闈細琚湪鍓鍧愭爣緋諱笅澶勭悊錛岃屼笉鏄湪涓栫晫鍧愭爣緋諱笅銆?/span> </p> 瑙e喅榪欎釜闂鐨勬柟娉曟湁錛?br /><br /> 1錛壜?緇欒鍓鐨勯《鐐瑰仛鏍囪錛屽湪Pixel Shader涓妸瀹冨壀瑁佹帀銆?br /><br /> 2錛壜?浣跨敤榪戞枩騫抽潰瑁佸壀錛圤blique Near-Plane Clipping錛夛紝鍗充慨鏀規(guī)姇褰辯煩闃碉紝灝嗚鍓鐨勯《鐐規(guī)斁鍦ㄨ鎴綋涔嬪錛屼粠鑰岄伩鍏嶄簡璇ラ《鐐圭殑緇樺埗銆?br /><br /> 3錛壜?淇敼騫抽潰鏂圭▼錛屼嬌涔嬩粠涓栫晫鍧愭爣緋昏漿鎹㈠埌鍓鍧愭爣緋匯?span><br /><br /><br /> 涓婅堪鏂規(guī)硶涓紝絎竴縐嶅拰絎簩縐嶆晥鐜囧茍涓嶉珮錛氬湪</span><span>Pixel Shader</span><span>涓壀瑁佹病鏈夊噺灝戜換浣曚笉蹇呰鐨勯《鐐瑰鐞嗭紝鑰岃綆楄繎鏂滃鉤闈㈣鍓煩闃佃緝涓虹箒鐞愩傛墍浠ワ紝鏂規(guī)硶涓夋槸鏈浣抽夋嫨銆?/span><p class="MsoNormal"><span>聽</span><span>瑕佸皢涓涓鉤闈粠涓栫晫鍧愭爣緋昏漿鎹㈠埌鍓鍧愭爣緋伙紝蹇呴』姹傚嚭榪欎釜鍙樻崲鐭╅樀銆?/span></p><p class="MsoNormal"><span>璁懼鉤闈㈡柟紼?/span><span>ax+by+cz+d=0</span><span>錛岀敤涓涓?/span><span>4</span><span>緇村悜閲忔潵</span><span>n</span><span>琛ㄧず</span><span>(a,b,c,d)</span><span>錛岃騫抽潰涓婃湁涓偣</span><span>p:(x,y,z,1)</span><span>銆傛牴鎹鉤闈㈡柟紼嬬殑瀹氫箟錛屾湁錛?/span></p><p class="MsoNormal"><span><br /></span></p><p class="MsoNormal"><strong>n</strong><sup>T</sup><strong>p</strong> = ax + by + cz + d = 0</p><p class="MsoNormal"></p><p class="MsoNormal"><span>璁劇煩闃?/span><span>R</span><span>鍙互璁╃偣</span><span>P</span><span>浠庝笘鐣屽潗鏍囩郴杞崲鍒板壀瑁佸潗鏍囩郴錛岀煩闃?/span><span>Q</span><span>鍙互璁╁鉤闈?/span><span>n</span><span>瀹炵幇鍚屾牱鐨勫彉鎹€傞偅涔堬紝鏈夛細</span></p><p class="MsoNormal" style="text-align: center;" align="center"></p><div align="left"><strong>p</strong>'= <strong>R</strong><strong>p</strong></div><div align="left"><strong>n'</strong>= <strong>Q</strong><strong>n</strong></div><p class="MsoNormal"><span>鍏朵腑</span><span>p'</span><span>銆?/span><span>n'</span><span>鍒嗗埆鏄漿鎹㈠悗鐨勭偣涓庡鉤闈€?/span></p><br /><div align="left"><strong>n</strong><span>'</span><sup>T</sup><strong>p'</strong>= 0</div><div align="left">(<strong>Q</strong><strong>n</strong>)<sup>T</sup> (<strong>R</strong><strong>p</strong>) = 0 <br /><strong>n</strong><sup>T</sup><strong>Q</strong><sup>T</sup><strong>R</strong><strong>p</strong> = 0<br /><br /><br /><span>濡傛灉錛?/span><strong>Q</strong><sup>T</sup><strong>R</strong> = <strong>I</strong></div><br /><p class="MsoNormal"><span>閭d箞錛?/span></p><p class="MsoNormal"><strong>n</strong><sup>T</sup><strong>Q</strong><sup>T</sup><strong>R</strong><strong>p</strong> = <strong>n</strong><sup>T</sup><strong>I</strong><strong>p</strong> = <strong>n</strong><sup>T</sup><strong>p</strong> = 0</p><p class="MsoNormal"><span>浜庢槸錛?/span></p><div align="left"><strong>Q</strong><sup>T</sup> = <strong>R</strong><sup>-1</sup><strong><br /> Q</strong> = (<strong>R</strong><sup>-1</sup>)<sup>T</sup></div><br /><p class="MsoNormal"><span>鍦?/span><span>DirectX 3D</span><span>涓紝灝嗕竴涓偣浠庝笘鐣屽潗鏍囩郴杞崲鍒板壀瑁佸潗鏍囩郴錛屾墍鐢ㄧ殑鐭╅樀涓鴻瀵熺煩闃典笌鎶曞獎鐭╅樀鐨勪箻縐紝鍗籌細</span></p><p class="MsoNormal" style="background: none repeat scroll 0% 0% rgb(238, 238, 238); -moz-background-inline-policy: continuous;"><span style="font-size: 10pt; color: black;">D3DXMATRIX聽聽TranMatrix聽=聽matView*matProj;</span></p><p class="MsoNormal"><span style="font-size: 9pt;">(TranMatrix</span><span style="font-size: 9pt;">涓烘墍姹傜殑鍙樻崲鐭╅樀錛?span>matView</span>鍜?span>matProj</span>鍒嗗埆涓?/span><span>瑙傚療鐭╅樀涓庢姇褰辯煩闃?/span><span>)</span></p><p class="MsoNormal"><span>聽</span></p><p class="MsoNormal"><span>闄勪笂鍦?/span><span>D3D</span><span>涓彉鎹㈢殑瀹屾暣浠g爜錛?/span></p><p class="MsoNormal" style="background: none repeat scroll 0% 0% rgb(238, 238, 238); text-align: left; -moz-background-inline-policy: continuous;" align="left"><span style="font-size: 10pt; color: black;">D3DXPLANE聽tempPlane聽=聽clipplane;<br /> D3DXPlaneNormalize(&tempPlane,聽&tempPlane);<br /><br /> D3DXMATRIX聽聽TranMatrix聽=聽matView*matProj;<br /> D3DXMatrixInverse(&TranMatrix,聽NULL,聽&TranMatrix);<br /> D3DXMatrixTranspose(&TranMatrix,聽&TranMatrix);<br /> D3DXPlaneTransform(&tempPlane,聽&tempPlane,聽&TranMatrix);</span></p><p class="MsoNormal" style="background: none repeat scroll 0% 0% rgb(238, 238, 238); text-align: left; -moz-background-inline-policy: continuous;" align="left"></p><p class="MsoNormal"></p><p class="MsoNormal"><span>鍙傝冭祫鏂欙細</span></p><p class="MsoNormal"><span>1.Back Face Culling Notes ,Jordan Smith (University of California, Berkeley)<br /></span></p><p class="MsoNormal"><span>http://www.cs.berkeley.edu/~ug/slide/pipeline/assignments/backfacecull.shtml</span>聽</p><p class="MsoNormal">2.GameDev Forum</p><p class="MsoNormal">http://www.gamedev.net/community/forums/topic.asp?topic_id=402381</p><p class="MsoNormal">3.Oblique Near-Plane Clipping with Orthographic Camera ,Aras</p><p class="MsoNormal">http://aras-p.info/texts/obliqueortho.html</p><img src ="http://m.shnenglu.com/billhsu/aggbug/106088.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.shnenglu.com/billhsu/" target="_blank">Bill Hsu</a> 2010-01-20 22:00 <a href="http://m.shnenglu.com/billhsu/archive/2010/01/20/106088.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鍙戞棩蹇楃邯蹇祣~絎竴嬈″啓瀵煎嚭鎻掍歡http://m.shnenglu.com/billhsu/archive/2009/11/25/101921.htmlBill HsuBill HsuWed, 25 Nov 2009 11:25:00 GMThttp://m.shnenglu.com/billhsu/archive/2009/11/25/101921.htmlhttp://m.shnenglu.com/billhsu/comments/101921.htmlhttp://m.shnenglu.com/billhsu/archive/2009/11/25/101921.html#Feedback2http://m.shnenglu.com/billhsu/comments/commentRss/101921.htmlhttp://m.shnenglu.com/billhsu/services/trackbacks/101921.html

浠婂ぉ緇堜簬鎶婃ā鍨嬪鍑烘彃浠舵渶鍩烘湰鐨勫姛鑳?-瀵煎嚭緗戞牸緇欏啓濂戒簡銆?/p>

c++鍜宮ax sdk涓璧風(fēng)敤鐨勬劅瑙夊緢鎬紝緋葷粺宕╂簝浜哊嬈★紝涓嶈繃錛屾葷畻鑳藉鍑虹綉鏍間簡~

鏈夊浘鏈夌湡鐩革紝鎴浘綰康

(娉ㄦ剰錛氭ā鍨嬫槸浠巚alue鐨刢sol涓紕鍑烘潵鐨?

鍦╠3d涓覆鏌撳鍑虹殑妯″瀷顱

鍦╠3d涓覆鏌撳鍑虹殑妯″瀷顱


鎴戠殑妯″瀷瀵煎嚭鎻掍歡顱

瀵煎嚭鏁版嵁鏍鋒湰錛?/p>

[榪欐槸涓涓甫璐村浘鐨勭珛鏂逛綋鐨勫鍑烘暟鎹甝

8//銆銆8涓《鐐?br /> -6.70302 -21.2068 -5.46039
17.1883 -6.46757 0.162097
-22.4049 2.22378 -0.162097
1.48644 16.963 5.46039
-8.48039 -28.3257 20.7542
15.411 -13.5865 26.3767
-24.1823 -4.89514 26.0525
-0.290929 9.84411 31.675

12//銆銆12涓汗鐞嗗潗鏍?br /> 0 1 0
1 1 0
0 0 0
1 0 0
0 1 0
1 1 0
0 0 0
1 0 0
0 1 0
1 1 0
0 0 0
1 0 0

12//銆銆12涓潰寮曠儲
0 9 2 11 3 10
3 10 1 8 0 9
4 8 5 9 7 11
7 11 6 10 4 8
0 4 1 5 5 7
5 7 4 6 0 4
1 0 3 1 7 3
7 3 5 2 1 0
3 4 2 5 6 7
6 7 7 6 3 4
2 0 0 1 4 3
4 3 6 2 2 0



Bill Hsu 2009-11-25 19:25 鍙戣〃璇勮
]]>
DirectX 3D 璁懼涓㈠け(lost device)鐨勫鐞?/title><link>http://m.shnenglu.com/billhsu/archive/2009/10/17/98823.html</link><dc:creator>Bill Hsu</dc:creator><author>Bill Hsu</author><pubDate>Sat, 17 Oct 2009 05:10:00 GMT</pubDate><guid>http://m.shnenglu.com/billhsu/archive/2009/10/17/98823.html</guid><wfw:comment>http://m.shnenglu.com/billhsu/comments/98823.html</wfw:comment><comments>http://m.shnenglu.com/billhsu/archive/2009/10/17/98823.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://m.shnenglu.com/billhsu/comments/commentRss/98823.html</wfw:commentRss><trackback:ping>http://m.shnenglu.com/billhsu/services/trackbacks/98823.html</trackback:ping><description><![CDATA[ <font color="#000000"> 浣庢墜浜ゆ祦錛岄珮鎵嬪嬁鍏?br /><br />褰撳垵瑙夊緱DX涓澶囦涪澶卞緢璁ㄥ帉錛屽樊鐐瑰氨鎶曞OpenGL浜嗐?br /> 涓嶈繃鐜板湪鍙戠幇鍏跺疄涔熸病閭d箞楹葷儲鍟︼紝鍐欑偣涓滆タ錛岀粰涓嶆竻妤?/font> <font color="#000000">璁懼涓㈠け鎬庝箞澶勭悊鐨勫悓瀛﹀弬鑰冧笅銆?br /><br /></font>鍦ㄥ垱寤烘椂浣跨敤D3DPOOL_MANAGED鏍囧織鐨勮祫婧愬彲浠ヤ笉闇瑕侀噸鏂拌澆鍏ワ紝浣咲3DPOOL_DEFAULT鍔犺澆鐨勮祫婧愬氨闇瑕佸厛閲婃斁錛屽悗閲嶅緩銆?br /><br />閫氬父闇瑕佽繖鏍峰鐞嗙殑鏈塈D3DXFont鍜孖D3DXSprite錛岃?X妯″瀷浠涔堢殑灝變笉闇瑕併?br />鍦ㄥ彂鐜拌澶囦涪澶辨椂錛屾垜浠璋冪敤 <span style="color: rgb(0, 0, 0);">OnLostDevice(</span><span style="color: rgb(0, 0, 255);">void</span><span style="color: rgb(0, 0, 0);">)</span>鍑芥暟璁〥3DPOOL_DEFAULT鍔犺澆鐨勮祫婧愰噴鏀炬帀銆?br />濂藉湪ID3DXFont鍜孖D3DXSprite鏈夎澶囦涪澶卞鐞嗗嚱鏁幫紝鐩存帴璋冪敤灝卞ソ浜?div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: rgb(0, 0, 255);">void</span><span style="color: rgb(0, 0, 0);">聽OnLostDevice(</span><span style="color: rgb(0, 0, 255);">void</span><span style="color: rgb(0, 0, 0);">)<br />{<br /></span><span style="color: rgb(0, 0, 0);">聽聽聽 m_sprite</span><span style="color: rgb(0, 0, 0);">-></span><span style="color: rgb(0, 0, 0);">OnLostDevice();</span><span style="color: rgb(0, 128, 0);"><br /></span><span style="color: rgb(0, 0, 0);">聽聽聽聽m_font</span><span style="color: rgb(0, 0, 0);">-></span><span style="color: rgb(0, 0, 0);">OnLostDevice();<br />}<br /></span></div><br />鍙槸錛屾庝箞鐭ラ亾璁懼涓㈠け浜嗗憿錛?br />濡傛灉璁懼涓㈠け錛孭resent()鍑芥暟灝變細鈥滃嚭闂鈥濓紝榪斿洖鍊兼槸D3DERR_DEVICELOST銆?br /><div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(0, 0, 0);">m_pIDirect3DDevice</span><span style="color: rgb(0, 0, 0);">-></span><span style="color: rgb(0, 0, 0);">EndScene();<br /><br />HRESULT聽hr;<br />hr聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽m_pIDirect3DDevice</span><span style="color: rgb(0, 0, 0);">-></span><span style="color: rgb(0, 0, 0);">Present(NULL,聽NULL,聽NULL,聽NULL);<br /></span><span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);">(hr聽</span><span style="color: rgb(0, 0, 0);">==</span><span style="color: rgb(0, 0, 0);">聽D3DERR_DEVICELOST)<br />{<br />聽聽聽 </span><span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);">(m_pIDirect3DDevice</span><span style="color: rgb(0, 0, 0);">-></span><span style="color: rgb(0, 0, 0);">TestCooperativeLevel()聽</span><span style="color: rgb(0, 0, 0);">==</span><span style="color: rgb(0, 0, 0);">聽D3DERR_DEVICENOTRESET)<br />聽聽聽 {<br />聽聽聽聽聽聽聽 OnLostDevice();<br />聽聽聽聽聽聽聽 OnResetDevice();<br />聽聽聽 }<br />}</span></div><span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(0, 0, 0);">TestCooperativeLevel()</span><span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(0, 0, 0);">==</span><span style="color: rgb(0, 0, 0);">聽D3DERR_DEVICENOTRESET鏃訛紝灝卞彲浠ユ仮澶嶈澶囦簡銆?br />浜庢槸錛屾垜浠皟鐢?/span><span style="color: rgb(0, 0, 0);">OnLostDevice(</span><span style="color: rgb(0, 0, 0);">)</span>璁〥3DPOOL_DEFAULT鍔犺澆鐨勮祫婧愰噴鏀炬帀錛屼箣鍚庯紝璋冪敤<span style="color: rgb(0, 0, 0);">OnResetDevice()鏉ユ仮澶嶈澶囧氨鍙互浜嗐?br /><br />鎬庝箞鎭㈠璁懼鍛紵<br /><div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: rgb(0, 0, 255);">void</span><span style="color: rgb(0, 0, 0);">聽OnResetDevice(</span><span style="color: rgb(0, 0, 255);">void</span><span style="color: rgb(0, 0, 0);">)<br />{<br />聽聽聽聽</span><span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);">(FAILED(m_pIDirect3DDevice</span><span style="color: rgb(0, 0, 0);">-></span><span style="color: rgb(0, 0, 0);">Reset(</span><span style="color: rgb(0, 0, 0);">&</span><span style="color: rgb(0, 0, 0);">d3dpp)))<br />聽聽聽聽{<br />聽聽聽聽聽聽聽聽</span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);">;<br />聽聽聽聽}<br /><br />聽聽聽聽m_sprite</span><span style="color: rgb(0, 0, 0);">-></span><span style="color: rgb(0, 0, 0);">OnResetDevice();<br />聽聽聽聽m_font</span><span style="color: rgb(0, 0, 0);">-></span><span style="color: rgb(0, 0, 0);">OnResetDevice();<br /><br />聽聽聽聽InitDevice();<br />}</span></div>鍏堣D3D璁懼reset錛岀劧鍚庤皟鐢?/span>ID3DXFont鍜孖D3DXSprite鐨勬仮澶嶅嚱鏁幫紝鏈鍚庯紝闇瑕佹妸<span style="color: rgb(0, 0, 0);">D3D璁懼涓殑鐘舵佸晩錛岀煩闃靛彉鎹㈠晩榪欎簺閲嶆柊璁劇疆涓嬪氨瀹屾垚浜嗭紝涔熷氨鏄皟鐢?/span><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);">InitDevice()銆?br /><br /><div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: rgb(0, 0, 255);">void</span><span style="color: rgb(0, 0, 0);">聽InitDevice()<br />{<br />m_pIDirect3DDevice</span><span style="color: rgb(0, 0, 0);">-></span><span style="color: rgb(0, 0, 0);">SetRenderState(聽D3DRS_ZENABLE,聽TRUE聽);<br /><br />m_pIDirect3DDevice</span><span style="color: rgb(0, 0, 0);">-></span><span style="color: rgb(0, 0, 0);">SetRenderState(聽D3DRS_AMBIENT,聽</span><span style="color: rgb(0, 0, 0);">0xffffffff</span><span style="color: rgb(0, 0, 0);">聽);<br /><br />m_pIDirect3DDevice</span><span style="color: rgb(0, 0, 0);">-></span><span style="color: rgb(0, 0, 0);">SetSamplerState(</span><span style="color: rgb(0, 0, 0);">0</span><span style="color: rgb(0, 0, 0);">,聽D3DSAMP_MAGFILTER,聽D3DTEXF_LINEAR);<br />m_pIDirect3DDevice</span><span style="color: rgb(0, 0, 0);">-></span><span style="color: rgb(0, 0, 0);">SetSamplerState(</span><span style="color: rgb(0, 0, 0);">0</span><span style="color: rgb(0, 0, 0);">,聽D3DSAMP_MINFILTER,聽D3DTEXF_LINEAR);<br />m_pIDirect3DDevice</span><span style="color: rgb(0, 0, 0);">-></span><span style="color: rgb(0, 0, 0);">SetSamplerState(</span><span style="color: rgb(0, 0, 0);">0</span><span style="color: rgb(0, 0, 0);">,聽D3DSAMP_MIPFILTER,聽D3DTEXF_POINT);<br /><br />D3DXMatrixPerspectiveFovLH(聽</span><span style="color: rgb(0, 0, 0);">&</span><span style="color: rgb(0, 0, 0);">matProj,聽D3DX_PI</span><span style="color: rgb(0, 0, 0);">/</span><span style="color: rgb(0, 0, 0);">4</span><span style="color: rgb(0, 0, 0);">,聽</span><span style="color: rgb(0, 0, 0);">1.0f</span><span style="color: rgb(0, 0, 0);">,聽</span><span style="color: rgb(0, 0, 0);">1.0f</span><span style="color: rgb(0, 0, 0);">,聽</span><span style="color: rgb(0, 0, 0);">1000.0f</span><span style="color: rgb(0, 0, 0);">聽);<br />m_pIDirect3DDevice</span><span style="color: rgb(0, 0, 0);">-></span><span style="color: rgb(0, 0, 0);">SetTransform(聽D3DTS_PROJECTION,聽</span><span style="color: rgb(0, 0, 0);">&</span><span style="color: rgb(0, 0, 0);">matProj聽);<br /><br />vEyeVec</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">D3DXVECTOR3(</span><span style="color: rgb(0, 0, 0);">0.0f</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(0, 0, 0);">0.0f</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">1.0f</span><span style="color: rgb(0, 0, 0);">);<br />vLookatVec</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">D3DXVECTOR3(</span><span style="color: rgb(0, 0, 0);">0.0f</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(0, 0, 0);">0.0f</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(0, 0, 0);">0.0f</span><span style="color: rgb(0, 0, 0);">);<br />vUpVec</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">D3DXVECTOR3(</span><span style="color: rgb(0, 0, 0);">0.0f</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(0, 0, 0);">1.0f</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(0, 0, 0);">0.0f</span><span style="color: rgb(0, 0, 0);">);<br />D3DXMatrixLookAtLH(聽</span><span style="color: rgb(0, 0, 0);">&</span><span style="color: rgb(0, 0, 0);">matView,聽</span><span style="color: rgb(0, 0, 0);">&</span><span style="color: rgb(0, 0, 0);">vEyeVec,聽</span><span style="color: rgb(0, 0, 0);">&</span><span style="color: rgb(0, 0, 0);">vLookatVec,聽</span><span style="color: rgb(0, 0, 0);">&</span><span style="color: rgb(0, 0, 0);">vUpVec聽);<br />m_pIDirect3DDevice</span><span style="color: rgb(0, 0, 0);">-></span><span style="color: rgb(0, 0, 0);">SetTransform(聽D3DTS_VIEW,聽</span><span style="color: rgb(0, 0, 0);">&</span><span style="color: rgb(0, 0, 0);">matView聽);<br /><br />}</span></div><br /></span></span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 0, 0);"><br /></span><font color="#000000">鍟婏紝榪欐牱璁懼涓㈠け灝卞鐞嗗ソ浜?br /><br />//<br /></font><font color="#ffffff">tag:DirectX 3D聽 d3d lost device TestCooperativeLevel OnLostDevice</font><font color="#ffffff"> 鎭㈠璁懼 璁懼涓㈠け DeviceLost</font><font color="#000000"><br /></font><br /><img src ="http://m.shnenglu.com/billhsu/aggbug/98823.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.shnenglu.com/billhsu/" target="_blank">Bill Hsu</a> 2009-10-17 13:10 <a href="http://m.shnenglu.com/billhsu/archive/2009/10/17/98823.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>娓告垙寮鍙戣呭勾浼?009http://m.shnenglu.com/billhsu/archive/2009/10/11/98318.htmlBill HsuBill HsuSun, 11 Oct 2009 09:56:00 GMThttp://m.shnenglu.com/billhsu/archive/2009/10/11/98318.htmlhttp://m.shnenglu.com/billhsu/comments/98318.htmlhttp://m.shnenglu.com/billhsu/archive/2009/10/11/98318.html#Feedback0http://m.shnenglu.com/billhsu/comments/commentRss/98318.htmlhttp://m.shnenglu.com/billhsu/services/trackbacks/98318.html

鐪嬪埌浜嗕笉灝戞瘮杈冮渿鎾肩殑鎶鏈?br /> 鎰熻Е鏈娣辯殑榪樻槸Cry Engine3鐨勫睍鍙幫紝
浠栦滑鐨勬涓栦唬鏁堟灉澶己澶т簡錛岃繕鏈夐偅涓満鏅紪杈戝櫒錛屾劅瑙夋棤鏁屼簡=_=

鐙珛娓告垙灞曚笂鐨勪竴浜涙父鎴忓垱鎰忚繕鏄緢濂界殑錛屽彲鎴戠帺涓嶅ソ===


閯欒涓嬭吘璁父鎴忥紝鍗犱簡濂藉ぇ涓涓彴錛屽氨鎽嗕簡2涓樉紺哄櫒鈥︹?br />
鎷嶇殑鐓х墖









Bill Hsu 2009-10-11 17:56 鍙戣〃璇勮
]]>
3d緙栫▼鐨勬棤鏁岀粍鍚?/title><link>http://m.shnenglu.com/billhsu/archive/2009/08/03/91991.html</link><dc:creator>Bill Hsu</dc:creator><author>Bill Hsu</author><pubDate>Mon, 03 Aug 2009 00:35:00 GMT</pubDate><guid>http://m.shnenglu.com/billhsu/archive/2009/08/03/91991.html</guid><wfw:comment>http://m.shnenglu.com/billhsu/comments/91991.html</wfw:comment><comments>http://m.shnenglu.com/billhsu/archive/2009/08/03/91991.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.shnenglu.com/billhsu/comments/commentRss/91991.html</wfw:commentRss><trackback:ping>http://m.shnenglu.com/billhsu/services/trackbacks/91991.html</trackback:ping><description><![CDATA[鍙戠幇鏈変簡Irrlicht+IrrNewt+IrrKlang 錛?d緙栫▼灝辨棤鏁屼簡銆傘?br /><br /> 綆浠嬩竴涓?br /><br /> 1.Irrlicht<br /><div forimg="1"><a target="_blank"><img src="http://irrlicht.sourceforge.net/images/general/irrlichtlogo.gif" small="0" class="blogimg" border="0" /></a></div> Irrlicht鍦ㄥ紑婧?d寮曟搸閲岀畻寰堝ソ鐨勪竴涓紝<br /> 鑰屼笖瀹冩槸LGPL( Lesser General Public License)鍗忚鐨勶紝浣犲彲浠ラ殢鎰忎嬌鐢ㄥ畠銆?br /> 涓婚〉錛?a target="_blank">http://irrlicht.sourceforge.net/</a><br /><br /> 2.IrrNewt<br /><div forimg="1"><a target="_blank"><img src="http://aresfps.sourceforge.net/irrnewt.gif" small="0" class="blogimg" border="0" height="64" width="219" /></a></div> IrrNewt鏄妸Newton dynamic(涓涓墿鐞嗗紩鎿?鍜孖rrlicht(3d鍥懼艦寮曟搸)緇撳悎鐨勪竴涓簱錛?br /> 鐢ㄤ簡瀹冪殑紜細璁╂父鎴忔晥鏋滃緢闇囨捈銆?br /> 涓婚〉錛?a target="_blank">http://aresfps.sourceforge.net/irrnewt.htm</a><br /><br /> 3.IrrKlang<br /><div forimg="1"><a target="_blank"><img src="http://www.ambiera.com/irrklang/images/irrklang2_link_big.png" small="0" class="blogimg" border="0" height="63" width="218" /></a></div> 瀹冩槸涓篒rrlicht璁捐鐨勫0闊沖紩鎿庯紝鏀寔3d鍜?d澹版晥銆?br /> 涓婚〉錛?a target="_blank">http://www.ambiera.com/irrklang/</a><img src ="http://m.shnenglu.com/billhsu/aggbug/91991.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.shnenglu.com/billhsu/" target="_blank">Bill Hsu</a> 2009-08-03 08:35 <a href="http://m.shnenglu.com/billhsu/archive/2009/08/03/91991.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鑷繁鍐欑殑3D娓告垙http://m.shnenglu.com/billhsu/archive/2009/07/29/91578.htmlBill HsuBill HsuWed, 29 Jul 2009 05:04:00 GMThttp://m.shnenglu.com/billhsu/archive/2009/07/29/91578.htmlhttp://m.shnenglu.com/billhsu/comments/91578.htmlhttp://m.shnenglu.com/billhsu/archive/2009/07/29/91578.html#Feedback6http://m.shnenglu.com/billhsu/comments/commentRss/91578.htmlhttp://m.shnenglu.com/billhsu/services/trackbacks/91578.html

榪欎釜娓告垙浣跨敤浜嗘垜鑷繁寮鍙戠殑寮婧?D寮曟搸Rap3d銆?br /> 涓漢鎰熻Rap3d鐢ㄨ搗鏉ュ緢鏂逛究錛?br /> 濡傛灉鎮(zhèn)ㄦ兂浣跨敤錛岃璁塊棶Rap3d鍦╯ourceforge鐨勯」鐩富欏點?br />http://rap3d.sf.net

娓告垙浠嬬粛錛?br /> 鍦扮悆琚伀鏄熶漢鍗犻錛?br /> 浣犻┚椹朵漢綾繪渶鍏堣繘鐨勯鑸光滅寷紱解濆彿錛?br /> 鍐插叆浜嗙伀鏄熶漢鍩哄湴錛屽媷鏁㈠湴鎴樻枟錛?br /> 鍦扮悆鍛借繍錛屽湪浣犱箣鎵嬧︹?br />



寮鍙戠幆澧冿細
Visual C++ 2003 & Directx9.0c SDK
鍦╳indows緋葷粺閮藉彲浠ヨ繍琛?br />
鎿嶄綔錛?br /> 鐢ㄤ笂涓嬪乏鍙抽敭鎺у埗鎮(zhèn)ㄧ殑椋炶埞
鐢ㄦ帶鍒墮敭[Ctrl]灝勫嚮,鐢╗Esc]閿鍑烘父鎴?br /> 鍏蜂綋鐜╂硶瑙佹父鎴廐elp.


涓嬭澆鐚涚浠誨姟錛?a >
http://rap3d.googlecode.com/files/Rap3d%20Demo--RaptorMission.rar
鎴?br /> http://show.gameres.com/RaptorMission/RaptorMission.zip

Win7/Vista浣跨敤鍓嶆妸鍖呴噷鐨刣3d9.dll鍒犳帀



Bill Hsu 2009-07-29 13:04 鍙戣〃璇勮
]]>
鑷繁鍐欑殑Rap3d 寮曟搸 寮婧愬彂甯冨暒http://m.shnenglu.com/billhsu/archive/2009/07/25/91123.htmlBill HsuBill HsuSat, 25 Jul 2009 07:00:00 GMThttp://m.shnenglu.com/billhsu/archive/2009/07/25/91123.htmlhttp://m.shnenglu.com/billhsu/comments/91123.htmlhttp://m.shnenglu.com/billhsu/archive/2009/07/25/91123.html#Feedback5http://m.shnenglu.com/billhsu/comments/commentRss/91123.htmlhttp://m.shnenglu.com/billhsu/services/trackbacks/91123.html鎴戝湪sourceforge涓婄敵璇蜂簡寮婧愰」鐩紝鍦ㄩ偅閲屽彲浠ヤ笅杞藉埌Rap3d SDK.
http://rap3d.sf.net/

Rap3d SDK 涓湁寮曟搸鐨勪嬌鐢ㄨ鏄庡拰鍑犱釜渚嬪瓙錛屼笂鎵嬪緢蹇殑銆?br />

What Rap3d can do?

1.Display 3d models

2.Bill Board,Sprite,Animation..

3.Music playing

4.Draw text on screen

http://rap3d.sf.net/




Bill Hsu 2009-07-25 15:00 鍙戣〃璇勮
]]>
Rap3d鏇存柊http://m.shnenglu.com/billhsu/archive/2009/06/23/88346.htmlBill HsuBill HsuTue, 23 Jun 2009 02:12:00 GMThttp://m.shnenglu.com/billhsu/archive/2009/06/23/88346.htmlhttp://m.shnenglu.com/billhsu/comments/88346.htmlhttp://m.shnenglu.com/billhsu/archive/2009/06/23/88346.html#Feedback1http://m.shnenglu.com/billhsu/comments/commentRss/88346.htmlhttp://m.shnenglu.com/billhsu/services/trackbacks/88346.html
澧炲姞浜?TextureManager鍜?
BillBoard鍔ㄧ敾鎾斁,鏂逛究娓叉煋鐖嗙偢鏁堟灉


Bill Hsu 2009-06-23 10:12 鍙戣〃璇勮
]]>
娓告垙涓瑿PU浣跨敤鐜囩殑鎺у埗http://m.shnenglu.com/billhsu/archive/2009/06/12/87472.htmlBill HsuBill HsuFri, 12 Jun 2009 04:00:00 GMThttp://m.shnenglu.com/billhsu/archive/2009/06/12/87472.htmlhttp://m.shnenglu.com/billhsu/comments/87472.htmlhttp://m.shnenglu.com/billhsu/archive/2009/06/12/87472.html#Feedback18http://m.shnenglu.com/billhsu/comments/commentRss/87472.htmlhttp://m.shnenglu.com/billhsu/services/trackbacks/87472.html搴旇鐢⊿leep(1)鎶婂浣欑殑鐗囨榪樼粰CPU,
鍍忚繖鏍鳳細
while(true)
{
DWORD聽start_time聽
=聽GetTickCount();
if(PeekMessage(&msg,NULL,0,0,PM_REMOVE))
{
if聽(msg.message聽==聽WM_QUIT)聽break;
TranslateMessage(
&msg);
DispatchMessage(
&msg);
}

update(float(GetTickCount()聽-聽start_time));
while((GetTickCount()聽-聽start_time)聽<30)聽Sleep(1);
}

update(float timeDelta)鏄父鎴忛昏緫涓庣敾闈㈡洿鏂扮殑鍑芥暟銆?br />鏁堟灉鍥撅細



Bill Hsu 2009-06-12 12:00 鍙戣〃璇勮
]]>
3D寮曟搸璁″垝http://m.shnenglu.com/billhsu/archive/2009/06/10/87356.htmlBill HsuBill HsuWed, 10 Jun 2009 13:15:00 GMThttp://m.shnenglu.com/billhsu/archive/2009/06/10/87356.htmlhttp://m.shnenglu.com/billhsu/comments/87356.htmlhttp://m.shnenglu.com/billhsu/archive/2009/06/10/87356.html#Feedback0http://m.shnenglu.com/billhsu/comments/commentRss/87356.htmlhttp://m.shnenglu.com/billhsu/services/trackbacks/87356.html 鍏跺疄涔熷氨鏄妸涓浜涚被灝佽涓涓嬶紝璁╁紑鍙戞洿綆緇擄紝浠ュ紑婧愬拰瀹炵敤涓虹涓鍑嗗垯銆?br />



Bill Hsu 2009-06-10 21:15 鍙戣〃璇勮
]]>
瀵昏礬綆楁硶鏁寸悊http://m.shnenglu.com/billhsu/archive/2009/01/23/72513.htmlBill HsuBill HsuFri, 23 Jan 2009 09:22:00 GMThttp://m.shnenglu.com/billhsu/archive/2009/01/23/72513.htmlhttp://m.shnenglu.com/billhsu/comments/72513.htmlhttp://m.shnenglu.com/billhsu/archive/2009/01/23/72513.html#Feedback3http://m.shnenglu.com/billhsu/comments/commentRss/72513.htmlhttp://m.shnenglu.com/billhsu/services/trackbacks/72513.html
1.DFS
浼樺厛娣卞叆姣忎釜鍥撅紝鐩村埌鎵懼埌鐩爣鑺傜偣
寰寰鍙互鎵懼埌鍒拌揪璺嚎錛屽彲寰寰涓嶆槸鏈浼樼殑銆?br />09-1-23-DFS.JPG


2.BFS
騫垮害浼樺厛鍦板鎵劇洰鏍囪妭鐐廣?br />寰寰鍙互鎵懼埌鏈浼樿礬寰勶紝浣嗚楁椂澶氥?br />09-1-23-BFS.JPG


3.Dijkstra
浣跨敤浜嗗姩鎬佽鍒掞紙鍘熸枃涓О涓衡滆竟鏀炬澗鈥濓級//璇ヤ負璐績錛屾湰浜虹姜榪?br />閫熷害杈冨揩
09-1-23-Dijkstra.JPG


4.A*
涓嶥ijkstra鐩鎬技錛屼嬌鐢ㄥ惎鍙戝洜瀛?F=G+H)錛岄熷害鏄互涓婄畻娉曢噷鏈蹇殑銆?br />鍙互鐪嬬湅錛?br />http://hi.baidu.com/probill/blog/item/80d71f1b19e2fe1e8718bfe5.html
09-1-23-Astar.JPG

5.鍒涘緩瀵艱埅鍥?br />09-1-23-Nav.JPG


Bill Hsu 2009-01-23 17:22 鍙戣〃璇勮
]]>
鐢℅DI瀹炵幇3Dhttp://m.shnenglu.com/billhsu/archive/2008/12/27/70517.htmlBill HsuBill HsuSat, 27 Dec 2008 09:18:00 GMThttp://m.shnenglu.com/billhsu/archive/2008/12/27/70517.htmlhttp://m.shnenglu.com/billhsu/comments/70517.htmlhttp://m.shnenglu.com/billhsu/archive/2008/12/27/70517.html#Feedback1http://m.shnenglu.com/billhsu/comments/commentRss/70517.htmlhttp://m.shnenglu.com/billhsu/services/trackbacks/70517.html
涓嶈繃鎯蟲兂鐪嬶紝濂藉儚瀹炵幇璧鋒潵涔熷茍涓嶉毦銆傘傘?br />鍜屾墍鏈夊熀紜鐨?D紼嬪簭涓鏍鳳紝鍏堟妸瑙嗘鍙樻崲涓哄崟浣嶇珛鏂逛綋錛?br />3_thumb.jpg
鍙樻崲鐭╅樀涓猴細
5.jpg

褰撶劧錛孌irectX鍜孫penGL閲岄兘鏈夌幇鎴愮殑鍑芥暟錛?br />
//OpenGL
void聽gluPerspective(GLdouble聽fovy,
聽聽聽聽GLdouble聽aspect,
聽聽聽聽GLdouble聽zNear,
聽聽聽聽GLdouble聽zFar);

//DirectX
D3DXMatrixPerspectiveFovLH(聽D3DXMATRIX聽*pOut,
聽聽聽聽FLOAT聽fovY,
聽聽聽聽FLOAT聽Aspect,
聽聽聽聽FLOAT聽zn,
聽聽聽聽FLOAT聽zf
);聽

鍗曚綅绔嬫柟浣撲腑鐨勭偣姝d氦鎶曞獎寰楀埌鐨?x,y,z)*瑙嗗彛鍙樻崲鐭╅樀 寰楀埌 (x',y',z')銆?br />(x',y')瀵瑰簲灞忓箷鐐癸紝z'涓哄叾娣卞害錛岀敤浜庣偣鐨勭珵浜夈?br />鎶婃瘡涓笁瑙掗潰鍖歸厤綰圭悊鐢℅DI鍩烘湰鍑芥暟鐢誨嚭鏉ュ氨鍙互浜嗐?br />

CSDN鐨勯偅涓▼搴?br />rtwtsdgdg.JPG



Bill Hsu 2008-12-27 17:18 鍙戣〃璇勮
]]>
A* (A-star A鏄?瀵昏礬綆楁硶http://m.shnenglu.com/billhsu/archive/2008/11/01/65700.htmlBill HsuBill HsuSat, 01 Nov 2008 10:19:00 GMThttp://m.shnenglu.com/billhsu/archive/2008/11/01/65700.htmlhttp://m.shnenglu.com/billhsu/comments/65700.htmlhttp://m.shnenglu.com/billhsu/archive/2008/11/01/65700.html#Feedback0http://m.shnenglu.com/billhsu/comments/commentRss/65700.htmlhttp://m.shnenglu.com/billhsu/services/trackbacks/65700.html浠旂粏鐪嬩簡鐪媑amedev.net鐨勪竴鐗囨枃绔?A* Pathfinding for Beginners http://www.gamedev.net/reference/articles/article2003.asp )錛屽A*鏇翠簡瑙d簡涓鐐癸紝鍐欑偣涓滆タ璁板綍涓涓嬨?br />A*鏄竴縐嶅惎鍙戝紡鐨勭畻娉曪紝鎵璋撶殑"鍚彂寮?錛屽氨鏄姣忎竴涓悳绱㈢殑浣嶇疆榪涜璇勪及錛屼篃灝辨槸鎶婃壘鐨勪綅緗鐩爣鐨勮窛紱誨綋鎴愭壘鐐圭殑涓涓緷鎹紝鐒跺悗鐚滄祴榪欎釜鐐規(guī)槸鍚︽渶浣?"鍚彂寮?灝辨槸鐚滄祴)銆?br />
image001.jpg

涓轟簡鎵懼埌鏈浣崇殑閭d釜鐐?br />鍙互瑙勫畾錛?br />G = 浠庤搗鐐癸紝娌跨潃浜х敓鐨勮礬寰勶紝縐誨姩鍒扮綉鏍間笂鎸囧畾鏂規(guī)牸鐨勮窛紱匯?br />H = 浠庣綉鏍間笂閭d釜鏂規(guī)牸縐誨姩鍒扮粓鐐笲鐨勯浼扮Щ鍔ㄨ窛紱匯?br />
F = G + H
F鏈灝忕殑鐐瑰彲浠ヨ涓烘槸璇ラ夌殑鐐廣?br />
寮曠敤涓涓嬪師鏂囩殑緲昏瘧錛?br />鎴戜滑浠ゆ按騫蟲垨鑰呭瀭鐩寸Щ鍔ㄧ殑鑰楄垂涓?0錛屽瑙掔嚎鏂瑰悜鑰楄垂涓?4銆傛垜浠彇榪欎簺鍊兼槸鍥犱負娌垮瑙掔嚎鐨勮窛紱繪槸娌挎按騫蟲垨鍨傜洿縐誨姩鑰楄垂鐨勭殑鏍瑰彿2錛堝埆鎬曪級錛屾垨鑰呯害1.414鍊嶃備負浜嗙畝鍖栵紝鎴戜滑鐢?0鍜?4榪戜技銆傛瘮渚嬪熀鏈紜紝鍚屾椂鎴戜滑閬垮厤浜嗘眰鏍硅繍綆楀拰灝忔暟銆?br />

鏃㈢劧鎴戜滑鍦ㄨ綆楁部鐗瑰畾璺緞閫氬線鏌愪釜鏂規(guī)牸鐨凣鍊鹼紝姹傚肩殑鏂規(guī)硶灝辨槸鍙栧畠鐖惰妭鐐圭殑G鍊鹼紝鐒跺悗渚濈収瀹冪浉瀵圭埗鑺傜偣鏄瑙掔嚎鏂瑰悜鎴栬呯洿瑙掓柟鍚?闈炲瑙掔嚎)錛屽垎鍒鍔?4鍜?0銆備緥瀛愪腑榪欎釜鏂規(guī)硶鐨勯渶姹備細鍙樺緱鏇村錛屽洜涓烘垜浠粠璧風(fēng)偣鏂規(guī)牸浠ュ鑾峰彇浜嗕笉姝竴涓柟鏍箋?br />
H鍊煎彲浠ョ敤涓嶅悓鐨勬柟娉曚及綆椼傛垜浠繖閲屼嬌鐢ㄧ殑鏂規(guī)硶琚О涓烘浖鍝堥】鏂規(guī)硶錛屽畠璁$畻浠庡綋鍓嶆牸鍒扮洰鐨勬牸涔嬮棿姘村鉤鍜屽瀭鐩寸殑鏂規(guī)牸鐨勬暟閲忔誨拰錛屽拷鐣ュ瑙掔嚎鏂瑰悜銆傜劧鍚庢妸緇撴灉涔樹互10銆傝繖琚垚涓烘浖鍝堥】鏂規(guī)硶鏄洜涓哄畠鐪嬭搗鏉ュ儚璁$畻鍩庡競涓粠涓涓湴鏂瑰埌鍙﹀涓涓湴鏂圭殑琛楀尯鏁幫紝鍦ㄩ偅閲屼綘涓嶈兘娌垮瑙掔嚎鏂瑰悜絀胯繃琛楀尯銆傚緢閲嶈鐨勪竴鐐癸紝鎴戜滑蹇界暐浜嗕竴鍒囬殰紕嶇墿銆傝繖鏄鍓╀綑璺濈鐨勪竴涓及綆楋紝鑰岄潪瀹為檯鍊鹼紝榪欎篃鏄繖涓鏂規(guī)硶琚О涓哄惎鍙戝紡鐨勫師鍥犮傛兂鐭ラ亾鏇村錛熶綘鍙互鍦ㄨ繖閲屾壘鍒版柟紼嬪拰棰濆鐨勬敞瑙c?br />


絎竴姝ユ悳绱㈢殑緇撴灉鍙互鍦ㄤ笅闈㈢殑鍥捐〃涓湅鍒般侳,G鍜孒鐨勮瘎鍒嗚鍐欏湪姣忎釜鏂規(guī)牸閲屻傛濡傚湪绱ф尐璧峰鏍煎彸渚х殑鏂規(guī)牸鎵琛ㄧず鐨勶紝F琚墦鍗板湪宸︿笂瑙掞紝G鍦ㄥ乏涓嬭錛孒鍒欏湪鍙充笅瑙掋?/span>

image003.jpg

寮曠敤涓涓嬪師鏂囩殑緲昏瘧錛?/span>

鎴戜滑鍋氬涓嬫搷浣滃紑濮嬫悳绱細
聽聽聽
1錛屼粠鐐笰寮濮嬶紝騫朵笖鎶婂畠浣滀負寰呭鐞嗙偣瀛樺叆涓涓滃紑鍚垪琛ㄢ濄傚紑鍚垪琛ㄥ氨鍍忎竴寮犺喘鐗╂竻鍗曘傚敖綆$幇鍦ㄥ垪琛ㄩ噷鍙湁涓涓厓绱狅紝浣嗕互鍚庡氨浼氬璧鋒潵銆備綘鐨勮礬寰勫彲鑳戒細閫氳繃瀹冨寘鍚殑鏂規(guī)牸錛屼篃鍙兘涓嶄細銆傚熀鏈笂錛岃繖鏄竴涓緟媯鏌ユ柟鏍肩殑鍒楄〃銆?br />聽聽聽2錛屽鎵捐搗鐐瑰懆鍥存墍鏈夊彲鍒拌揪鎴栬呭彲閫氳繃鐨勬柟鏍鹼紝璺寵繃鏈夊錛屾按錛屾垨鍏朵粬鏃犳硶閫氳繃鍦板艦鐨勬柟鏍箋備篃鎶婁粬浠姞鍏ュ紑鍚垪琛ㄣ備負鎵鏈夎繖浜涙柟鏍間繚瀛樼偣A浣滀負鈥滅埗鏂規(guī)牸鈥濄傚綋鎴戜滑鎯蟲弿榪拌礬寰勭殑鏃跺欙紝鐖舵柟鏍肩殑璧勬枡鏄崄鍒嗛噸瑕佺殑銆傚悗闈細瑙i噴瀹冪殑鍏蜂綋鐢ㄩ斻?br />聽聽聽3錛屼粠寮鍚垪琛ㄤ腑鍒犻櫎鐐笰錛屾妸瀹冨姞鍏ュ埌涓涓滃叧闂垪琛ㄢ濓紝鍒楄〃涓繚瀛樻墍鏈変笉闇瑕佸啀嬈℃鏌ョ殑鏂規(guī)牸銆?br />
涓轟簡緇х畫鎼滅儲錛屾垜浠畝鍗曠殑浠庡紑鍚垪琛ㄤ腑閫夋嫨F鍊兼渶浣庣殑鏂規(guī)牸銆傜劧鍚庯紝瀵歸変腑鐨勬柟鏍煎仛濡備笅澶勭悊錛?br />
聽聽聽
4錛屾妸瀹冧粠寮鍚垪琛ㄤ腑鍒犻櫎錛岀劧鍚庢坊鍔犲埌鍏抽棴鍒楄〃涓?br />聽聽聽5錛屾鏌ユ墍鏈夌浉閭繪牸瀛愩傝煩榪囬偅浜涘凡緇忓湪鍏抽棴鍒楄〃涓殑鎴栬呬笉鍙氳繃鐨?鏈夊錛屾按鐨勫湴褰紝鎴栬呭叾浠栨棤娉曢氳繃鐨勫湴褰?錛屾妸浠栦滑娣誨姞榪涘紑鍚垪琛紝濡傛灉浠栦滑榪樹笉鍦ㄩ噷闈㈢殑璇濄傛妸閫変腑鐨勬柟鏍間綔涓烘柊鐨勬柟鏍肩殑鐖惰妭鐐廣?br />聽聽聽6錛屽鏋滄煇涓浉閭繪牸宸茬粡鍦ㄥ紑鍚垪琛ㄩ噷浜嗭紝媯鏌ョ幇鍦ㄧ殑榪欐潯璺緞鏄惁鏇村ソ銆傛崲鍙ヨ瘽璇達紝媯鏌ュ鏋滄垜浠敤鏂扮殑璺緞鍒拌揪瀹冪殑璇濓紝G鍊兼槸鍚︿細鏇翠綆涓浜涖傚鏋滀笉鏄紝閭e氨浠涔堥兘涓嶅仛銆?br />聽聽聽聽聽聽鍙︿竴鏂歸潰錛屽鏋滄柊鐨凣鍊兼洿浣庯紝閭e氨鎶婄浉閭繪柟鏍肩殑鐖惰妭鐐規(guī)敼涓虹洰鍓嶉変腑鐨勬柟鏍鹼紙鍦ㄤ笂闈㈢殑鍥捐〃涓紝鎶婄澶寸殑鏂瑰悜鏀逛負鎸囧悜榪欎釜鏂規(guī)牸錛夈傛渶鍚庯紝閲嶆柊璁$畻F鍜孏鐨勫箋傚鏋滆繖鐪嬭搗鏉ヤ笉澶熸竻鏅幫紝浣犲彲浠ョ湅涓嬮潰鐨勫浘紺恒?/span>


image004.jpg

image005.jpg

image006.jpg

image007.jpg

榪欐牱灝卞彲浠ユ壘鍒版渶浣寵礬寰勪簡銆?br />



Bill Hsu 2008-11-01 18:19 鍙戣〃璇勮
]]>
鍥涘厓鏁板叆闂?/title><link>http://m.shnenglu.com/billhsu/archive/2008/09/30/63099.html</link><dc:creator>Bill Hsu</dc:creator><author>Bill Hsu</author><pubDate>Tue, 30 Sep 2008 11:34:00 GMT</pubDate><guid>http://m.shnenglu.com/billhsu/archive/2008/09/30/63099.html</guid><wfw:comment>http://m.shnenglu.com/billhsu/comments/63099.html</wfw:comment><comments>http://m.shnenglu.com/billhsu/archive/2008/09/30/63099.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://m.shnenglu.com/billhsu/comments/commentRss/63099.html</wfw:commentRss><trackback:ping>http://m.shnenglu.com/billhsu/services/trackbacks/63099.html</trackback:ping><description><![CDATA[鍥涘厓鏁板父甯稿彲浠ュ湪3D鐨勪功涓婄湅鍒般?br />浣嗘垜鐨勯偅鏈?D鍥懼艦瀛︿功涓婏紝鍦ㄦ病璁插洓鍏冩暟鏄共浠涔堢殑涔嬪墠錛屽氨鍒椾簡鍑犲紶綰哥殑鍏紡錛?br />澶ф鍥犱負鑷繁榪樺湪涓婇珮涓紝涓嶇煡閬撶殑澶錛岀湅浜嗗崐澶╂病鐪嬫噦銆傘傘?br />緇堜簬錛屽湪gameres涓婄湅鍒頒簡鏌愬己浜虹炕璇戠殑涓涓?鍏冩暟瀹濆吀 鈥濓紙鍘熸枃鏄棩鏈漢鍐欑殑銆傘傘傦級錛屾劅瑙夊緢濂斤紝鍒嗕韓涓嬨?br /><br /><div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: rgb(0, 0, 0);">鈽呮棆杞瘒錛?br />銆鎴戝皢璇存槑浣跨敤浜嗗洓鍏冩暟錛坰i聽yuan聽shu,聽quaternion錛夌殑鏃嬭漿鐨勬搷浣滄楠?br />錛?/span><span style="color: rgb(0, 0, 0);">錛?/span><span style="color: rgb(0, 0, 0);">錛夊洓鍏冩暟鐨勮櫄閮紝瀹為儴鍜屽啓娉?br />鎵璋撳洓鍏冩暟錛屽氨鏄妸4涓疄鏁扮粍鍚堣搗鏉ョ殑涓滆タ銆?br />4涓厓绱犱腑錛屼竴涓槸瀹為儴錛屽叾浣?涓槸铏氶儴銆?br />姣斿錛屽彨鍋歈鐨勫洓鍏冩暟錛屽疄閮╰鑰岃櫄閮ㄦ槸x,y,z鏋勬垚錛屽垯鍍忎笅闈㈣繖鏍峰啓銆?br />Q聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽(t;聽x,聽y,聽z)聽<br />鍙堬紝浣跨敤鍚戦噺聽V</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">(x,y,z)錛?br />Q聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽(t;聽V)聽聽<br />涔熷彲浠ヨ繖涔堝啓銆?br /><br />姝h鍦扮敤铏氭暟鍗曚綅i,j,k鐨勫啓娉曠殑璇濓紝<br />Q聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽t聽</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">聽xi聽</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">聽yj聽</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">聽zk聽<br />涔熻繖鏍峰啓錛屼笉榪囷紝鎴戜笉澶т嬌鐢?br /><br />錛?/span><span style="color: rgb(0, 0, 0);">錛?/span><span style="color: rgb(0, 0, 0);">錛夊洓鍏冩暟涔嬮棿鐨勪箻娉?br />铏氭暟鍗曚綅涔嬮棿鐨勪箻娉暵?br />ii聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">1</span><span style="color: rgb(0, 0, 0);">,聽ij聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">ji聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽k聽(鍏朵粬鐨勭粍鍚堜篃鏄驚鐜湴浠ヤ笅鍚屾枃)聽<br />鏈夎繖涔堜竴縐嶈鍒欍傦紙鎴戞昏寰楋紝榪欏氨鍍忔槸鍚戦噺縐紙澶栫Н錛夛紝瀵瑰惂錛壜?br />鐢ㄨ繖涓鍒欎竴鐐圭偣鍦拌綆楀緢楹葷儲錛屾墍浠ヨ鐢ㄥ儚涓嬮潰榪欐牱鐨勫叕寮忚綆椼?br /><br />A聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽(a;聽U)聽<br />B聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽(b;聽V)聽<br />AB聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽(ab聽</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">聽U路V;聽aV聽</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">聽bU聽</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">聽U脳V)<br />涓嶈繃錛屸淯路V鈥濇槸鍐呯Н錛屻孶脳V銆嶆槸澶栫Н鐨勬剰鎬濄?br />娉ㄦ剰錛氫竴鑸珹B</span><span style="color: rgb(0, 0, 0);"><></span><span style="color: rgb(0, 0, 0);">BA鎵浠ヤ箻娉曠殑宸﹀彸瑕佹敞鎰忥紒<br /><br />錛?/span><span style="color: rgb(0, 0, 0);">3</span><span style="color: rgb(0, 0, 0);">錛?嬈″厓鐨勫潗鏍囩殑鍥涘厓鏁拌〃紺?br />濡傝灝嗘煇鍧愭爣(x,y,z)鐢ㄥ洓鍏冩暟琛ㄧず錛?br />P聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽(</span><span style="color: rgb(0, 0, 0);">0</span><span style="color: rgb(0, 0, 0);">;聽x,聽y,聽z)聽<br />鍒欒榪欎箞鍐欍?br />聽<br />鍙﹀錛屽嵆浣垮疄閮ㄦ槸闆朵互澶栫殑鍊鹼紝涓嬫枃鐨勭粨鏋滀篃涓鏍楓傜敤闆剁殑璇濈渷浜嬫墍浠ユ垜鎺ㄨ崘銆?br /><br />錛?/span><span style="color: rgb(0, 0, 0);">錛?/span><span style="color: rgb(0, 0, 0);">錛夋棆杞殑鍥涘厓鏁拌〃紺?br />浠ュ師鐐逛負鏃嬭漿涓績錛屾棆杞殑杞存槸(偽,聽尾,聽緯)<br />錛堜絾聽偽</span><span style="color: rgb(0, 0, 0);">^</span><span style="color: rgb(0, 0, 0);">2</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">聽尾</span><span style="color: rgb(0, 0, 0);">^</span><span style="color: rgb(0, 0, 0);">2</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">聽緯</span><span style="color: rgb(0, 0, 0);">^</span><span style="color: rgb(0, 0, 0);">2</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">1</span><span style="color: rgb(0, 0, 0);">錛夛紝聽<br />錛堝彸鎵嬬郴鐨勫潗鏍囧畾涔夌殑璇濓紝鏈涘悜鍚戦噺(偽,聽尾,聽緯)鐨勫墠榪涙柟鍚戝弽鏃墮拡鍦幫級聽<br />杞歌鐨勬棆杞紝鐢ㄥ洓鍏冩暟琛ㄧず灝辨槸錛?br />Q聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽(cos(胃</span><span style="color: rgb(0, 0, 0);">/</span><span style="color: rgb(0, 0, 0);">2</span><span style="color: rgb(0, 0, 0);">);聽偽聽sin(胃</span><span style="color: rgb(0, 0, 0);">/</span><span style="color: rgb(0, 0, 0);">2</span><span style="color: rgb(0, 0, 0);">),聽尾聽sin(胃</span><span style="color: rgb(0, 0, 0);">/</span><span style="color: rgb(0, 0, 0);">2</span><span style="color: rgb(0, 0, 0);">),聽緯聽sin(胃</span><span style="color: rgb(0, 0, 0);">/</span><span style="color: rgb(0, 0, 0);">2</span><span style="color: rgb(0, 0, 0);">))聽<br />R聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽(cos(胃</span><span style="color: rgb(0, 0, 0);">/</span><span style="color: rgb(0, 0, 0);">2</span><span style="color: rgb(0, 0, 0);">);聽</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">偽聽sin(胃</span><span style="color: rgb(0, 0, 0);">/</span><span style="color: rgb(0, 0, 0);">2</span><span style="color: rgb(0, 0, 0);">),聽</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">尾聽sin(胃</span><span style="color: rgb(0, 0, 0);">/</span><span style="color: rgb(0, 0, 0);">2</span><span style="color: rgb(0, 0, 0);">),聽</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">緯聽sin(胃</span><span style="color: rgb(0, 0, 0);">/</span><span style="color: rgb(0, 0, 0);">2</span><span style="color: rgb(0, 0, 0);">))聽<br />(鍙﹀R聽鍙燪聽鐨勫叡杞洓鍏冩暟銆傦級聽<br /><br />閭d箞錛屽瑕佸疄琛屾棆杞紝<br /><b>鍒櫬?font color="#ff6600">R聽P聽Q<font color="#ffcc00">聽</font></font></b></span><font color="#ffcc00"><b><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽(</span><span style="color: rgb(0, 0, 0);">0</span></b></font><span style="color: rgb(0, 0, 0);"><b><font color="#ff6600">;聽絳旀)</font>聽</b><br /><br />璇峰儚榪欐牱涓夋槑娌誨紡鍦拌綆椼傝繖涓肩殑铏氶儴灝辨槸鏃嬭漿涔嬪悗鐨勭偣鐨勫潗鏍囧箋?br />聽錛堝彟澶栵紝瀹為儴搴旇涓洪浂銆傝楠岀畻鐪嬬湅錛壜?/span></div><br />渚嬪瓙浠g爜<br /><br /><div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: rgb(128, 128, 128);">///</span><span style="color: rgb(0, 128, 0);">聽Quaternion.cpp聽<br /></span><span style="color: rgb(128, 128, 128);">///</span><span style="color: rgb(0, 128, 0);">聽(C)聽Toru聽Nakata,聽toru-nakata@aist.go.jp聽<br /></span><span style="color: rgb(128, 128, 128);">///</span><span style="color: rgb(0, 128, 0);">聽2004聽Dec聽29聽</span><span style="color: rgb(128, 128, 128);"><br /></span><span style="color: rgb(0, 0, 0);">聽聽<br />#include聽</span><span style="color: rgb(0, 0, 0);"><</span><span style="color: rgb(0, 0, 0);">math.h</span><span style="color: rgb(0, 0, 0);">></span><span style="color: rgb(0, 0, 0);">聽<br />#include聽</span><span style="color: rgb(0, 0, 0);"><</span><span style="color: rgb(0, 0, 0);">iostream.h</span><span style="color: rgb(0, 0, 0);">></span><span style="color: rgb(0, 0, 0);">聽<br />聽聽<br /></span><span style="color: rgb(128, 128, 128);">///</span><span style="color: rgb(0, 128, 0);">聽Define聽Data聽type聽</span><span style="color: rgb(128, 128, 128);"><br /></span><span style="color: rgb(0, 0, 0);">typedef聽</span><span style="color: rgb(0, 0, 255);">struct</span><span style="color: rgb(0, 0, 0);">聽<br />{聽<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="color: rgb(0, 0, 255);">double</span><span style="color: rgb(0, 0, 0);">聽t;聽</span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">聽real-component聽</span><span style="color: rgb(0, 128, 0);"><br /></span><span style="color: rgb(0, 0, 0);">聽聽聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="color: rgb(0, 0, 255);">double</span><span style="color: rgb(0, 0, 0);">聽x;聽</span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">聽x-component聽</span><span style="color: rgb(0, 128, 0);"><br /></span><span style="color: rgb(0, 0, 0);">聽聽聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="color: rgb(0, 0, 255);">double</span><span style="color: rgb(0, 0, 0);">聽y;聽</span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">聽y-component聽</span><span style="color: rgb(0, 128, 0);"><br /></span><span style="color: rgb(0, 0, 0);">聽聽聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="color: rgb(0, 0, 255);">double</span><span style="color: rgb(0, 0, 0);">聽z;聽</span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">聽z-component聽</span><span style="color: rgb(0, 128, 0);"><br /></span><span style="color: rgb(0, 0, 0);">}聽quaternion;聽<br />聽聽<br /><br /></span><b><span style="color: rgb(128, 128, 128);">///</span><span style="color: rgb(0, 128, 0);">/ Bill 娉細Kakezan </span></b><span style="color: rgb(128, 128, 128);"><font color="#669900"><b>鍦ㄦ棩璇噷鏄?鈥滀箻娉曗濈殑鎰忔?/b></font><br /></span><span style="color: rgb(0, 0, 0);">quaternion聽Kakezan(quaternion聽left,聽quaternion聽right)聽<br />{聽<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽quaternion聽ans;聽<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="color: rgb(0, 0, 255);">double</span><span style="color: rgb(0, 0, 0);">聽d1,聽d2,聽d3,聽d4;聽<br />聽聽<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽d1聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽聽left.t聽</span><span style="color: rgb(0, 0, 0);">*</span><span style="color: rgb(0, 0, 0);">聽right.t;聽<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽d2聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">left.x聽</span><span style="color: rgb(0, 0, 0);">*</span><span style="color: rgb(0, 0, 0);">聽right.x;聽<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽d3聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">left.y聽</span><span style="color: rgb(0, 0, 0);">*</span><span style="color: rgb(0, 0, 0);">聽right.y;聽<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽d4聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">left.z聽</span><span style="color: rgb(0, 0, 0);">*</span><span style="color: rgb(0, 0, 0);">聽right.z;聽<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽ans.t聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽d1</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">聽d2</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">聽d3</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">聽d4;聽<br />聽聽<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽d1聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽聽left.t聽</span><span style="color: rgb(0, 0, 0);">*</span><span style="color: rgb(0, 0, 0);">聽right.x;聽<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽d2聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽聽right.t聽</span><span style="color: rgb(0, 0, 0);">*</span><span style="color: rgb(0, 0, 0);">聽left.x;聽<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽d3聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽聽left.y聽</span><span style="color: rgb(0, 0, 0);">*</span><span style="color: rgb(0, 0, 0);">聽right.z;聽<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽d4聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">left.z聽</span><span style="color: rgb(0, 0, 0);">*</span><span style="color: rgb(0, 0, 0);">聽right.y;聽<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽ans.x聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽聽d1</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">聽d2</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">聽d3</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">聽d4;聽<br />聽聽<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽d1聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽聽left.t聽</span><span style="color: rgb(0, 0, 0);">*</span><span style="color: rgb(0, 0, 0);">聽right.y;聽<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽d2聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽聽right.t聽</span><span style="color: rgb(0, 0, 0);">*</span><span style="color: rgb(0, 0, 0);">聽left.y;聽<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽d3聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽聽left.z聽</span><span style="color: rgb(0, 0, 0);">*</span><span style="color: rgb(0, 0, 0);">聽right.x;聽<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽d4聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">left.x聽</span><span style="color: rgb(0, 0, 0);">*</span><span style="color: rgb(0, 0, 0);">聽right.z;聽<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽ans.y聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽聽d1</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">聽d2</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">聽d3</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">聽d4;聽<br />聽聽<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽d1聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽聽left.t聽</span><span style="color: rgb(0, 0, 0);">*</span><span style="color: rgb(0, 0, 0);">聽right.z;聽<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽d2聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽聽right.t聽</span><span style="color: rgb(0, 0, 0);">*</span><span style="color: rgb(0, 0, 0);">聽left.z;聽<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽d3聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽聽left.x聽</span><span style="color: rgb(0, 0, 0);">*</span><span style="color: rgb(0, 0, 0);">聽right.y;聽<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽d4聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">left.y聽</span><span style="color: rgb(0, 0, 0);">*</span><span style="color: rgb(0, 0, 0);">聽right.x;聽<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽ans.z聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽聽d1</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">聽d2</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">聽d3</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">聽d4;聽<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);">聽ans;聽<br />}聽<br />聽聽<br /></span><span style="color: rgb(128, 128, 128);">///</span><span style="color: rgb(0, 128, 0);">/聽Make聽Rotational聽quaternion聽</span><span style="color: rgb(128, 128, 128);"><br /></span><span style="color: rgb(0, 0, 0);">quaternion聽MakeRotationalQuaternion(</span><span style="color: rgb(0, 0, 255);">double</span><span style="color: rgb(0, 0, 0);">聽radian,聽</span><span style="color: rgb(0, 0, 255);">double</span><span style="color: rgb(0, 0, 0);">聽AxisX,聽</span><span style="color: rgb(0, 0, 255);">double</span><span style="color: rgb(0, 0, 0);">聽AxisY,聽</span><span style="color: rgb(0, 0, 255);">double</span><span style="color: rgb(0, 0, 0);">聽AxisZ)聽<br />{聽<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽quaternion聽ans;聽<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="color: rgb(0, 0, 255);">double</span><span style="color: rgb(0, 0, 0);">聽norm;聽<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="color: rgb(0, 0, 255);">double</span><span style="color: rgb(0, 0, 0);">聽ccc,聽sss;聽<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽ans.t聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽ans.x聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽ans.y聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽ans.z聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">0.0</span><span style="color: rgb(0, 0, 0);">;聽<br />聽聽<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽norm聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽AxisX聽</span><span style="color: rgb(0, 0, 0);">*</span><span style="color: rgb(0, 0, 0);">聽聽AxisX聽</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">聽聽AxisY聽</span><span style="color: rgb(0, 0, 0);">*</span><span style="color: rgb(0, 0, 0);">聽聽AxisY聽</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">聽聽AxisZ聽</span><span style="color: rgb(0, 0, 0);">*</span><span style="color: rgb(0, 0, 0);">聽聽AxisZ;聽<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);">(norm聽</span><span style="color: rgb(0, 0, 0);"><=</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">0.0</span><span style="color: rgb(0, 0, 0);">)聽</span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);">聽ans;聽<br />聽聽<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽norm聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">1.0</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">/</span><span style="color: rgb(0, 0, 0);">聽sqrt(norm);聽<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽AxisX聽</span><span style="color: rgb(0, 0, 0);">*=</span><span style="color: rgb(0, 0, 0);">聽norm;聽<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽AxisY聽</span><span style="color: rgb(0, 0, 0);">*=</span><span style="color: rgb(0, 0, 0);">聽norm;聽<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽AxisZ聽</span><span style="color: rgb(0, 0, 0);">*=</span><span style="color: rgb(0, 0, 0);">聽norm;聽<br />聽聽<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽ccc聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽cos(</span><span style="color: rgb(0, 0, 0);">0.5</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">*</span><span style="color: rgb(0, 0, 0);">聽radian);聽<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽sss聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽sin(</span><span style="color: rgb(0, 0, 0);">0.5</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">*</span><span style="color: rgb(0, 0, 0);">聽radian);聽<br />聽聽<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽ans.t聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽ccc;聽<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽ans.x聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽sss聽</span><span style="color: rgb(0, 0, 0);">*</span><span style="color: rgb(0, 0, 0);">聽AxisX;聽<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽ans.y聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽sss聽</span><span style="color: rgb(0, 0, 0);">*</span><span style="color: rgb(0, 0, 0);">聽AxisY;聽<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽ans.z聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽sss聽</span><span style="color: rgb(0, 0, 0);">*</span><span style="color: rgb(0, 0, 0);">聽AxisZ;聽<br />聽聽<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);">聽ans;聽<br />}聽<br />聽聽<br /></span><span style="color: rgb(128, 128, 128);">///</span><span style="color: rgb(0, 128, 0);">/聽Put聽XYZ聽into聽聽quaternion聽</span><span style="color: rgb(128, 128, 128);"><br /></span><span style="color: rgb(0, 0, 0);">quaternion聽PutXYZToQuaternion(</span><span style="color: rgb(0, 0, 255);">double</span><span style="color: rgb(0, 0, 0);">聽PosX,聽</span><span style="color: rgb(0, 0, 255);">double</span><span style="color: rgb(0, 0, 0);">聽PosY,聽</span><span style="color: rgb(0, 0, 255);">double</span><span style="color: rgb(0, 0, 0);">聽PosZ)聽<br />{聽<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽quaternion聽ans;聽<br />聽聽<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽ans.t聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">0.0</span><span style="color: rgb(0, 0, 0);">;聽<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽ans.x聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽PosX;聽<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽ans.y聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽PosY;聽<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽ans.z聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽PosZ;聽<br />聽聽<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);">聽ans;聽<br />}聽<br />聽聽<br /></span><span style="color: rgb(128, 128, 128);">///</span><span style="color: rgb(0, 128, 0);">//聽main聽</span><span style="color: rgb(128, 128, 128);"><br /></span><span style="color: rgb(0, 0, 255);">int</span><span style="color: rgb(0, 0, 0);">聽main()聽<br />{聽<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="color: rgb(0, 0, 255);">double</span><span style="color: rgb(0, 0, 0);">聽px,聽py,聽pz;聽<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="color: rgb(0, 0, 255);">double</span><span style="color: rgb(0, 0, 0);">聽ax,聽ay,聽az,聽th;聽<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽quaternion聽ppp,聽qqq,聽rrr;聽<br />聽聽<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽cout聽</span><span style="color: rgb(0, 0, 0);"><<</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">Point聽Position聽(x,聽y,聽z)聽</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);"><<</span><span style="color: rgb(0, 0, 0);">聽endl;聽<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽cout聽</span><span style="color: rgb(0, 0, 0);"><<</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">聽聽x聽=聽</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">;聽<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽cin聽</span><span style="color: rgb(0, 0, 0);">>></span><span style="color: rgb(0, 0, 0);">聽px;聽<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽cout聽</span><span style="color: rgb(0, 0, 0);"><<</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">聽聽y聽=聽</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">;聽<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽cin聽</span><span style="color: rgb(0, 0, 0);">>></span><span style="color: rgb(0, 0, 0);">聽py;聽<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽cout聽</span><span style="color: rgb(0, 0, 0);"><<</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">聽聽z聽=聽</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">;聽<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽cin聽</span><span style="color: rgb(0, 0, 0);">>></span><span style="color: rgb(0, 0, 0);">聽pz;聽<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽ppp聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽PutXYZToQuaternion(px,聽py,聽pz);聽<br />聽聽<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="color: rgb(0, 0, 255);">while</span><span style="color: rgb(0, 0, 0);">(</span><span style="color: rgb(0, 0, 0);">1</span><span style="color: rgb(0, 0, 0);">)聽{聽<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽cout聽</span><span style="color: rgb(0, 0, 0);"><<</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">\nRotation聽Degree聽?聽(Enter聽0聽to聽Quit)聽</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);"><<</span><span style="color: rgb(0, 0, 0);">聽endl;聽<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽cout聽</span><span style="color: rgb(0, 0, 0);"><<</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">聽聽angle聽=聽</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">;聽<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽cin聽</span><span style="color: rgb(0, 0, 0);">>></span><span style="color: rgb(0, 0, 0);">聽th;聽<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);">(th聽</span><span style="color: rgb(0, 0, 0);">==</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">0.0</span><span style="color: rgb(0, 0, 0);">)聽</span><span style="color: rgb(0, 0, 255);">break</span><span style="color: rgb(0, 0, 0);">;聽<br />聽聽<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽cout聽</span><span style="color: rgb(0, 0, 0);"><<</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">Rotation聽Axis聽Direction聽?聽(x,聽y,聽z)聽</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);"><<</span><span style="color: rgb(0, 0, 0);">聽endl;聽<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽cout聽</span><span style="color: rgb(0, 0, 0);"><<</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">聽聽x聽=聽</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">;聽<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽cin聽</span><span style="color: rgb(0, 0, 0);">>></span><span style="color: rgb(0, 0, 0);">聽ax;聽<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽cout聽</span><span style="color: rgb(0, 0, 0);"><<</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">聽聽y聽=聽</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">;聽<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽cin聽</span><span style="color: rgb(0, 0, 0);">>></span><span style="color: rgb(0, 0, 0);">聽ay;聽<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽cout聽</span><span style="color: rgb(0, 0, 0);"><<</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">聽聽z聽=聽</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">;聽<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽cin聽</span><span style="color: rgb(0, 0, 0);">>></span><span style="color: rgb(0, 0, 0);">聽az;聽<br />聽聽<br />聽聽<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽th聽</span><span style="color: rgb(0, 0, 0);">*=</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">3.1415926535897932384626433832795</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">/</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">180.0</span><span style="color: rgb(0, 0, 0);">;聽</span><span style="color: rgb(128, 128, 128);">///</span><span style="color: rgb(0, 128, 0);">聽Degree聽->聽radian;聽</span><span style="color: rgb(128, 128, 128);"><br /></span><span style="color: rgb(0, 0, 0);">聽聽<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽qqq聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽MakeRotationalQuaternion(th,聽ax,聽ay,聽az);聽<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽rrr聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽MakeRotationalQuaternion(</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">th,聽ax,聽ay,聽az);聽<br />聽聽<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽ppp聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽Kakezan(rrr,聽ppp);聽<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽ppp聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽Kakezan(ppp,聽qqq);聽<br />聽聽<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽cout聽</span><span style="color: rgb(0, 0, 0);"><<</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">\nAnser聽X聽=聽</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);"><<</span><span style="color: rgb(0, 0, 0);">聽ppp.x聽<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="color: rgb(0, 0, 0);"><<</span><span style="color: rgb(0, 0, 0);">聽聽</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">\n聽聽聽聽聽聽Y聽=聽</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);"><<</span><span style="color: rgb(0, 0, 0);">聽ppp.y聽<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="color: rgb(0, 0, 0);"><<</span><span style="color: rgb(0, 0, 0);">聽聽</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">\n聽聽聽聽聽聽Z聽=聽</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);"><<</span><span style="color: rgb(0, 0, 0);">聽ppp.z聽</span><span style="color: rgb(0, 0, 0);"><<</span><span style="color: rgb(0, 0, 0);">聽endl;聽<br />聽聽<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽}聽<br />聽聽<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">0</span><span style="color: rgb(0, 0, 0);">;聽<br />}聽聽<br /></span></div>http://staff.aist.go.jp/toru-nakata/quaternion.html<br />http://bbs.gameres.com/showthread.asp?threadid=73511<br /><br /><img src ="http://m.shnenglu.com/billhsu/aggbug/63099.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.shnenglu.com/billhsu/" target="_blank">Bill Hsu</a> 2008-09-30 19:34 <a href="http://m.shnenglu.com/billhsu/archive/2008/09/30/63099.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>瓚呰秺3D錛?D鏉ヤ簡銆傘傘?/title><link>http://m.shnenglu.com/billhsu/archive/2008/09/15/61846.html</link><dc:creator>Bill Hsu</dc:creator><author>Bill Hsu</author><pubDate>Mon, 15 Sep 2008 03:56:00 GMT</pubDate><guid>http://m.shnenglu.com/billhsu/archive/2008/09/15/61846.html</guid><wfw:comment>http://m.shnenglu.com/billhsu/comments/61846.html</wfw:comment><comments>http://m.shnenglu.com/billhsu/archive/2008/09/15/61846.html#Feedback</comments><slash:comments>6</slash:comments><wfw:commentRss>http://m.shnenglu.com/billhsu/comments/commentRss/61846.html</wfw:commentRss><trackback:ping>http://m.shnenglu.com/billhsu/services/trackbacks/61846.html</trackback:ping><description><![CDATA[鍦╣ameres涓婄湅鍒扮殑錛屾劅瑙夊緢鍒涙剰銆傘傘?br> <br> 瀹炵幇鏂規(guī)硶<br> 鍑嗗涓や釜鎽勫儚鏈猴紝瀵瑰噯鍚屼竴鐐癸紝浜ゆ浛娓叉煋綰㈠拰緇跨殑鐢婚潰錛屽甫涓婄孩緇跨溂闀?img src="http://m.shnenglu.com/images/cppblog_com/slowhand/glass.jpg" class="blogimg" small="0" border="0" width="67" height="35">鍗沖彲瑙傚療鍒?D鐨勫満鏅簡錛?br> <br> 澶у鍙互鐪嬬湅閭h繖閲岋紝鏈夋簮浠g爜(C++&D3d瀹炵幇鐨?<br> http://bbs.gameres.com/showthread.asp?threadid=73818<br> <br> <div forimg="1"><img src="http://bbs.gameres.com/upload/sf_20089914631.jpg" class="blogimg" small="0" border="0" width="488" height="305"><br> 涓涓?D鐨勪緥瀛?/div><img src ="http://m.shnenglu.com/billhsu/aggbug/61846.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.shnenglu.com/billhsu/" target="_blank">Bill Hsu</a> 2008-09-15 11:56 <a href="http://m.shnenglu.com/billhsu/archive/2008/09/15/61846.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>irrlicht--榪欎釜寮曟搸寰堝己澶с傘傘?/title><link>http://m.shnenglu.com/billhsu/archive/2008/08/23/59735.html</link><dc:creator>Bill Hsu</dc:creator><author>Bill Hsu</author><pubDate>Sat, 23 Aug 2008 09:53:00 GMT</pubDate><guid>http://m.shnenglu.com/billhsu/archive/2008/08/23/59735.html</guid><wfw:comment>http://m.shnenglu.com/billhsu/comments/59735.html</wfw:comment><comments>http://m.shnenglu.com/billhsu/archive/2008/08/23/59735.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.shnenglu.com/billhsu/comments/commentRss/59735.html</wfw:commentRss><trackback:ping>http://m.shnenglu.com/billhsu/services/trackbacks/59735.html</trackback:ping><description><![CDATA[<img style="width: 472px; height: 373px;" alt="" src="http://m.shnenglu.com/images/cppblog_com/billhsu/irr.JPG"><br><br>涓婃鍦╯ourceforge.net(澶у悕榧庨紟鐨勫紑婧愪唬鐮佺綉绔?涓婄湅鍒扮殑錛岃繖涓猧rrlicht鐪熷緢浜嗕笉璧鳳紝 铏界劧鏄紑婧愮殑錛屼笉榪囨劅瑙夊凡緇忚揪鍒伴偅浜涘嚑涓囩編鍏冪殑鍟嗕笟綰х殑3D寮曟搸涓婂叿鏈夌殑鐗規(guī)с傝屼笖璺ㄥ鉤鍙幫紝鍐欎竴嬈′唬鐮佸彲浠ュ湪澶氱鎿嶄綔緋葷粺涓婄紪璇戙?br> <br> 鏀寔<span><font face="Times New Roman">.3ds, .md2, .obj, .pk3, .ms3d, .bsp, .x, .bmp, .tga, .jpg, .psd, .pcx</font></span><span>絳夌瓑鏂囦歡錛岄熷害蹇殑娌″緱璇達紝姣旀垜鍐欑殑閭d簺3D娓叉煋搴撶被蹇ソ鍑犱釜綰у埆銆?/span><span>閭d釜UI搴擄紝涔熸槸鏃犳晫鐨勩傘傘?/span><br>寮婧愮殑鍔涢噺澶己澶т簡銆?br> <br> <div style="border: 1px solid #cccccc; padding: 4px 5px 4px 4px; background-color: #eeeeee; font-size: 13px; width: 98%;">鐧懼害鐧劇錛欼rrlicht鏄竴涓痙鍥界璇濇晠浜嬩腑鐨勪竴縐嶅姩鐗╃殑鍚嶅瓧錛屽畠鑳藉鍙戝厜鍜岄緲旓紝鍙互鍦ㄥぇ閮ㄥ垎鐨勬布娉藉湴闄勮繎鍙戠幇瀹冦傚崟璇?Irrlicht"鏄袱涓痙鍥藉崟璇嶏紙"irr"鎰忔濇槸鐤媯鐨勶紱鑰?Licht"鎰忔濇槸鍏夛級鐨勭粍鍚堛傚湪鑻辮涓紝瀹冭璇戜負"楝肩伀"銆?/div> <br> 涓婚〉錛?<br> http://irrlicht.sourceforge.net/ <img src ="http://m.shnenglu.com/billhsu/aggbug/59735.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.shnenglu.com/billhsu/" target="_blank">Bill Hsu</a> 2008-08-23 17:53 <a href="http://m.shnenglu.com/billhsu/archive/2008/08/23/59735.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鑴氭湰寮曟搸RapScript V0.0.0.1鍙戝竷http://m.shnenglu.com/billhsu/archive/2008/08/10/58429.htmlBill HsuBill HsuSun, 10 Aug 2008 03:05:00 GMThttp://m.shnenglu.com/billhsu/archive/2008/08/10/58429.htmlhttp://m.shnenglu.com/billhsu/comments/58429.htmlhttp://m.shnenglu.com/billhsu/archive/2008/08/10/58429.html#Feedback4http://m.shnenglu.com/billhsu/comments/commentRss/58429.htmlhttp://m.shnenglu.com/billhsu/services/trackbacks/58429.html榪欎喚浠g爜鐩墠姣旇緝緋熺硶錛屾湁鐐逛貢錛岃屼笖娌℃湁閿欒澶勭悊錛屼絾寮婧愭槸涓縐嶄範(fàn)鎯傘傘?br>
鍏堜粙緇嶄竴涓嬫庝箞鐢細
鎶奟apScript.h RapScript.cpp RapStack.h鍔犲叆宸ョ▼錛岀劧鍚庡湪鑷繁鐨刴ain.cpp閲屽姞鍏?br>
#include "RapScript.h"

RapScript XXX;

XXX鏄璞″悕錛屽彲浠ヨ嚜宸卞彇銆?br>
鍏充簬鍑芥暟浜掍氦錛?br>姣斿璇達紝浣犲湪C++涓啓浜嗕竴涓嚱鏁幫細
void test(int a,int b)
{
cout 
<<"In void test(int a,int b) a:"<<a<<" b: "<<b<<endl;
}
瑕佽皟鐢ㄥ畠錛岃鍦ㄥ啓涓涓細
void rap_test()
{
int a=rapscript.para[0].v_int;//鍙傛暟涓
int b=rapscript.para[1].v_int;//鍙傛暟浜?/span>
test(a,b);

}
鐒跺悗鍦ㄥ悎閫傜殑浣嶇疆(姣斿int main()涓?鍔犲叆
rapscript.tmp_cmd.cmd_name="test";
rapscript.tmp_cmd.v_type
=rapscript.CMD_VOID;
rapscript.tmp_cmd.fp_void
=rap_test;
rapscript.cmd_list.push_back(rapscript.tmp_cmd);
璋冪敤rapscript.run_rap();
鑴氭湰灝變細鎵ц浜嗐?br>璇存槑涓涓嬶細
1.鍦ㄨ剼鏈腑鍐欏懡浠ゆ椂瑕佽繖鏍鳳細test(a;b;);//鎴戝伔鎳掍簡
2.鎵鏈夊彉閲忕敤鍓嶅繀欏誨0鏄庯紙濡俰nt a;string b;錛?br>鐩墠鍙敮鎸乮nt 鍜?string
3.Bug瓚呭銆?br>4.if()鍜?for()絳夋殏鏃朵笉鏀寔
5.濡傛灉浣犳効鎰忎慨鏀規(guī)簮浠g爜錛屽彧瑕佸悎鐞嗭紝灝變細琚噰鐢紝鍚嶅瓧涔熶細鍔犲叆Author閲屻傘傘?br>
涓嬭澆RapScript V0.0.0.1婧愪唬鐮?/a>
鈹忊攣鈹撱銆銆鈹忊攣鈹佲敁銆銆銆鈹忊敁銆銆銆銆銆
鈹冣攦鈹b攣鈹斥攣鈹攣鈹佲晪鈹佲敵鈹斥晪鈺嬧攣鈹斥攣鈹佲敁
鈹冦鈹攣鈹冣攦鈹b攣鈹佲攦鈹b敨鈹忊敨鈹冣攦鈹b敁鈹忊敍
鈹椻敾鈹燴敾鈹攺鈹燴攣鈹佲敾鈹佲敾鈹涒敆鈹攺鈹涒敆鈹涖
             鈹椻敍銆銆銆銆銆銆銆銆鈹椻敍銆銆銆銆




Bill Hsu 2008-08-10 11:05 鍙戣〃璇勮
]]>
RapScript寮鍙戞棩蹇?2008.8.6http://m.shnenglu.com/billhsu/archive/2008/08/06/58176.htmlBill HsuBill HsuWed, 06 Aug 2008 12:19:00 GMThttp://m.shnenglu.com/billhsu/archive/2008/08/06/58176.htmlhttp://m.shnenglu.com/billhsu/comments/58176.htmlhttp://m.shnenglu.com/billhsu/archive/2008/08/06/58176.html#Feedback1http://m.shnenglu.com/billhsu/comments/commentRss/58176.htmlhttp://m.shnenglu.com/billhsu/services/trackbacks/58176.html
int a;
int b;
a
=(1+2)*3*3;
b
=a/3;
鏁堟灉鍥撅細


浼拌鍦?鏈?鏃ヤ含濂ュ紑騫曞墠浼氫互婧愪唬鐮佺殑褰㈠紡鏀懼嚭絎竴涓彲鐢ㄧ殑鐗堟湰錛?br>鏀寔涓嶤++鐨勫懡浠や簰浜?鐢≧apScript璋冪敤浣犲湪C++紼嬪簭涓啓鐨勫嚱鏁?銆?br>
寰堝ソ浣跨敤鐨勶紝鍙鎶奟apScript.h RapScript.cpp RapStack.h鍔犲叆宸ョ▼閲屽氨鍙互浜嗐?br>鍏煎鎬у緢濂斤紝鑷沖皯鏀寔g++鍜孷C(MFC鍜岄潪MFC閮芥敮鎸?銆?br>姣忚閮芥湁娉ㄩ噴(鐢ㄨ嫳鏂囧啓鐨勶紝涓轟簡灝嗘潵鍥介檯鍖朸_^)





Bill Hsu 2008-08-06 20:19 鍙戣〃璇勮
]]>
鎴戠殑VC++ RPG娓告垙绱棩2037婧愪唬鐮?/title><link>http://m.shnenglu.com/billhsu/archive/2008/07/23/56974.html</link><dc:creator>Bill Hsu</dc:creator><author>Bill Hsu</author><pubDate>Wed, 23 Jul 2008 11:04:00 GMT</pubDate><guid>http://m.shnenglu.com/billhsu/archive/2008/07/23/56974.html</guid><wfw:comment>http://m.shnenglu.com/billhsu/comments/56974.html</wfw:comment><comments>http://m.shnenglu.com/billhsu/archive/2008/07/23/56974.html#Feedback</comments><slash:comments>7</slash:comments><wfw:commentRss>http://m.shnenglu.com/billhsu/comments/commentRss/56974.html</wfw:commentRss><trackback:ping>http://m.shnenglu.com/billhsu/services/trackbacks/56974.html</trackback:ping><description><![CDATA[<img alt="" src="http://m.shnenglu.com/images/cppblog_com/billhsu/7643/o_2037.JPG"><br> 鎴?span>鍒氬娓告垙緙栫▼鏃跺啓鐨勭▼搴忥紝瀵瑰垵瀛﹁呭彲鑳芥湁鐢紝甯屾湜澶у鍠滄 :-)<br><br>鎵ц鏂囦歡涓嬭澆錛?br><a target="_blank" href="http://m.shnenglu.com/Files/billhsu/2037.rar">http://m.shnenglu.com/Files/billhsu/2037.rar</a><br><br>婧愪唬鐮佷笅杞斤細<br><a target="_blank" href="http://m.shnenglu.com/Files/billhsu/Source_2037.rar">http://m.shnenglu.com/Files/billhsu/Source_2037.rar</a><br></span><br> <img src ="http://m.shnenglu.com/billhsu/aggbug/56974.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.shnenglu.com/billhsu/" target="_blank">Bill Hsu</a> 2008-07-23 19:04 <a href="http://m.shnenglu.com/billhsu/archive/2008/07/23/56974.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item></channel></rss> <a href="http://m.shnenglu.com/">青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品</a> <div style="position:fixed;left:-9000px;top:-9000px;"><font id="pjuwb"></font><button id="pjuwb"><pre id="pjuwb"></pre></button><sub id="pjuwb"></sub><tbody id="pjuwb"><var id="pjuwb"><address id="pjuwb"></address></var></tbody><listing id="pjuwb"><label id="pjuwb"><strong id="pjuwb"></strong></label></listing><wbr id="pjuwb"><small id="pjuwb"><tbody id="pjuwb"></tbody></small></wbr><ins id="pjuwb"><xmp id="pjuwb"></xmp></ins><style id="pjuwb"></style><label id="pjuwb"><em id="pjuwb"><li id="pjuwb"></li></em></label><samp id="pjuwb"></samp><menu id="pjuwb"><input id="pjuwb"></input></menu><pre id="pjuwb"><tbody id="pjuwb"><tfoot id="pjuwb"><button id="pjuwb"></button></tfoot></tbody></pre><form id="pjuwb"></form><i id="pjuwb"><style id="pjuwb"><label id="pjuwb"><sup id="pjuwb"></sup></label></style></i><li id="pjuwb"><table id="pjuwb"><abbr id="pjuwb"></abbr></table></li><video id="pjuwb"></video><dfn id="pjuwb"></dfn><progress id="pjuwb"></progress><strong id="pjuwb"></strong><mark id="pjuwb"></mark><em id="pjuwb"></em><tbody id="pjuwb"><p id="pjuwb"><strike id="pjuwb"><acronym id="pjuwb"></acronym></strike></p></tbody><option id="pjuwb"></option><strike id="pjuwb"></strike><u id="pjuwb"></u><td id="pjuwb"><center id="pjuwb"><tr id="pjuwb"></tr></center></td><em id="pjuwb"><mark id="pjuwb"><em id="pjuwb"><tt id="pjuwb"></tt></em></mark></em><strong id="pjuwb"></strong><wbr id="pjuwb"></wbr><s id="pjuwb"></s><strong id="pjuwb"></strong><legend id="pjuwb"></legend><nav id="pjuwb"></nav><dl id="pjuwb"><th id="pjuwb"><dl id="pjuwb"></dl></th></dl><noframes id="pjuwb"><ins id="pjuwb"></ins></noframes><font id="pjuwb"></font><strike id="pjuwb"><i id="pjuwb"><style id="pjuwb"><label id="pjuwb"></label></style></i></strike><output id="pjuwb"></output><thead id="pjuwb"><pre id="pjuwb"></pre></thead><source id="pjuwb"></source><menuitem id="pjuwb"><wbr id="pjuwb"></wbr></menuitem><pre id="pjuwb"><span id="pjuwb"><pre id="pjuwb"><big id="pjuwb"></big></pre></span></pre><cite id="pjuwb"><fieldset id="pjuwb"><s id="pjuwb"><rt id="pjuwb"></rt></s></fieldset></cite><big id="pjuwb"><progress id="pjuwb"><big id="pjuwb"></big></progress></big><samp id="pjuwb"><delect id="pjuwb"></delect></samp><dl id="pjuwb"></dl><strike id="pjuwb"><nav id="pjuwb"><dl id="pjuwb"><strong id="pjuwb"></strong></dl></nav></strike><tbody id="pjuwb"><b id="pjuwb"><optgroup id="pjuwb"><rp id="pjuwb"></rp></optgroup></b></tbody><em id="pjuwb"></em><xmp id="pjuwb"><blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote></xmp> <i id="pjuwb"><abbr id="pjuwb"><i id="pjuwb"><abbr id="pjuwb"></abbr></i></abbr></i><center id="pjuwb"><acronym id="pjuwb"><center id="pjuwb"></center></acronym></center><pre id="pjuwb"></pre><ul id="pjuwb"><thead id="pjuwb"></thead></ul><blockquote id="pjuwb"><pre id="pjuwb"><sup id="pjuwb"></sup></pre></blockquote><acronym id="pjuwb"></acronym><big id="pjuwb"><s id="pjuwb"></s></big><th id="pjuwb"></th><th id="pjuwb"></th><tbody id="pjuwb"></tbody><thead id="pjuwb"><strike id="pjuwb"></strike></thead><th id="pjuwb"><dl id="pjuwb"><wbr id="pjuwb"></wbr></dl></th><dl id="pjuwb"><strong id="pjuwb"></strong></dl><abbr id="pjuwb"><noframes id="pjuwb"><noscript id="pjuwb"></noscript></noframes></abbr><td id="pjuwb"><ol id="pjuwb"></ol></td><li id="pjuwb"><noscript id="pjuwb"><abbr id="pjuwb"></abbr></noscript></li><small id="pjuwb"><bdo id="pjuwb"><nav id="pjuwb"></nav></bdo></small><style id="pjuwb"></style><optgroup id="pjuwb"><table id="pjuwb"></table></optgroup><center id="pjuwb"><tr id="pjuwb"><dfn id="pjuwb"></dfn></tr></center><th id="pjuwb"></th><u id="pjuwb"></u><tfoot id="pjuwb"><legend id="pjuwb"><i id="pjuwb"></i></legend></tfoot><mark id="pjuwb"></mark><meter id="pjuwb"></meter><nav id="pjuwb"></nav><acronym id="pjuwb"><pre id="pjuwb"><acronym id="pjuwb"><ul id="pjuwb"></ul></acronym></pre></acronym><acronym id="pjuwb"><pre id="pjuwb"><acronym id="pjuwb"><ul id="pjuwb"></ul></acronym></pre></acronym><nobr id="pjuwb"></nobr><sub id="pjuwb"><th id="pjuwb"><menuitem id="pjuwb"><wbr id="pjuwb"></wbr></menuitem></th></sub><thead id="pjuwb"><sub id="pjuwb"></sub></thead><ul id="pjuwb"><address id="pjuwb"><menuitem id="pjuwb"><meter id="pjuwb"></meter></menuitem></address></ul><dfn id="pjuwb"></dfn><pre id="pjuwb"></pre><input id="pjuwb"><cite id="pjuwb"><fieldset id="pjuwb"></fieldset></cite></input><u id="pjuwb"><form id="pjuwb"><u id="pjuwb"></u></form></u><kbd id="pjuwb"><em id="pjuwb"><mark id="pjuwb"></mark></em></kbd><tr id="pjuwb"></tr><del id="pjuwb"><form id="pjuwb"><address id="pjuwb"></address></form></del><tfoot id="pjuwb"><legend id="pjuwb"><ol id="pjuwb"><dl id="pjuwb"></dl></ol></legend></tfoot><menu id="pjuwb"><nobr id="pjuwb"><th id="pjuwb"><nobr id="pjuwb"></nobr></th></nobr></menu><fieldset id="pjuwb"></fieldset><pre id="pjuwb"><blockquote id="pjuwb"><samp id="pjuwb"></samp></blockquote></pre><xmp id="pjuwb"><sup id="pjuwb"><pre id="pjuwb"></pre></sup></xmp><span id="pjuwb"><progress id="pjuwb"></progress></span><font id="pjuwb"></font><var id="pjuwb"><abbr id="pjuwb"></abbr></var><strong id="pjuwb"><label id="pjuwb"><i id="pjuwb"><legend id="pjuwb"></legend></i></label></strong><tr id="pjuwb"><em id="pjuwb"><em id="pjuwb"><output id="pjuwb"></output></em></em></tr><thead id="pjuwb"><strike id="pjuwb"></strike></thead> <acronym id="pjuwb"></acronym><i id="pjuwb"></i><tt id="pjuwb"></tt><rt id="pjuwb"><source id="pjuwb"><rt id="pjuwb"></rt></source></rt><strike id="pjuwb"><acronym id="pjuwb"></acronym></strike><del id="pjuwb"></del><font id="pjuwb"><output id="pjuwb"><ins id="pjuwb"><output id="pjuwb"></output></ins></output></font><kbd id="pjuwb"><tr id="pjuwb"><kbd id="pjuwb"></kbd></tr></kbd><pre id="pjuwb"><sup id="pjuwb"><delect id="pjuwb"><samp id="pjuwb"></samp></delect></sup></pre><samp id="pjuwb"></samp><track id="pjuwb"></track><tr id="pjuwb"></tr><center id="pjuwb"></center><fieldset id="pjuwb"></fieldset><i id="pjuwb"></i><td id="pjuwb"></td><rt id="pjuwb"></rt><object id="pjuwb"></object><pre id="pjuwb"><progress id="pjuwb"><sub id="pjuwb"><thead id="pjuwb"></thead></sub></progress></pre><kbd id="pjuwb"><tr id="pjuwb"><option id="pjuwb"></option></tr></kbd><output id="pjuwb"><ins id="pjuwb"></ins></output><ol id="pjuwb"></ol><source id="pjuwb"></source><strong id="pjuwb"></strong><ruby id="pjuwb"></ruby><sub id="pjuwb"><meter id="pjuwb"><menuitem id="pjuwb"><meter id="pjuwb"></meter></menuitem></meter></sub><pre id="pjuwb"></pre><center id="pjuwb"></center><tr id="pjuwb"><tbody id="pjuwb"><xmp id="pjuwb"><dd id="pjuwb"></dd></xmp></tbody></tr><video id="pjuwb"></video><pre id="pjuwb"></pre><form id="pjuwb"><optgroup id="pjuwb"></optgroup></form><samp id="pjuwb"></samp><kbd id="pjuwb"></kbd><strong id="pjuwb"><option id="pjuwb"></option></strong><object id="pjuwb"></object><abbr id="pjuwb"><noframes id="pjuwb"><abbr id="pjuwb"></abbr></noframes></abbr><ul id="pjuwb"><del id="pjuwb"><button id="pjuwb"><pre id="pjuwb"></pre></button></del></ul><abbr id="pjuwb"></abbr><strong id="pjuwb"><code id="pjuwb"><strong id="pjuwb"></strong></code></strong><option id="pjuwb"></option><optgroup id="pjuwb"><bdo id="pjuwb"><code id="pjuwb"></code></bdo></optgroup><mark id="pjuwb"><em id="pjuwb"><font id="pjuwb"></font></em></mark><acronym id="pjuwb"><code id="pjuwb"></code></acronym><dl id="pjuwb"></dl><em id="pjuwb"></em><object id="pjuwb"><input id="pjuwb"><object id="pjuwb"></object></input></object><output id="pjuwb"><dd id="pjuwb"></dd></output><option id="pjuwb"><button id="pjuwb"><option id="pjuwb"></option></button></option><small id="pjuwb"></small></div> <a href="http://876769.com" target="_blank">亚洲精选一区</a>| <a href="http://pnxingmei.com" target="_blank">国产午夜精品美女视频明星a级</a>| <a href="http://wwwavtb1122.com" target="_blank">国内精品一区二区三区</a>| <a href="http://www201314.com" target="_blank">免费观看成人</a>| <a href="http://987527.com" target="_blank">欧美日韩在线不卡一区</a>| <a href="http://16kkkk.com" target="_blank">欧美亚洲一级片</a>| <a href="http://liuyangzi.com" target="_blank">久久久久久成人</a>| <a href="http://pnxingmei.com" target="_blank">亚洲色图制服丝袜</a>| <a href="http://96ykm.com" target="_blank">久久久久**毛片大全</a>| <a href="http://qimao360.com" target="_blank">一本色道88久久加勒比精品</a>| <a href="http://2996611.com" target="_blank">午夜精品亚洲一区二区三区嫩草</a>| <a href="http://wzlingfeng.com" target="_blank">亚洲激情不卡</a>| <a href="http://www442222.com" target="_blank">性色av一区二区三区</a>| <a href="http://ww4477.com" target="_blank">一区二区三区av</a>| <a href="http://ykk7.com" target="_blank">老鸭窝亚洲一区二区三区</a>| <a href="http://337105.com" target="_blank">亚洲欧美日本国产专区一区</a>| <a href="http://xingmaipet.com" target="_blank">可以看av的网站久久看</a>| <a href="http://482896.com" target="_blank">久久超碰97中文字幕</a>| <a href="http://www225011.com" target="_blank">欧美日韩精品一区二区在线播放</a>| <a href="http://yjizz08.com" target="_blank">久久一二三四</a>| <a href="http://710477.com" target="_blank">国产精品入口麻豆原神</a>| <a href="http://zhengnuoxin.com" target="_blank">亚洲欧洲视频</a>| <a href="http://259758.com" target="_blank">一区二区自拍</a>| <a href="http://www474000c.com" target="_blank">亚洲综合电影</a>| <a href="http://ahqdlq.com" target="_blank">亚洲视频免费</a>| <a href="http://17ang.com" target="_blank">欧美片第1页综合</a>| <a href="http://1194123.com" target="_blank">亚洲成色777777女色窝</a>| <a href="http://6767673.com" target="_blank">狠狠噜噜久久</a>| <a href="http://133868.com" target="_blank">欧美一区二区三区另类</a>| <a href="http://a6a3.com" target="_blank">欧美亚洲三区</a>| <a href="http://3838418.com" target="_blank">国产精品久久久久久久久久尿</a>| <a href="http://xinghejiuye.com" target="_blank">最新日韩在线</a>| <a href="http://qiezi2vip.com" target="_blank">亚洲乱码国产乱码精品精98午夜</a>| <a href="http://44cgcg.com" target="_blank">久久久亚洲影院你懂的</a>| <a href="http://www107aa.com" target="_blank">久久久视频精品</a>| <a href="http://26thb.com" target="_blank">国产欧美一区二区三区在线老狼 </a>| <a href="http://mes-dvd.com" target="_blank">欧美极品在线视频</a>| <a href="http://862924.com" target="_blank">国产伦精品一区二区三区高清版</a>| <a href="http://chinagreetown.com" target="_blank">亚洲国产精品高清久久久</a>| <a href="http://6666345.com" target="_blank">伊人精品视频</a>| <a href="http://199372.com" target="_blank">久久久亚洲影院你懂的</a>| <a href="http://www-34909.com" target="_blank">久久久亚洲国产美女国产盗摄</a>| <a href="http://805185.com" target="_blank">国产精品欧美日韩一区二区</a>| <a href="http://678255.com" target="_blank">一本色道久久综合亚洲精品高清</a>| <a href="http://mmmm57.com" target="_blank">亚洲精选一区</a>| <a href="http://797298.com" target="_blank">欧美粗暴jizz性欧美20</a>| <a href="http://goutoujunshi.com" target="_blank">欧美高清视频一区二区三区在线观看</a>| <a href="http://www-55125.com" target="_blank">精品动漫av</a>| <a href="http://aa56789.com" target="_blank">老司机午夜精品视频</a>| <a href="http://770456.com" target="_blank">欧美丰满少妇xxxbbb</a>| <a href="http://562595.com" target="_blank">91久久在线播放</a>| <a href="http://baoxiniao666.com" target="_blank">欧美99久久</a>| <a href="http://www-77663.com" target="_blank">亚洲精品一区二区三区99</a>| <a href="http://605799.com" target="_blank">日韩一级大片在线</a>| <a href="http://jj8518.com" target="_blank">欧美日韩伦理在线免费</a>| <a href="http://yishangsh.com" target="_blank">aa国产精品</a>| <a href="http://8x588.com" target="_blank">亚洲欧美日韩一区二区三区在线观看</a>| <a href="http://apap77.com" target="_blank">欧美日韩无遮挡</a>| <a href="http://488089.com" target="_blank">亚洲午夜精品久久久久久浪潮</a>| <a href="http://avtbr123.com" target="_blank">亚洲永久在线</a>| <a href="http://118017.com" target="_blank">国产一区二区久久</a>| <a href="http://nvpuow.com" target="_blank">久久久人成影片一区二区三区 </a>| <a href="http://788997.com" target="_blank">国产精品中文字幕在线观看</a>| <a href="http://www-18873.com" target="_blank">中国成人在线视频</a>| <a href="http://by71222.com" target="_blank">久久精品最新地址</a>| <a href="http://91x8.com" target="_blank">亚洲福利专区</a>| <a href="http://www47777.com" target="_blank">欧美日韩国产欧</a>| <a href="http://038226.com" target="_blank">亚洲一区在线免费观看</a>| <a href="http://16355t.com" target="_blank">久久精品国产精品亚洲精品</a>| <a href="http://ttzbdl.com" target="_blank">伊人久久大香线蕉综合热线 </a>| <a href="http://www34523.com" target="_blank">久久精品一本</a>| <a href="http://gdvapar.com" target="_blank">亚洲区一区二</a>| <a href="http://739822.com" target="_blank">国产精品羞羞答答xxdd</a>| <a href="http://www068hs.com" target="_blank">久久免费精品日本久久中文字幕</a>| <a href="http://boocnn.com" target="_blank">亚洲高清不卡一区</a>| <a href="http://118626cc.com" target="_blank">亚洲欧美激情视频在线观看一区二区三区 </a>| <a href="http://rezel-zj.com" target="_blank">韩国一区电影</a>| <a href="http://9lunli.com" target="_blank">欧美大尺度在线</a>| <a href="http://cnbluebox.com" target="_blank">亚洲视频专区在线</a>| <a href="http://3737520.com" target="_blank">久久视频一区</a>| <a href="http://8946286.com" target="_blank">亚洲一区二区精品视频</a>| <a href="http://maomi998.com" target="_blank">激情五月婷婷综合</a>| <a href="http://51shoudian.com" target="_blank">欧美日韩国产影片</a>| <a href="http://1313js.com" target="_blank">久久精品99</a>| <a href="http://o10669.com" target="_blank">99综合在线</a>| <a href="http://gs-qintai.com" target="_blank">老鸭窝毛片一区二区三区</a>| <a href="http://avse69.com" target="_blank">一区二区欧美精品</a>| <a href="http://7755mm.com" target="_blank">极品日韩久久</a>| <a href="http://75yyyy.com" target="_blank">国产精品免费观看视频</a>| <a href="http://977mo.com" target="_blank">麻豆成人小视频</a>| <a href="http://choaoxing.com" target="_blank">亚洲一区亚洲</a>| <a href="http://482896.com" target="_blank">亚洲精品国产精品国自产观看浪潮 </a>| <a href="http://689558.com" target="_blank">亚洲激情社区</a>| <a href="http://ccnn33.com" target="_blank">欧美在线视频一区二区</a>| <a href="http://fs-nanxiang.com" target="_blank">亚洲人成人99网站</a>| <a href="http://cmtqd.com" target="_blank">国产日韩一区二区三区在线</a>| <a href="http://www780yy.com" target="_blank">欧美成人免费在线视频</a>| <a href="http://605012.com" target="_blank">亚洲欧美视频在线观看</a>| <a href="http://414794.com" target="_blank">亚洲国产精品久久久久久女王</a>| <a href="http://www330088.com" target="_blank">午夜精品国产更新</a>| <a href="http://xingba999.com" target="_blank">国产精品黄色在线观看</a>| <a href="http://555yye.com" target="_blank">久久久噜噜噜</a>| <a href="http://556626.com" target="_blank">亚洲一区在线看</a>| <a href="http://miaoxp.com" target="_blank">久久久久99</a>| <a href="http://854277.com" target="_blank">久久精品二区三区</a>| <a href="http://226600b.com" target="_blank">欧美视频不卡中文</a>| <a href="http://www-232323.com" target="_blank">一个色综合av</a>| <a href="http://www-44469.com" target="_blank">亚洲精品一区在线</a>| <a href="http://jyboke.com" target="_blank">欧美日韩三级一区二区</a>| <a href="http://y08877.com" target="_blank">日韩午夜av</a>| <a href="http://88488848.com" target="_blank">99视频在线精品国自产拍免费观看</a>| <a href="http://989p.com" target="_blank">久久一区二区三区国产精品</a>| <a href="http://xingcheny.com" target="_blank">日韩一级在线观看</a>| <a href="http://haohetour.com" target="_blank">久久综合婷婷</a>| <a href="http://6556h.com" target="_blank">亚洲欧美精品中文字幕在线</a>| <a href="http://cl6m.com" target="_blank">亚洲人成网站精品片在线观看 </a>| <a href="http://bckxy.com" target="_blank">欧美电影电视剧在线观看</a>| <a href="http://569688.com" target="_blank">亚洲欧美日韩中文在线制服</a>| <a href="http://5588gww.com" target="_blank">亚洲精选在线观看</a>| <a href="http://xmzszx.com" target="_blank">亚洲国产精品第一区二区三区 </a>| <a href="http://ddixx.com" target="_blank">亚洲午夜一二三区视频</a>| <a href="http://avhai.com" target="_blank">91久久国产综合久久</a>| <a href="http://01xxtv.com" target="_blank">毛片精品免费在线观看</a>| <a href="http://sepapapa8888.com" target="_blank">欧美一二三视频</a>| <a href="http://7213523.com" target="_blank">亚洲欧美日韩一区在线</a>| <a href="http://www4466k.com" target="_blank">亚洲视频免费在线</a>| <a href="http://zucai168.com" target="_blank">99国产精品久久久久久久久久</a>| <a href="http://javliabary.com" target="_blank">亚洲大片免费看</a>| <a href="http://sygxjt.com" target="_blank">在线电影一区</a>| <a href="http://4545www.com" target="_blank">亚洲电影在线免费观看</a>| <a href="http://balqueen.com" target="_blank">激情久久中文字幕</a>| <a href="http://aaa798.com" target="_blank">狠狠色狠色综合曰曰</a>| <a href="http://pnxingmei.com" target="_blank">国内精品久久久久久久影视麻豆 </a>| <a href="http://6u6uuu666.com" target="_blank">亚洲精品1区2区</a>| <a href="http://77777de.com" target="_blank">欧美激情中文字幕在线</a>| <a href="http://www-37277.com" target="_blank">欧美成人午夜视频</a>| <a href="http://6688zf.com" target="_blank">欧美国内亚洲</a>| <a href="http://miya2223.com" target="_blank">亚洲电影网站</a>| <a href="http://1277k.com" target="_blank">亚洲人成免费</a>| <a href="http://990288.com" target="_blank">亚洲区欧美区</a>| <a href="http://cc1024.com" target="_blank">亚洲美女av黄</a>| <a href="http://www4466k.com" target="_blank">夜夜嗨av一区二区三区中文字幕</a>| <a href="http://725806.com" target="_blank">亚洲精品孕妇</a>| <a href="http://1397979.com" target="_blank">亚洲网站在线观看</a>| <a href="http://kanebocos.com" target="_blank">亚洲女人小视频在线观看</a>| <a href="http://xiaofan123.com" target="_blank">亚洲欧美国产高清va在线播</a>| <a href="http://223zzz.com" target="_blank">午夜久久福利</a>| <a href="http://gelaimeiwedding.com" target="_blank">久久精品卡一</a>| <a href="http://baoyou118.com" target="_blank">欧美99久久</a>| <a href="http://k91cm.com" target="_blank">欧美日韩视频第一区</a>| <a href="http://www-44899.com" target="_blank">国产精品久久久久久av下载红粉</a>| <a href="http://ewaygou.com" target="_blank">国产精品久久波多野结衣</a>| <a href="http://aqdit2022.com" target="_blank">国产精品视频yy9299一区</a>| <a href="http://862323.com" target="_blank">国产婷婷成人久久av免费高清</a>| <a href="http://05511253.com" target="_blank">国内精品伊人久久久久av一坑</a>| <a href="http://00000i.com" target="_blank">一区二区自拍</a>| <a href="http://ooonefteprompellets.com" target="_blank">亚洲日本视频</a>| <a href="http://bbbbyb.com" target="_blank">亚洲欧美日韩区</a>| <a href="http://sao320.com" target="_blank">久久久亚洲人</a>| <a href="http://3644688.com" target="_blank">亚洲黄色影片</a>| <a href="http://990288.com" target="_blank">午夜精品美女自拍福到在线</a>| <a href="http://www520590.com" target="_blank">久久精品视频播放</a>| <a href="http://305838.com" target="_blank">欧美大片国产精品</a>| <a href="http://smiczbb.com" target="_blank">国产精品高潮呻吟久久</a>| <a href="http://4466o.com" target="_blank">国产亚洲欧美另类中文</a>| <a href="http://o10669.com" target="_blank">亚洲国产美国国产综合一区二区</a>| <a href="http://621768.com" target="_blank">欧美激情精品久久久久久黑人 </a>| <a href="http://hazymall.com" target="_blank">免费不卡中文字幕视频</a>| <a href="http://www89999.com" target="_blank">欧美电影在线观看完整版</a>| <a href="http://xashp.com" target="_blank">亚洲精品九九</a>| <a href="http://hhjc7.com" target="_blank">午夜在线一区二区</a>| <a href="http://118626cc.com" target="_blank">蜜桃精品久久久久久久免费影院</a>| <a href="http://xhs1039.com" target="_blank">欧美日本韩国一区</a>| <a href="http://6661639.com" target="_blank">国产欧美日韩精品专区</a>| <a href="http://wanmajc.com" target="_blank">在线视频观看日韩</a>| <a href="http://liuyangzi.com" target="_blank">亚洲一区二区三区视频播放</a>| <a href="http://92xx00.com" target="_blank">欧美一区亚洲二区</a>| <a href="http://llamkos.com" target="_blank">亚洲电影免费在线观看</a>| <a href="http://www-4564949.com" target="_blank">一区二区三区高清不卡</a>| <a href="http://4915w.com" target="_blank">久久久无码精品亚洲日韩按摩</a>| <a href="http://by4425.com" target="_blank">欧美久久影院</a>| <a href="http://555888666.com" target="_blank">国产在线不卡精品</a>| <a href="http://227002.com" target="_blank">亚洲天堂成人在线观看</a>| <a href="http://7770790.com" target="_blank">久久综合九色综合欧美狠狠</a>| <a href="http://www224558.com" target="_blank">亚洲免费观看</a>| <a href="http://by27333.com" target="_blank">久久久久久夜精品精品免费</a>| <a href="http://gztcm01.com" target="_blank">欧美亚洲成人精品</a>| <a href="http://scratbag.com" target="_blank">亚洲国产乱码最新视频</a>| <a href="http://yd3399.com" target="_blank">欧美一级理论片</a>| <a href="http://7485888.com" target="_blank">亚洲片国产一区一级在线观看</a>| <a href="http://4446666.com" target="_blank">午夜精品视频在线观看</a>| <a href="http://llamkos.com" target="_blank">欧美精品1区2区3区</a>| <a href="http://y3u7.com" target="_blank">狠狠干狠狠久久</a>| <a href="http://gmqgw.com" target="_blank">午夜精品成人在线视频</a>| <a href="http://7345jj.com" target="_blank">最新69国产成人精品视频免费</a>| <a href="http://3374com.com" target="_blank">欧美在线视频一区二区</a>| <a href="http://lampreydb.com" target="_blank">欧美新色视频</a>| <a href="http://my736.com" target="_blank">99国产精品自拍</a>| <a href="http://4hup23.com" target="_blank">欧美丰满少妇xxxbbb</a>| <a href="http://wwdd44.com" target="_blank">欧美一级久久久</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>