锘??xml version="1.0" encoding="utf-8" standalone="yes"?>欧美图区在线视频,久久婷婷国产综合国色天香,亚洲欧洲在线播放http://www.shnenglu.com/billhsu/category/7690.htmlzh-cnThu, 23 Jun 2011 13:22:17 GMTThu, 23 Jun 2011 13:22:17 GMT60Android娓告垙璁℃椂http://www.shnenglu.com/billhsu/archive/2011/01/30/139627.htmlBill HsuBill HsuSun, 30 Jan 2011 15:16:00 GMThttp://www.shnenglu.com/billhsu/archive/2011/01/30/139627.htmlhttp://www.shnenglu.com/billhsu/comments/139627.htmlhttp://www.shnenglu.com/billhsu/archive/2011/01/30/139627.html#Feedback0http://www.shnenglu.com/billhsu/comments/commentRss/139627.htmlhttp://www.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://www.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://www.shnenglu.com/billhsu/archive/2010/08/26/124852.html</guid><wfw:comment>http://www.shnenglu.com/billhsu/comments/124852.html</wfw:comment><comments>http://www.shnenglu.com/billhsu/archive/2010/08/26/124852.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/billhsu/comments/commentRss/124852.html</wfw:commentRss><trackback:ping>http://www.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鍦ㄩ楠煎姩鐢婚噷甯稿父鑳界湅鍒幫紝浣滅敤灝辨槸鏍規嵁瀛愰楠肩殑鏂逛綅鎺ㄧ畻鍑哄畠鐨勯偅浜涚埗楠ㄩ鏂逛綅銆傚彲鏄竴鐩撮兘鏄煡閬撴湁閭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://www.shnenglu.com/images/cppblog_com/billhsu/ccd.gif" border="0" alt="" /><br />娉ㄦ剰鍥句腑鐨勭孩綰垮拰緇跨嚎錛岀孩綰挎槸褰撳墠楠ㄩ涓庣洰鏍囬楠肩殑榪炵嚎錛岀豢綰挎槸鐩爣楠ㄩ涓庢渶緇堜綅緗殑榪炵嚎銆?br />浠庡瓙楠ㄩ鍒扮埗楠ㄩ鐨勯『搴忚凱浠h綆楋紝鏃嬭漿綰㈢嚎鍒扮豢綰褲傝繖鏍峰榪唬鍑犳灝變細寰楀埌杈冨ソ鐨勭粨鏋溿?br /><br />瑕佹敞鎰忕殑鏄渶瑕佸楠ㄩ鐨勬棆杞寖鍥村姞浠ラ檺鍒訛紝鍥犱負浜轟綋鐨勫叧鑺備笉鏄互鍙互浠繪剰鏂瑰紡鏃嬭漿鐨勩?br /><img src="http://www.shnenglu.com/images/cppblog_com/billhsu/ccd3.JPG" border="0" alt="" /><br />[渚嬪鍥句腑钃濊壊閮ㄥ垎涓哄彲浠ユ棆杞殑鑼冨洿]<br /><br /><span style="font-style: italic;"></span></span><img src ="http://www.shnenglu.com/billhsu/aggbug/124852.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/billhsu/" target="_blank">Bill Hsu</a> 2010-08-26 17:29 <a href="http://www.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://www.shnenglu.com/billhsu/archive/2010/08/10/122914.htmlBill HsuBill HsuTue, 10 Aug 2010 03:37:00 GMThttp://www.shnenglu.com/billhsu/archive/2010/08/10/122914.htmlhttp://www.shnenglu.com/billhsu/comments/122914.htmlhttp://www.shnenglu.com/billhsu/archive/2010/08/10/122914.html#Feedback1http://www.shnenglu.com/billhsu/comments/commentRss/122914.htmlhttp://www.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://www.shnenglu.com/billhsu/archive/2010/07/30/121679.htmlBill HsuBill HsuFri, 30 Jul 2010 02:55:00 GMThttp://www.shnenglu.com/billhsu/archive/2010/07/30/121679.htmlhttp://www.shnenglu.com/billhsu/comments/121679.htmlhttp://www.shnenglu.com/billhsu/archive/2010/07/30/121679.html#Feedback0http://www.shnenglu.com/billhsu/comments/commentRss/121679.htmlhttp://www.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://www.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://www.shnenglu.com/billhsu/archive/2010/04/01/111326.html</guid><wfw:comment>http://www.shnenglu.com/billhsu/comments/111326.html</wfw:comment><comments>http://www.shnenglu.com/billhsu/archive/2010/04/01/111326.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/billhsu/comments/commentRss/111326.html</wfw:commentRss><trackback:ping>http://www.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://www.shnenglu.com/billhsu/archive/2010/04/01/111326.html'>闃呰鍏ㄦ枃</a><img src ="http://www.shnenglu.com/billhsu/aggbug/111326.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/billhsu/" target="_blank">Bill Hsu</a> 2010-04-01 22:10 <a href="http://www.shnenglu.com/billhsu/archive/2010/04/01/111326.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>GPU姘撮潰妯℃嫙http://www.shnenglu.com/billhsu/archive/2010/03/23/110376.htmlBill HsuBill HsuTue, 23 Mar 2010 12:59:00 GMThttp://www.shnenglu.com/billhsu/archive/2010/03/23/110376.htmlhttp://www.shnenglu.com/billhsu/comments/110376.htmlhttp://www.shnenglu.com/billhsu/archive/2010/03/23/110376.html#Feedback0http://www.shnenglu.com/billhsu/comments/commentRss/110376.htmlhttp://www.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://www.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://www.shnenglu.com/billhsu/archive/2010/01/20/106088.html</guid><wfw:comment>http://www.shnenglu.com/billhsu/comments/106088.html</wfw:comment><comments>http://www.shnenglu.com/billhsu/archive/2010/01/20/106088.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.shnenglu.com/billhsu/comments/commentRss/106088.html</wfw:commentRss><trackback:ping>http://www.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錛夛紝鍗充慨鏀規姇褰辯煩闃碉紝灝嗚鍓鐨勯《鐐規斁鍦ㄨ鎴綋涔嬪錛屼粠鑰岄伩鍏嶄簡璇ラ《鐐圭殑緇樺埗銆?br /><br /> 3錛壜?淇敼騫抽潰鏂圭▼錛屼嬌涔嬩粠涓栫晫鍧愭爣緋昏漿鎹㈠埌鍓鍧愭爣緋匯?span><br /><br /><br /> 涓婅堪鏂規硶涓紝絎竴縐嶅拰絎簩縐嶆晥鐜囧茍涓嶉珮錛氬湪</span><span>Pixel Shader</span><span>涓壀瑁佹病鏈夊噺灝戜換浣曚笉蹇呰鐨勯《鐐瑰鐞嗭紝鑰岃綆楄繎鏂滃鉤闈㈣鍓煩闃佃緝涓虹箒鐞愩傛墍浠ワ紝鏂規硶涓夋槸鏈浣抽夋嫨銆?/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://www.shnenglu.com/billhsu/aggbug/106088.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/billhsu/" target="_blank">Bill Hsu</a> 2010-01-20 22:00 <a href="http://www.shnenglu.com/billhsu/archive/2010/01/20/106088.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鍙戞棩蹇楃邯蹇祣~絎竴嬈″啓瀵煎嚭鎻掍歡http://www.shnenglu.com/billhsu/archive/2009/11/25/101921.htmlBill HsuBill HsuWed, 25 Nov 2009 11:25:00 GMThttp://www.shnenglu.com/billhsu/archive/2009/11/25/101921.htmlhttp://www.shnenglu.com/billhsu/comments/101921.htmlhttp://www.shnenglu.com/billhsu/archive/2009/11/25/101921.html#Feedback2http://www.shnenglu.com/billhsu/comments/commentRss/101921.htmlhttp://www.shnenglu.com/billhsu/services/trackbacks/101921.html

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

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

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

