答复: [cpp] 请假D3D中碰撞检测问题

Jack maxding at tom.com
Wed Mar 29 19:05:52 CST 2006


你要的bounding box检测还是Mesh的精确检测啊?


  _____  

发件人: cpp-bounces at codingnow.com [mailto:cpp-bounces at codingnow.com] 代表 苏
益ꪏ
发送时间: 2006年3月29日 16:55
收件人: cpp at codingnow.com
主题: Re: [cpp] 请假D3D中碰撞检测问题


&# 8220;3、判断这条射线和模型中每个三角形的相交情况(Intersect)。&# 8221;
请问这一步,如何实现?


我渲染各架飞机的流程是这样的:

for( 每一架飞机 )
{
1 根据游戏数据,设置其距阵 
2 调用Mesh模型的DrawSubset函数
}

也就是说,实质上只有一个Mesh模型,但世界里却有很多飞机。
而我现在想做的是,判断其中某一驾飞机,是否被鼠标对准?






=============================================== 
 <http://bjcgi.163.net/cgi-bin/newreg.cgi?rf=050602> 快来和我一起享受TOM免费
邮箱吧! 看看除了1.5G,还有什么? 

 <http://vip.tom.com/info/ggd_050409/index.html>     敲开精彩 聊天世界
<http://chat.tom.com/> :网通用户 <http://chat.tom.com/>  电信用户
<http://schat.tom.com/>  

明星送祝福(http://sr.tom.com): 周杰伦
<http://sr.tom.com/send.php?id=330&type=2>   蔡依林 <http://sr.tom.com/send.
php?id=315&type=2>   王力宏 <http://sr.tom.com/send.php?id=257&type=2>   田
震 <http://sr.tom.com/send.php?id=247&type=2>   代您送去生日祝福 

万首金曲免费送(http://mm.tom.com/ivr/) : 你到底爱谁
<http://fs.tom.com/sms/ivr_song_step0.php?var=1&id=37987&user_id=3&code_id=i
w4001&>   千年之恋
<http://fs.tom.com/sms/ivr_song_step0.php?var=1&id=38205&user_id=3&code_id=i
w4001&>   我是真的爱你
<http://fs.tom.com/sms/ivr_song_step0.php?var=1&id=37938&user_id=3&code_id=i
s0001&>   一辈子做你的女孩
<http://fs.tom.com/sms/ivr_song_step0.php?var=1&id=1431&user_id=3&code_id=iw
4001&> 

全部彩铃免费送(http://mm.tom.com/cailing/): 我发财了发财了
<http://fs.tom.com/sms/cailing_step0.php?var=1&id=462&songtype=1&user_id=3&c
ode_id=000000&songprovince=甘肃&>   你喜欢我就说嘛
<http://fs.tom.com/sms/cailing_step0.php?var=1&id=300&songtype=1&user_id=3&c
ode_id=000000&songprovince=北京&>   两只蝴蝶
<http://fs.tom.com/sms/cailing_step0.php?var=1&id=1345&songtype=0&user_id=3&
code_id=&songprovince=北京&>   冲动的惩罚
<http://fs.tom.com/sms/cailing_step0.php?var=1&id=376&songtype=0&user_id=3&c
ode_id=&songprovince=北京&> 
=============================================== 	

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://codingnow.com/pipermail/cpp/attachments/20060329/1690b171/attachment.html


More information about the Cpp mailing list