• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            隨筆 - 505  文章 - 1034  trackbacks - 0
            <2011年5月>
            24252627282930
            1234567
            891011121314
            15161718192021
            22232425262728
            2930311234


            子曾經曰過:編程無他,唯手熟爾!

            常用鏈接

            留言簿(94)

            隨筆分類(649)

            隨筆檔案(505)

            相冊

            BCB

            Crytek

            • crymod
            • Crytek's Offical Modding Portal

            Game Industry

            OGRE

            other

            Programmers

            Qt

            WOW Stuff

            搜索

            •  

            積分與排名

            • 積分 - 911663
            • 排名 - 14

            最新隨筆

            最新評論

            閱讀排行榜

            評論排行榜

            在游戲里面鼠標與某個npc相交了后,就讓npc的邊緣高亮顯示或者怎么處理下,讓玩家很明確地知道他點下去就能選中此npc。《卓越之劍》有這效果。google了下沒找到相關資料。

            我在gamedev上的entity after he click the mouse left button.for example, there are many monsters around the main character in the game,
             it is not easy to pick one monster.I googled this,but found nothing.who can give me some suggestion?

            老外的回答:
            The simplest method is to draw the object colored in the highlight color, with some scaling to make it larger than the

            original object. Do this drawing with depth writes turned off. Then, after this, draw the object as usual, with depth

            writes on again.There are more complex methods, depending on your application - depending on what is your bottleneck,

            depending on complexity of your monster models etc etc. but the method above is simple to implement and should work
            for most cases.



             

            逍遙劍客對此問題的解決辦法

            2009-7-3
            學習了這么久,也自己試試


            遇到的問題:
            Pass 0  Render State設為D3DCULL_CW,
            Pass 1 Render Staete要設為D3DCULL_None
            http://msdn.microsoft.com/en-us/library/ee416459(VS.85).aspx
            D3DCULL_CW
            Cull back faces with clockwise vertices.
            D3DCULL_CCW
            Cull back faces with counterclockwise vertices.

            下一步在目前的項目里實現下。
            posted on 2007-11-18 20:30 七星重劍 閱讀(2033) 評論(6)  編輯 收藏 引用 所屬分類: Game Graphics

            FeedBack:
            # re: 物件的邊緣高亮(Entity edge highlight)[未登錄] 2007-11-19 00:02 flyman
            :-),這樣確實很妙,有遮擋了,其不是出來一個圈,呵呵  回復  更多評論
              
            # re: 物件的邊緣高亮(Entity edge highlight) 2007-11-19 03:31 逍遙劍客
            我解決了這個方法的缺點了,呵呵
            放縮模型時用法線方向上的放縮,這樣就不會錯位了
            然后放大的模型用D3DCULL_CW來渲染,這樣也就不用關閉Depth-Write了
            明天看看咋加到游戲里去  回復  更多評論
              
            # re: 物件的邊緣高亮(Entity edge highlight) 2007-11-19 12:18 重劍
            @逍遙劍客
            good work  回復  更多評論
              
            # re: 物件的邊緣高亮(Entity edge highlight) 2007-11-19 12:18 重劍
            @flyman
            gamedev上高手多啊  回復  更多評論
              
            # re: 物件的邊緣高亮(Entity edge highlight)[未登錄] 2007-11-19 17:22 flyman
            @逍遙劍客
            你想的太妙了,這種方法確實不錯。  回復  更多評論
              
            # re: 物件的邊緣高亮(Entity edge highlight) 2012-10-08 11:15 鍵盤
            還是有問題把,如果遇到半透的或者中間是鏤空的npc,不就穿幫了么?  回復  更多評論
              
            大美女久久久久久j久久| 久久人人爽人人爽人人AV| 久久久九九有精品国产| 成人a毛片久久免费播放| 品成人欧美大片久久国产欧美... 品成人欧美大片久久国产欧美 | 亚洲综合伊人久久大杳蕉| 麻豆亚洲AV永久无码精品久久| 国产91久久精品一区二区| 久久综合欧美成人| 久久精品国产亚洲av麻豆图片| 精品国际久久久久999波多野| 久久www免费人成精品香蕉| 综合久久一区二区三区| 夜夜亚洲天天久久| 久久精品中文字幕大胸| 久久精品男人影院| 日本强好片久久久久久AAA| 久久久久无码精品国产app| 国产成人精品免费久久久久| 一本色道久久88综合日韩精品| 精品综合久久久久久97超人| 一级a性色生活片久久无少妇一级婬片免费放 | 亚洲精品午夜国产va久久| 久久99国产亚洲高清观看首页| 精品人妻伦九区久久AAA片69| 久久久不卡国产精品一区二区| 久久久精品一区二区三区| 久久精品无码午夜福利理论片| 亚洲精品国产综合久久一线| 久久精品国产99久久香蕉| 久久综合综合久久狠狠狠97色88| 久久无码人妻一区二区三区午夜| 久久综合偷偷噜噜噜色| 人人狠狠综合88综合久久| 久久国产精品免费一区| 国产叼嘿久久精品久久| 国产精品18久久久久久vr| 波多野结衣中文字幕久久| 久久人人爽爽爽人久久久| 久久精品国产亚洲av日韩| 乱亲女H秽乱长久久久|