(娉ㄦ剰錛氭ā鍨嬫槸浠巚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://www.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://www.shnenglu.com/billhsu/archive/2009/10/17/98823.html</guid><wfw:comment>http://www.shnenglu.com/billhsu/comments/98823.html</wfw:comment><comments>http://www.shnenglu.com/billhsu/archive/2009/10/17/98823.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.shnenglu.com/billhsu/comments/commentRss/98823.html</wfw:commentRss><trackback:ping>http://www.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://www.shnenglu.com/billhsu/aggbug/98823.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/billhsu/" target="_blank">Bill Hsu</a> 2009-10-17 13:10 <a href="http://www.shnenglu.com/billhsu/archive/2009/10/17/98823.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>娓告垙寮鍙戣呭勾浼?009http://www.shnenglu.com/billhsu/archive/2009/10/11/98318.htmlBill HsuBill HsuSun, 11 Oct 2009 09:56:00 GMThttp://www.shnenglu.com/billhsu/archive/2009/10/11/98318.htmlhttp://www.shnenglu.com/billhsu/comments/98318.htmlhttp://www.shnenglu.com/billhsu/archive/2009/10/11/98318.html#Feedback0http://www.shnenglu.com/billhsu/comments/commentRss/98318.htmlhttp://www.shnenglu.com/billhsu/services/trackbacks/98318.html

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

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


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









Bill Hsu 2009-10-11 17:56 鍙戣〃璇勮
]]>
3d緙栫▼鐨勬棤鏁岀粍鍚?/title><link>http://www.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://www.shnenglu.com/billhsu/archive/2009/08/03/91991.html</guid><wfw:comment>http://www.shnenglu.com/billhsu/comments/91991.html</wfw:comment><comments>http://www.shnenglu.com/billhsu/archive/2009/08/03/91991.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/billhsu/comments/commentRss/91991.html</wfw:commentRss><trackback:ping>http://www.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://www.shnenglu.com/billhsu/aggbug/91991.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/billhsu/" target="_blank">Bill Hsu</a> 2009-08-03 08:35 <a href="http://www.shnenglu.com/billhsu/archive/2009/08/03/91991.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鑷繁鍐欑殑3D娓告垙http://www.shnenglu.com/billhsu/archive/2009/07/29/91578.htmlBill HsuBill HsuWed, 29 Jul 2009 05:04:00 GMThttp://www.shnenglu.com/billhsu/archive/2009/07/29/91578.htmlhttp://www.shnenglu.com/billhsu/comments/91578.htmlhttp://www.shnenglu.com/billhsu/archive/2009/07/29/91578.html#Feedback6http://www.shnenglu.com/billhsu/comments/commentRss/91578.htmlhttp://www.shnenglu.com/billhsu/services/trackbacks/91578.html

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

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



