在游戲里面鼠標與某個npc相交了后,就讓npc的邊緣高亮顯示或者怎么處理下,讓玩家很明確地知道他點下去就能選中此npc。《卓越之劍》有這效果。google了下沒找到相關資料。
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.
posted on 2007-11-18 20:30
七星重劍 閱讀(2034)
評論(6) 編輯 收藏 引用 所屬分類:
Game Graphics