• <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年11月>
            2930311234
            567891011
            12131415161718
            19202122232425
            262728293012
            3456789


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

            常用鏈接

            留言簿(94)

            隨筆分類(649)

            隨筆檔案(505)

            相冊(cè)

            BCB

            Crytek

            • crymod
            • Crytek's Offical Modding Portal

            Game Industry

            OGRE

            other

            Programmers

            Qt

            WOW Stuff

            搜索

            •  

            積分與排名

            • 積分 - 914456
            • 排名 - 14

            最新隨筆

            最新評(píng)論

            閱讀排行榜

            評(píng)論排行榜

            在游戲里面鼠標(biāo)與某個(gè)npc相交了后,就讓npc的邊緣高亮顯示或者怎么處理下,讓玩家很明確地知道他點(diǎn)下去就能選中此npc。《卓越之劍》有這效果。google了下沒(méi)找到相關(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.



             

            逍遙劍客對(duì)此問(wèn)題的解決辦法

            2009-7-3
            學(xué)習(xí)了這么久,也自己試試


            遇到的問(wèn)題:
            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) 評(píng)論(6)  編輯 收藏 引用 所屬分類: Game Graphics

            FeedBack:
            # re: 物件的邊緣高亮(Entity edge highlight)[未登錄](méi) 2007-11-19 00:02 flyman
            :-),這樣確實(shí)很妙,有遮擋了,其不是出來(lái)一個(gè)圈,呵呵  回復(fù)  更多評(píng)論
              
            # re: 物件的邊緣高亮(Entity edge highlight) 2007-11-19 03:31 逍遙劍客
            我解決了這個(gè)方法的缺點(diǎn)了,呵呵
            放縮模型時(shí)用法線方向上的放縮,這樣就不會(huì)錯(cuò)位了
            然后放大的模型用D3DCULL_CW來(lái)渲染,這樣也就不用關(guān)閉Depth-Write了
            明天看看咋加到游戲里去  回復(fù)  更多評(píng)論
              
            # re: 物件的邊緣高亮(Entity edge highlight) 2007-11-19 12:18 重劍
            @逍遙劍客
            good work  回復(fù)  更多評(píng)論
              
            # re: 物件的邊緣高亮(Entity edge highlight) 2007-11-19 12:18 重劍
            @flyman
            gamedev上高手多啊  回復(fù)  更多評(píng)論
              
            # re: 物件的邊緣高亮(Entity edge highlight)[未登錄](méi) 2007-11-19 17:22 flyman
            @逍遙劍客
            你想的太妙了,這種方法確實(shí)不錯(cuò)。  回復(fù)  更多評(píng)論
              
            # re: 物件的邊緣高亮(Entity edge highlight) 2012-10-08 11:15 鍵盤(pán)
            還是有問(wèn)題把,如果遇到半透的或者中間是鏤空的npc,不就穿幫了么?  回復(fù)  更多評(píng)論
              
            亚洲国产成人精品91久久久| 久久久久久亚洲精品影院| 99re久久精品国产首页2020| 亚洲精品高清国产一久久| 精品久久人人妻人人做精品 | 亚洲人成无码久久电影网站| 亚洲а∨天堂久久精品| 婷婷久久香蕉五月综合加勒比| 久久99国产精一区二区三区| 国产日韩久久久精品影院首页| 一本综合久久国产二区| 蜜臀av性久久久久蜜臀aⅴ麻豆 | 久久午夜综合久久| 人妻无码久久一区二区三区免费| 香蕉久久一区二区不卡无毒影院| 少妇熟女久久综合网色欲| 99久久免费国产精品热| 久久综合亚洲色一区二区三区| 久久婷婷久久一区二区三区| 午夜精品久久久久| 国产精品99久久久久久猫咪| 久久久久无码精品国产| 久久无码专区国产精品发布| 国产精品99久久不卡| 久久精品亚洲一区二区三区浴池 | 9久久9久久精品| 色欲久久久天天天综合网| 热综合一本伊人久久精品| 久久夜色tv网站| 亚洲国产精品久久| 国产日产久久高清欧美一区| 亚洲va中文字幕无码久久不卡| 久久午夜无码鲁丝片午夜精品| 国产毛片久久久久久国产毛片 | 久久久久噜噜噜亚洲熟女综合| 久久免费精品一区二区| 99re这里只有精品热久久| 午夜天堂精品久久久久| 久久亚洲精品国产亚洲老地址| 亚洲va久久久噜噜噜久久天堂| 亚洲伊人久久精品影院|