寮鍙戠幆澧冿細
Visual C++ 2003 & Directx9.0c SDK
鍦╳indows緋葷粺閮藉彲浠ヨ繍琛?br />
鎿嶄綔錛?br /> 鐢ㄤ笂涓嬪乏鍙抽敭鎺у埗鎮ㄧ殑椋炶埞
鐢ㄦ帶鍒墮敭[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://www.shnenglu.com/billhsu/archive/2009/07/25/91123.htmlBill HsuBill HsuSat, 25 Jul 2009 07:00:00 GMThttp://www.shnenglu.com/billhsu/archive/2009/07/25/91123.htmlhttp://www.shnenglu.com/billhsu/comments/91123.htmlhttp://www.shnenglu.com/billhsu/archive/2009/07/25/91123.html#Feedback5http://www.shnenglu.com/billhsu/comments/commentRss/91123.htmlhttp://www.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://www.shnenglu.com/billhsu/archive/2009/06/23/88346.htmlBill HsuBill HsuTue, 23 Jun 2009 02:12:00 GMThttp://www.shnenglu.com/billhsu/archive/2009/06/23/88346.htmlhttp://www.shnenglu.com/billhsu/comments/88346.htmlhttp://www.shnenglu.com/billhsu/archive/2009/06/23/88346.html#Feedback1http://www.shnenglu.com/billhsu/comments/commentRss/88346.htmlhttp://www.shnenglu.com/billhsu/services/trackbacks/88346.html
澧炲姞浜?TextureManager鍜?
BillBoard鍔ㄧ敾鎾斁,鏂逛究娓叉煋鐖嗙偢鏁堟灉


Bill Hsu 2009-06-23 10:12 鍙戣〃璇勮
]]>
娓告垙涓瑿PU浣跨敤鐜囩殑鎺у埗http://www.shnenglu.com/billhsu/archive/2009/06/12/87472.htmlBill HsuBill HsuFri, 12 Jun 2009 04:00:00 GMThttp://www.shnenglu.com/billhsu/archive/2009/06/12/87472.htmlhttp://www.shnenglu.com/billhsu/comments/87472.htmlhttp://www.shnenglu.com/billhsu/archive/2009/06/12/87472.html#Feedback18http://www.shnenglu.com/billhsu/comments/commentRss/87472.htmlhttp://www.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://www.shnenglu.com/billhsu/archive/2009/06/10/87356.htmlBill HsuBill HsuWed, 10 Jun 2009 13:15:00 GMThttp://www.shnenglu.com/billhsu/archive/2009/06/10/87356.htmlhttp://www.shnenglu.com/billhsu/comments/87356.htmlhttp://www.shnenglu.com/billhsu/archive/2009/06/10/87356.html#Feedback0http://www.shnenglu.com/billhsu/comments/commentRss/87356.htmlhttp://www.shnenglu.com/billhsu/services/trackbacks/87356.html 鍏跺疄涔熷氨鏄妸涓浜涚被灝佽涓涓嬶紝璁╁紑鍙戞洿綆緇擄紝浠ュ紑婧愬拰瀹炵敤涓虹涓鍑嗗垯銆?br />



Bill Hsu 2009-06-10 21:15 鍙戣〃璇勮
]]>
瀵昏礬綆楁硶鏁寸悊http://www.shnenglu.com/billhsu/archive/2009/01/23/72513.htmlBill HsuBill HsuFri, 23 Jan 2009 09:22:00 GMThttp://www.shnenglu.com/billhsu/archive/2009/01/23/72513.htmlhttp://www.shnenglu.com/billhsu/comments/72513.htmlhttp://www.shnenglu.com/billhsu/archive/2009/01/23/72513.html#Feedback3http://www.shnenglu.com/billhsu/comments/commentRss/72513.htmlhttp://www.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://www.shnenglu.com/billhsu/archive/2008/12/27/70517.htmlBill HsuBill HsuSat, 27 Dec 2008 09:18:00 GMThttp://www.shnenglu.com/billhsu/archive/2008/12/27/70517.htmlhttp://www.shnenglu.com/billhsu/comments/70517.htmlhttp://www.shnenglu.com/billhsu/archive/2008/12/27/70517.html#Feedback1http://www.shnenglu.com/billhsu/comments/commentRss/70517.htmlhttp://www.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://www.shnenglu.com/billhsu/archive/2008/11/01/65700.htmlBill HsuBill HsuSat, 01 Nov 2008 10:19:00 GMThttp://www.shnenglu.com/billhsu/archive/2008/11/01/65700.htmlhttp://www.shnenglu.com/billhsu/comments/65700.htmlhttp://www.shnenglu.com/billhsu/archive/2008/11/01/65700.html#Feedback0http://www.shnenglu.com/billhsu/comments/commentRss/65700.htmlhttp://www.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*鏄竴縐嶅惎鍙戝紡鐨勭畻娉曪紝鎵璋撶殑"鍚彂寮?錛屽氨鏄姣忎竴涓悳绱㈢殑浣嶇疆榪涜璇勪及錛屼篃灝辨槸鎶婃壘鐨勪綅緗鐩爣鐨勮窛紱誨綋鎴愭壘鐐圭殑涓涓緷鎹紝鐒跺悗鐚滄祴榪欎釜鐐規槸鍚︽渶浣?"鍚彂寮?灝辨槸鐚滄祴)銆?br />
image001.jpg

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

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


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

