游戏开发论坛

 找回密码
 立即注册
搜索
查看: 1832|回复: 3

npc边缘加亮是怎么搞的?卓越之剑可以

[复制链接]

18

主题

135

帖子

143

积分

注册会员

Rank: 2

积分
143
发表于 2007-11-18 13:44:00 | 显示全部楼层 |阅读模式
realtime rendering 7.4
有相关介绍

18

主题

135

帖子

143

积分

注册会员

Rank: 2

积分
143
 楼主| 发表于 2007-11-18 21:22:00 | 显示全部楼层

Re: npc边缘加亮是怎么搞的?卓越之剑可以

我在gamedev上的提问:
when the cursor is over an entity, I want to highlight it's edge so that a player can immediately know he can pick this 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.

5

主题

49

帖子

49

积分

注册会员

Rank: 2

积分
49
QQ
发表于 2007-11-19 17:08:00 | 显示全部楼层

Re:npc边缘加亮是怎么搞的?卓越之剑可以

可以模仿Cartoon Rendering的Inking pass。
不过2楼老外的方法感觉也相当好。

20

主题

222

帖子

276

积分

中级会员

Rank: 3Rank: 3

积分
276
发表于 2007-11-20 08:58:00 | 显示全部楼层

Re:npc边缘加亮是怎么搞的?卓越之剑可以

如2楼,奇迹世界是这么实现的,拉近镜头就能看到,壳子
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

作品发布|文章投稿|广告合作|关于本站|游戏开发论坛 ( 闽ICP备17032699号-3 )

GMT+8, 2025-6-17 23:52

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表