• <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
            <2006年10月>
            24252627282930
            1234567
            891011121314
            15161718192021
            22232425262728
            2930311234


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

            常用鏈接

            留言簿(94)

            隨筆分類(649)

            隨筆檔案(505)

            相冊

            BCB

            Crytek

            • crymod
            • Crytek's Offical Modding Portal

            Game Industry

            OGRE

            other

            Programmers

            Qt

            WOW Stuff

            搜索

            •  

            積分與排名

            • 積分 - 914448
            • 排名 - 14

            最新隨筆

            最新評論

            閱讀排行榜

            評論排行榜

            在游戲里面鼠標(biāo)與某個(gè)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àng)目里實(shí)現(xiàn)下。
            posted on 2007-11-18 20:30 七星重劍 閱讀(2036) 評論(6)  編輯 收藏 引用 所屬分類: Game Graphics

            FeedBack:
            # re: 物件的邊緣高亮(Entity edge highlight)[未登錄] 2007-11-19 00:02 flyman
            :-),這樣確實(shí)很妙,有遮擋了,其不是出來一個(gè)圈,呵呵  回復(fù)  更多評論
              
            # re: 物件的邊緣高亮(Entity edge highlight) 2007-11-19 03:31 逍遙劍客
            我解決了這個(gè)方法的缺點(diǎn)了,呵呵
            放縮模型時(shí)用法線方向上的放縮,這樣就不會錯位了
            然后放大的模型用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
            @逍遙劍客
            你想的太妙了,這種方法確實(shí)不錯。  回復(fù)  更多評論
              
            # re: 物件的邊緣高亮(Entity edge highlight) 2012-10-08 11:15 鍵盤
            還是有問題把,如果遇到半透的或者中間是鏤空的npc,不就穿幫了么?  回復(fù)  更多評論
              
            久久国产精品久久国产精品| 久久久久久九九99精品| 无码人妻久久一区二区三区免费丨| 亚洲伊人久久综合中文成人网| 中文字幕亚洲综合久久菠萝蜜| 久久精品三级视频| 久久99国产精品尤物| 欧美精品九九99久久在观看| 久久久国产精品亚洲一区| 9久久9久久精品| 色婷婷综合久久久久中文 | 日韩精品无码久久久久久| 色综合久久久久无码专区| 国产精品99久久精品爆乳| 久久精品aⅴ无码中文字字幕不卡| 伊人久久大香线蕉精品| 国产精品无码久久综合 | 一本色道久久综合| 久久综合香蕉国产蜜臀AV| 97精品国产97久久久久久免费| 亚洲国产精品无码久久九九| 72种姿势欧美久久久久大黄蕉| 久久久人妻精品无码一区| 色综合久久精品中文字幕首页| 久久国产色AV免费观看| 亚洲国产精品嫩草影院久久| 亚洲国产精品热久久| 亚洲精品乱码久久久久久按摩| 国产亚州精品女人久久久久久 | 国产成人精品久久亚洲高清不卡 | 狠狠综合久久AV一区二区三区| 亚洲人成网站999久久久综合 | 天堂久久天堂AV色综合| 久久笫一福利免费导航 | 久久99精品国产| 1000部精品久久久久久久久| 中文字幕乱码久久午夜| 精品久久亚洲中文无码| 久久国产色av免费看| 国产A级毛片久久久精品毛片| 午夜肉伦伦影院久久精品免费看国产一区二区三区 |