image003.jpg

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

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


image004.jpg

image005.jpg

image006.jpg

image007.jpg

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



Bill Hsu 2008-11-01 18:19 鍙戣〃璇勮
]]>
鍥涘厓鏁板叆闂?/title><link>http://www.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://www.shnenglu.com/billhsu/archive/2008/09/30/63099.html</guid><wfw:comment>http://www.shnenglu.com/billhsu/comments/63099.html</wfw:comment><comments>http://www.shnenglu.com/billhsu/archive/2008/09/30/63099.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.shnenglu.com/billhsu/comments/commentRss/63099.html</wfw:commentRss><trackback:ping>http://www.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://www.shnenglu.com/billhsu/aggbug/63099.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/billhsu/" target="_blank">Bill Hsu</a> 2008-09-30 19:34 <a href="http://www.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://www.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://www.shnenglu.com/billhsu/archive/2008/09/15/61846.html</guid><wfw:comment>http://www.shnenglu.com/billhsu/comments/61846.html</wfw:comment><comments>http://www.shnenglu.com/billhsu/archive/2008/09/15/61846.html#Feedback</comments><slash:comments>6</slash:comments><wfw:commentRss>http://www.shnenglu.com/billhsu/comments/commentRss/61846.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/billhsu/services/trackbacks/61846.html</trackback:ping><description><![CDATA[鍦╣ameres涓婄湅鍒扮殑錛屾劅瑙夊緢鍒涙剰銆傘傘?br> <br> 瀹炵幇鏂規硶<br> 鍑嗗涓や釜鎽勫儚鏈猴紝瀵瑰噯鍚屼竴鐐癸紝浜ゆ浛娓叉煋綰㈠拰緇跨殑鐢婚潰錛屽甫涓婄孩緇跨溂闀?img src="http://www.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://www.shnenglu.com/billhsu/aggbug/61846.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/billhsu/" target="_blank">Bill Hsu</a> 2008-09-15 11:56 <a href="http://www.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://www.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://www.shnenglu.com/billhsu/archive/2008/08/23/59735.html</guid><wfw:comment>http://www.shnenglu.com/billhsu/comments/59735.html</wfw:comment><comments>http://www.shnenglu.com/billhsu/archive/2008/08/23/59735.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/billhsu/comments/commentRss/59735.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/billhsu/services/trackbacks/59735.html</trackback:ping><description><![CDATA[<img style="width: 472px; height: 373px;" alt="" src="http://www.shnenglu.com/images/cppblog_com/billhsu/irr.JPG"><br><br>涓婃鍦╯ourceforge.net(澶у悕榧庨紟鐨勫紑婧愪唬鐮佺綉绔?涓婄湅鍒扮殑錛岃繖涓猧rrlicht鐪熷緢浜嗕笉璧鳳紝 铏界劧鏄紑婧愮殑錛屼笉榪囨劅瑙夊凡緇忚揪鍒伴偅浜涘嚑涓囩編鍏冪殑鍟嗕笟綰х殑3D寮曟搸涓婂叿鏈夌殑鐗規с傝屼笖璺ㄥ鉤鍙幫紝鍐欎竴嬈′唬鐮佸彲浠ュ湪澶氱鎿嶄綔緋葷粺涓婄紪璇戙?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://www.shnenglu.com/billhsu/aggbug/59735.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/billhsu/" target="_blank">Bill Hsu</a> 2008-08-23 17:53 <a href="http://www.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://www.shnenglu.com/billhsu/archive/2008/08/10/58429.htmlBill HsuBill HsuSun, 10 Aug 2008 03:05:00 GMThttp://www.shnenglu.com/billhsu/archive/2008/08/10/58429.htmlhttp://www.shnenglu.com/billhsu/comments/58429.htmlhttp://www.shnenglu.com/billhsu/archive/2008/08/10/58429.html#Feedback4http://www.shnenglu.com/billhsu/comments/commentRss/58429.htmlhttp://www.shnenglu.com/billhsu/services/trackbacks/58429.html榪欎喚浠g爜鐩墠姣旇緝緋熺硶錛屾湁鐐逛貢錛岃屼笖娌℃湁閿欒澶勭悊錛屼絾寮婧愭槸涓縐嶄範鎯傘傘?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.濡傛灉浣犳効鎰忎慨鏀規簮浠g爜錛屽彧瑕佸悎鐞嗭紝灝變細琚噰鐢紝鍚嶅瓧涔熶細鍔犲叆Author閲屻傘傘?br>
涓嬭澆RapScript V0.0.0.1婧愪唬鐮?/a>
鈹忊攣鈹撱銆銆鈹忊攣鈹佲敁銆銆銆鈹忊敁銆銆銆銆銆
鈹冣攦鈹b攣鈹斥攣鈹攣鈹佲晪鈹佲敵鈹斥晪鈺嬧攣鈹斥攣鈹佲敁
鈹冦鈹攣鈹冣攦鈹b攣鈹佲攦鈹b敨鈹忊敨鈹冣攦鈹b敁鈹忊敍
鈹椻敾鈹燴敾鈹攺鈹燴攣鈹佲敾鈹佲敾鈹涒敆鈹攺鈹涒敆鈹涖
             鈹椻敍銆銆銆銆銆銆銆銆鈹椻敍銆銆銆銆




