• <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
            <2007年12月>
            2526272829301
            2345678
            9101112131415
            16171819202122
            23242526272829
            303112345


            子曾經(jīng)曰過:編程無他,唯手熟爾!

            常用鏈接

            留言簿(94)

            隨筆分類(649)

            隨筆檔案(505)

            相冊

            BCB

            Crytek

            • crymod
            • Crytek's Offical Modding Portal

            Game Industry

            OGRE

            other

            Programmers

            Qt

            WOW Stuff

            搜索

            •  

            積分與排名

            • 積分 - 911346
            • 排名 - 14

            最新隨筆

            最新評論

            閱讀排行榜

            評論排行榜

            在游戲里面鼠標(biāo)與某個npc相交了后,就讓npc的邊緣高亮顯示或者怎么處理下,讓玩家很明確地知道他點(diǎn)下去就能選中此npc?!蹲吭街畡Α酚羞@效果。google了下沒找到相關(guān)資料。

            我在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
            學(xué)習(xí)了這么久,也自己試試


            遇到的問題:
            Pass 0  Render State設(shè)為D3DCULL_CW,
            Pass 1 Render Staete要設(shè)為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.

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

            FeedBack:
            # re: 物件的邊緣高亮(Entity edge highlight)[未登錄] 2007-11-19 00:02 flyman
            :-),這樣確實很妙,有遮擋了,其不是出來一個圈,呵呵  回復(fù)  更多評論
              
            # re: 物件的邊緣高亮(Entity edge highlight) 2007-11-19 03:31 逍遙劍客
            我解決了這個方法的缺點(diǎn)了,呵呵
            放縮模型時用法線方向上的放縮,這樣就不會錯位了
            然后放大的模型用D3DCULL_CW來渲染,這樣也就不用關(guān)閉Depth-Write了
            明天看看咋加到游戲里去  回復(fù)  更多評論
              
            # re: 物件的邊緣高亮(Entity edge highlight) 2007-11-19 12:18 重劍
            @逍遙劍客
            good work  回復(fù)  更多評論
              
            # re: 物件的邊緣高亮(Entity edge highlight) 2007-11-19 12:18 重劍
            @flyman
            gamedev上高手多啊  回復(fù)  更多評論
              
            # re: 物件的邊緣高亮(Entity edge highlight)[未登錄] 2007-11-19 17:22 flyman
            @逍遙劍客
            你想的太妙了,這種方法確實不錯。  回復(fù)  更多評論
              
            # re: 物件的邊緣高亮(Entity edge highlight) 2012-10-08 11:15 鍵盤
            還是有問題把,如果遇到半透的或者中間是鏤空的npc,不就穿幫了么?  回復(fù)  更多評論
              
            久久福利青草精品资源站免费 | 久久精品人人槡人妻人人玩AV| 青青草原综合久久大伊人| 97精品伊人久久久大香线蕉 | 亚洲国产天堂久久综合网站| 久久人人爽人人精品视频| 亚洲午夜久久久久妓女影院| 国产高清国内精品福利99久久| 伊色综合久久之综合久久| 国产精品美女久久久久网| 欧美亚洲另类久久综合婷婷| 国产精品一区二区久久国产| 亚洲午夜精品久久久久久app| 狠狠色丁香久久综合婷婷| 久久无码AV一区二区三区| 91精品国产色综久久| 久久久久99精品成人片欧美| 欧美亚洲日本久久精品| 国内精品久久久久久久久电影网| 久久久久久久亚洲Av无码| 久久亚洲AV成人无码| 久久人人爽人人爽人人片AV麻豆| 久久er国产精品免费观看2| 久久人人爽人人爽人人av东京热| 国产成人精品久久综合| 国产精品美女久久久| 国产亚洲精品自在久久| 亚洲精品高清国产一线久久| 亚洲乱码日产精品a级毛片久久| 国产ww久久久久久久久久| 99久久精品免费看国产免费| 国产精品久久久久久久久免费| 久久精品国产精品亚洲毛片| 精产国品久久一二三产区区别| 欧美亚洲国产精品久久久久| 欧洲国产伦久久久久久久| 久久人人爽人人爽AV片| 香蕉久久夜色精品国产2020| 日韩va亚洲va欧美va久久| 欧美粉嫩小泬久久久久久久| 婷婷久久综合|