我在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
下一步在目前的項目里實現(xiàn)下。