Bill Hsu 2008-08-10 11:05 鍙戣〃璇勮
]]>
RapScript寮鍙戞棩蹇?2008.8.6http://www.shnenglu.com/billhsu/archive/2008/08/06/58176.htmlBill HsuBill HsuWed, 06 Aug 2008 12:19:00 GMThttp://www.shnenglu.com/billhsu/archive/2008/08/06/58176.htmlhttp://www.shnenglu.com/billhsu/comments/58176.htmlhttp://www.shnenglu.com/billhsu/archive/2008/08/06/58176.html#Feedback1http://www.shnenglu.com/billhsu/comments/commentRss/58176.htmlhttp://www.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://www.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://www.shnenglu.com/billhsu/archive/2008/07/23/56974.html</guid><wfw:comment>http://www.shnenglu.com/billhsu/comments/56974.html</wfw:comment><comments>http://www.shnenglu.com/billhsu/archive/2008/07/23/56974.html#Feedback</comments><slash:comments>7</slash:comments><wfw:commentRss>http://www.shnenglu.com/billhsu/comments/commentRss/56974.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/billhsu/services/trackbacks/56974.html</trackback:ping><description><![CDATA[<img alt="" src="http://www.shnenglu.com/images/cppblog_com/billhsu/7643/o_2037.JPG"><br> 鎴?span>鍒氬娓告垙緙栫▼鏃跺啓鐨勭▼搴忥紝瀵瑰垵瀛﹁呭彲鑳芥湁鐢紝甯屾湜澶у鍠滄 :-)<br><br>鎵ц鏂囦歡涓嬭澆錛?br><a target="_blank" href="http://www.shnenglu.com/Files/billhsu/2037.rar">http://www.shnenglu.com/Files/billhsu/2037.rar</a><br><br>婧愪唬鐮佷笅杞斤細<br><a target="_blank" href="http://www.shnenglu.com/Files/billhsu/Source_2037.rar">http://www.shnenglu.com/Files/billhsu/Source_2037.rar</a><br></span><br> <img src ="http://www.shnenglu.com/billhsu/aggbug/56974.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/billhsu/" target="_blank">Bill Hsu</a> 2008-07-23 19:04 <a href="http://www.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://www.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://www-137999.com" target="_blank">欧美一区二区三区的</a>| <a href="http://whmingtong.com" target="_blank">精品va天堂亚洲国产</a>| <a href="http://7777731.com" target="_blank">欧美电影免费观看</a>| <a href="http://32m8.com" target="_blank">国产欧美日韩不卡</a>| <a href="http://woaigougou.com" target="_blank">99视频有精品</a>| <a href="http://329374.com" target="_blank">一本一本a久久</a>| <a href="http://woniuminsu.com" target="_blank">蘑菇福利视频一区播放</a>| <a href="http://97caoporm.com" target="_blank">久久久一区二区</a>| <a href="http://shiselol.com" target="_blank">国产精品一二三四</a>| <a href="http://3374com.com" target="_blank">在线亚洲欧美视频</a>| <a href="http://667939.com" target="_blank">一区二区成人精品</a>| <a href="http://5110010.com" target="_blank">欧美黄色一级视频</a>| <a href="http://zzzz80.com" target="_blank">亚洲国产岛国毛片在线</a>| <a href="http://wwwby2232.com" target="_blank">激情视频一区二区</a>| <a href="http://by71222.com" target="_blank">欧美在线二区</a>| <a href="http://dracotek.com" target="_blank">久久久国产精品一区二区中文</a>| <a href="http://sinojinxing.com" target="_blank">欧美亚洲不卡</a>| <a href="http://www-111111.com" target="_blank">99在线精品视频在线观看</a>| <a href="http://cbb188.com" target="_blank">日韩午夜高潮</a>| <a href="http://677679.com" target="_blank">欧美经典一区二区</a>| <a href="http://caoliu20.com" target="_blank">最新成人在线</a>| <a href="http://www38ccc.com" target="_blank">夜夜嗨av一区二区三区网站四季av</a>| <a href="http://www201314.com" target="_blank">狂野欧美激情性xxxx欧美</a>| <a href="http://884v.com" target="_blank">欧美成人一区二区三区在线观看</a>| <a href="http://621768.com" target="_blank">狠狠色综合日日</a>| <a href="http://6399128.com" target="_blank">久久一二三国产</a>| <a href="http://miya2223.com" target="_blank">欧美成人在线免费视频</a>| <a href="http://xb735.com" target="_blank">亚洲国产精品黑人久久久 </a>| <a href="http://www497171a.com" target="_blank">欧美精品久久久久久久免费观看 </a>| <a href="http://www-q28.com" target="_blank">国产精品久久看</a>| <a href="http://yyy922.com" target="_blank">亚洲无线观看</a>| <a href="http://www633998.com" target="_blank">欧美亚洲综合在线</a>| <a href="http://8004006.com" target="_blank">国产一区二区三区观看</a>| <a href="http://cswlts.com" target="_blank">久久婷婷久久一区二区三区</a>| <a href="http://beeperagain.com" target="_blank">免费观看成人www动漫视频</a>| <a href="http://5757ff.com" target="_blank">亚洲高清电影</a>| <a href="http://tfccrk.com" target="_blank">欧美激情精品久久久久</a>| <a href="http://szth186.com" target="_blank">99国产精品久久久久老师</a>| <a href="http://bgdete.com" target="_blank">亚洲一区中文字幕在线观看</a>| <a href="http://72nnnn.com" target="_blank">国产精品自在在线</a>| <a href="http://xingzhiyin85.com" target="_blank">久久精品青青大伊人av</a>| <a href="http://yy0754.com" target="_blank">欧美国产日韩视频</a>| <a href="http://xxdd51.com" target="_blank">亚洲视屏在线播放</a>| <a href="http://4430x.com" target="_blank">国产精品入口尤物</a>| <a href="http://zhiuh.com" target="_blank">久久精品国产亚洲5555</a>| <a href="http://baoyou118.com" target="_blank">欧美激情第4页</a>| <a href="http://78757a.com" target="_blank">亚洲无线一线二线三线区别av</a>| <a href="http://gaysexcube.com" target="_blank">国产精品久久激情</a>| <a href="http://xiangshi888.com" target="_blank">欧美在线你懂的</a>| <a href="http://tefahsop.com" target="_blank">亚洲福利精品</a>| <a href="http://yanuoxun.com" target="_blank">亚洲欧美日韩区</a>| <a href="http://91porn42.com" target="_blank">伊人男人综合视频网</a>| <a href="http://jxchunlong.com" target="_blank">欧美日本亚洲</a>| <a href="http://xpj493.com" target="_blank">午夜亚洲福利</a>| <a href="http://gaysexcube.com" target="_blank">亚洲欧洲精品天堂一级</a>| <a href="http://www-772773.com" target="_blank">午夜精品国产</a>| <a href="http://7373se.com" target="_blank">亚洲国产成人精品视频</a>| <a href="http://00001xh.com" target="_blank">欧美系列精品</a>| <a href="http://394141.com" target="_blank">另类图片综合电影</a>| <a href="http://5254f.com" target="_blank">亚洲一区bb</a>| <a href="http://sdjinchuan.com" target="_blank">欧美激情bt</a>| <a href="http://56lin.com" target="_blank">久久精品免费看</a>| <a href="http://www-136hk.com" target="_blank">99国产精品99久久久久久粉嫩</a>| <a href="http://www-23918.com" target="_blank">国产乱码精品一区二区三区忘忧草 </a>| <a href="http://uuuu30.com" target="_blank">免费在线亚洲</a>| <a href="http://wslsp.com" target="_blank">亚洲一区二区三区精品视频</a>| <a href="http://75pppp.com" target="_blank">极品少妇一区二区三区</a>| <a href="http://goldure.com" target="_blank">欧美日韩精品免费观看视频</a>| <a href="http://www-35777.com" target="_blank">欧美在线999</a>| <a href="http://youjizzbox.com" target="_blank">99综合在线</a>| <a href="http://tristooges.com" target="_blank">欧美电影免费观看</a>| <a href="http://mfgun.com" target="_blank">久久精品一区中文字幕</a>| <a href="http://48655aa.com" target="_blank">在线亚洲自拍</a>| <a href="http://344230.com" target="_blank">亚洲国内在线</a>| <a href="http://bjygp.com" target="_blank">国内精品国语自产拍在线观看</a>| <a href="http://jzsp94.com" target="_blank">欧美激情精品久久久久久黑人</a>| <a href="http://777777hb.com" target="_blank">欧美一区二区三区的</a>| <a href="http://521mu.com" target="_blank">99精品久久</a>| <a href="http://789583.com" target="_blank">亚洲欧洲日本在线</a>| <a href="http://www-06654.com" target="_blank">久久在线免费观看</a>| <a href="http://aidou28.com" target="_blank">欧美在线视频免费播放</a>| <a href="http://xshgwy.com" target="_blank">一区二区三区|亚洲午夜</a>| <a href="http://x2b2.com" target="_blank">亚洲二区视频</a>| <a href="http://tzhsdy.com" target="_blank">国产一区视频在线观看免费</a>| <a href="http://pabjzz.com" target="_blank">欧美色图首页</a>| <a href="http://4388x3.com" target="_blank">欧美日韩不卡</a>| <a href="http://free18teen.com" target="_blank">欧美大片91</a>| <a href="http://woniuminsu.com" target="_blank">久久免费国产精品</a>| <a href="http://21bridal.com" target="_blank">欧美一区二区视频在线观看2020</a>| <a href="http://4488269.com" target="_blank">一本一本a久久</a>| <a href="http://www381818.com" target="_blank">亚洲精选一区</a>| <a href="http://sdtricoop.com" target="_blank">亚洲日本视频</a>| <a href="http://cc28256.com" target="_blank">亚洲人成人一区二区三区</a>| <a href="http://xvideoav99.com" target="_blank">免费观看一级特黄欧美大片</a>| <a href="http://www330849.com" target="_blank">久久爱www.</a>| <a href="http://huohuoglobal.com" target="_blank">欧美一区二区视频观看视频</a>| <a href="http://660507jj.com" target="_blank">亚洲女女女同性video</a>| <a href="http://339254.com" target="_blank">一本色道久久加勒比精品</a>| <a href="http://zgztby.com" target="_blank">最新高清无码专区</a>| <a href="http://xb735.com" target="_blank">亚洲国产综合在线</a>| <a href="http://jav69me.com" target="_blank">91久久中文字幕</a>| <a href="http://345fz.com " target="_blank">亚洲国产精品va在看黑人</a>| <a href="http://ztsctgs.com" target="_blank">在线观看久久av</a>| <a href="http://799858.com" target="_blank">亚洲夫妻自拍</a>| <a href="http://660507ww.com" target="_blank">亚洲第一精品久久忘忧草社区</a>| <a href="http://am3757.com" target="_blank">韩国av一区二区三区四区</a>| <a href="http://avjj80.com" target="_blank">国外成人在线</a>| <a href="http://86311ib.com" target="_blank">亚洲高清免费在线</a>| <a href="http://huangsedy.com" target="_blank">亚洲三级视频</a>| <a href="http://caox8.com" target="_blank">日韩亚洲欧美高清</a>| <a href="http://www668889.com" target="_blank">一区二区三区产品免费精品久久75</a>| <a href="http://6688zf.com" target="_blank">亚洲美女免费精品视频在线观看</a>| <a href="http://ekuyun.com" target="_blank">亚洲毛片在线</a>| <a href="http://ccc36-com.com" target="_blank">中文国产一区</a>| <a href="http://my736.com" target="_blank">性亚洲最疯狂xxxx高清</a>| <a href="http://www672hh.com" target="_blank">欧美资源在线</a>| <a href="http://yjizz08.com" target="_blank">麻豆freexxxx性91精品</a>| <a href="http://6688zf.com" target="_blank">亚洲第一福利社区</a>| <a href="http://zgztby.com" target="_blank">亚洲精品在线免费观看视频</a>| <a href="http://qscxx3.com" target="_blank">亚洲另类春色国产</a>| <a href="http://wwzz3.com" target="_blank">亚洲一区中文</a>| <a href="http://668756.com" target="_blank">久久精品国产69国产精品亚洲</a>| <a href="http://844985.com" target="_blank">久久精品日韩</a>| <a href="http://www515678.com" target="_blank">欧美精品入口</a>| <a href="http://www-440447.com" target="_blank">国产精品视频专区</a>| <a href="http://noeljgq.com" target="_blank">国语自产精品视频在线看一大j8</a>| <a href="http://apap77.com" target="_blank">在线欧美日韩精品</a>| <a href="http://wy77777.com" target="_blank">99这里只有久久精品视频</a>| <a href="http://writeingo.com" target="_blank">亚洲性av在线</a>| <a href="http://xshgwy.com" target="_blank">久久夜色精品</a>| <a href="http://liuyangzi.com" target="_blank">亚洲精品一区二区三区99</a>| <a href="http://xshgwy.com" target="_blank">亚洲一区二区精品在线</a>| <a href="http://buyiker.com" target="_blank">欧美在线电影</a>| <a href="http://wwwavtb1122.com" target="_blank">欧美激情一级片一区二区</a>| <a href="http://9238479.com" target="_blank">国产精品黄色</a>| <a href="http://www5123ri.com" target="_blank">精久久久久久</a>| <a href="http://123273.com" target="_blank">在线亚洲成人</a>| <a href="http://58yewu.com" target="_blank">久久一区亚洲</a>| <a href="http://www22336.com" target="_blank">99国产精品视频免费观看一公开 </a>| <a href="http://778kb.com" target="_blank">亚洲电影在线播放</a>| <a href="http://xilxx.com" target="_blank">一区二区不卡在线视频 午夜欧美不卡'</a>| <a href="http://www123hao.com" target="_blank">亚洲丝袜av一区</a>| <a href="http://yahuake.com" target="_blank">久久久精品国产99久久精品芒果</a>| <a href="http://1332233.com" target="_blank">亚洲第一免费播放区</a>| <a href="http://haomscq.com" target="_blank">亚洲一区二区三区精品在线</a>| <a href="http://y65y.com" target="_blank">久久男女视频</a>| <a href="http://tefahsop.com" target="_blank">国产精品欧美在线</a>| <a href="http://boocnn.com" target="_blank">最新热久久免费视频</a>| <a href="http://559dd.com" target="_blank">亚洲欧美国产视频</a>| <a href="http://6hzl8.com" target="_blank">欧美激情91</a>| <a href="http://域名" target="_blank">久久成人18免费网站</a>| <a href="http://h7yy.com" target="_blank">欧美日韩精品一区二区在线播放 </a>| <a href="http://aa224.com" target="_blank">1769国内精品视频在线播放</a>| <a href="http://ebmsci.com" target="_blank">亚洲午夜激情免费视频</a>| <a href="http://bkksd.com" target="_blank">老司机精品视频网站</a>| <a href="http://qqszdq.com" target="_blank">亚洲视频一区二区免费在线观看</a>| <a href="http://012488.com" target="_blank">久久精彩免费视频</a>| <a href="http://csmdjs.com" target="_blank">国产精品成人一区二区艾草</a>| <a href="http://xiaokd666.com" target="_blank">亚洲电影免费在线观看</a>| <a href="http://seqingdao.com" target="_blank">亚洲欧美偷拍卡通变态</a>| <a href="http://2061826.com" target="_blank">欧美激情在线有限公司</a>| <a href="http://hsxinbao.com" target="_blank">先锋影院在线亚洲</a>| <a href="http://6222h.com" target="_blank">欧美午夜免费电影</a>| <a href="http://chaoxibg.com" target="_blank">亚洲国产欧美一区二区三区久久</a>| <a href="http://zgztby.com" target="_blank">亚洲欧美制服中文字幕</a>| <a href="http://794579.com" target="_blank">亚洲激情网站</a>| <a href="http://110673.com" target="_blank">久久最新视频</a>| <a href="http://344230.com" target="_blank">国产综合亚洲精品一区二</a>| <a href="http://7kz6.com" target="_blank">亚洲欧美经典视频</a>| <a href="http://www515678.com" target="_blank">亚洲精品国产精品久久清纯直播</a>| <a href="http://5917t.com" target="_blank">久久欧美中文字幕</a>| <a href="http://ategpu.com" target="_blank">国语自产在线不卡</a>| <a href="http://www99mmnn.com" target="_blank">欧美一区成人</a>| <a href="http://029902.com" target="_blank">亚洲深夜福利视频</a>| <a href="http://yy306.com" target="_blank">欧美日韩一二区</a>| <a href="http://1000kongbao.com" target="_blank">亚洲精选大片</a>| <a href="http://www-36900.com" target="_blank">亚洲国产精品va在线看黑人</a>| <a href="http://shalxee.com" target="_blank">久久免费国产</a>| <a href="http://pfpf66.com" target="_blank">伊人久久婷婷</a>| <a href="http://wwwlywbb.com" target="_blank">另类亚洲自拍</a>| <a href="http://cpb-group.com" target="_blank">欧美专区在线播放</a>| <a href="http://roujizz.com" target="_blank">国产日韩欧美在线播放</a>| <a href="http://yichenep.com" target="_blank">欧美亚洲色图校园春色</a>| <a href="http://dv6699.com" target="_blank">亚洲午夜激情网站</a>| <a href="http://www-90567.com" target="_blank">国产精品美女一区二区在线观看</a>| <a href="http://quintostdio.com" target="_blank">一区二区日韩精品</a>| <a href="http://ibenbio.com" target="_blank">99re66热这里只有精品4 </a>| <a href="http://www-577511.com" target="_blank">欧美a级片网站</a>| <a href="http://www-13978.com" target="_blank">亚洲国产日韩在线</a>| <a href="http://pppp95.com" target="_blank">欧美激情亚洲精品</a>| <a href="http://www-3844444.com" target="_blank">欧美~级网站不卡</a>| <a href="http://muwendada.com" target="_blank">亚洲激情一区</a>| <a href="http://z169.com" target="_blank">亚洲激情自拍</a>| <a href="http://nnnn34.com" target="_blank">欧美日韩成人综合天天影院</a>| <a href="http://ategpu.com" target="_blank">99国产精品久久久久久久</a>| <a href="http://www99mmnn.com" target="_blank">亚洲片国产一区一级在线观看</a>| <a href="http://spvicarb.com" target="_blank">欧美大片一区</a>| <a href="http://hakuihoso.com" target="_blank">中国女人久久久</a>| <a href="http://xshgwy.com" target="_blank">亚洲视频在线观看</a>| <a href="http://4438x28.com" target="_blank">国产日韩av在线播放</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>