游戏开发论坛

 找回密码
 立即注册
搜索
查看: 6032|回复: 17

求助: 刀光剑影

[复制链接]

14

主题

51

帖子

56

积分

注册会员

Rank: 2

积分
56
发表于 2005-7-1 09:08:00 | 显示全部楼层 |阅读模式
请问流星蝴蝶剑中的刀光剑影是怎么做的啊?
[em7]
sf_2005719813.gif

121

主题

2029

帖子

2034

积分

金牌会员

Rank: 6Rank: 6

积分
2034
QQ
发表于 2005-7-1 11:05:00 | 显示全部楼层

Re:求助: 刀光剑影

我也玩流星。。。。我估计刀光剑影是运行时生成MESH(反正顶点也不多),然后对新MESH AlphaBlend以下就出效果了。

14

主题

51

帖子

56

积分

注册会员

Rank: 2

积分
56
 楼主| 发表于 2005-7-2 10:32:00 | 显示全部楼层

Re: 求助: 刀光剑影

要生成光滑流畅的刀光剑影mesh好像需要很多顶点吧?
还有没有其它的算法?

9

主题

266

帖子

266

积分

中级会员

Rank: 3Rank: 3

积分
266
发表于 2005-7-2 17:03:00 | 显示全部楼层

Re:求助: 刀光剑影

制作模型的时候就已经在编辑器里编辑好了的。
不是即时计算。

29

主题

421

帖子

436

积分

中级会员

Rank: 3Rank: 3

积分
436
发表于 2005-7-2 18:05:00 | 显示全部楼层

Re:求助: 刀光剑影

实际上就是某种特殊处理的粒子,在物体运动轨迹上,一堆方块不断的高速移动。这些方块都是粒子。

暴雪的官方原文如下:
In the Warcraft III, many of the missile weapons and spells use a BlizRibbon helper. This object can be found under the
Create\Helper tabs. A ribbon is simply a line that dumps out a sheet of quads wherever it moves. If it never moves, it
can’t be seen, despite the fact that it is creating quads.

Above and Below ? These fields define the width of a ribbon in units based on their offset from
the origin.
Edges/Sec ? The number of quads generated.
Edge Life ? Time in seconds that the quads stay around after being generated.
Gravity ? Can be positive or negative. Will cause the ribbon to sink or rise in the z axis over
time.
Texture Rows and Cols ? Allows an animating texture similar to BlizParticle. Set the number of
rows and columns equal to the texture.
Texture Slot ? Pick the index number of rows and columns, and animate this number to get a
cycle.
Vertex Color ? An RGB multiple for the material.
Vertex Alpha ? A fixed alpha value for the material.
Material ? Use this to assign a Warcraft III material in the Material Editor to the Ribbon Object.
It pulls from the material the diffuse texture, blend mode, and many other texture properties.

14

主题

51

帖子

56

积分

注册会员

Rank: 2

积分
56
 楼主| 发表于 2005-7-2 19:24:00 | 显示全部楼层

Re:求助: 刀光剑影

首先多谢飞鸟们的回答 :-)
现在有三个方法
1 实时生成 mesh.
2 预先计算.
3 特殊的粒子效果.
其中第3个我不太明白. 楼上的能不能翻译一下.

14

主题

51

帖子

56

积分

注册会员

Rank: 2

积分
56
 楼主| 发表于 2005-7-3 07:46:00 | 显示全部楼层

Re:求助: 刀光剑影

楼上的有源码吗

121

主题

2029

帖子

2034

积分

金牌会员

Rank: 6Rank: 6

积分
2034
QQ
发表于 2005-7-3 12:31:00 | 显示全部楼层

Re:求助: 刀光剑影

对于轨迹不定的拖影(如果有物理引擎参与的动作就是这样),预先生成基本上是很难做到的。对于实时Mesh,没有太大的难度,而且,实时MESH可以看作一种变相的粒子系统。

9

主题

266

帖子

266

积分

中级会员

Rank: 3Rank: 3

积分
266
发表于 2005-7-3 18:46:00 | 显示全部楼层

Re:求助: 刀光剑影

。。。。。。。。。。。。。。。。。。
原来不是说流星蝴蝶见里的啊。。。。。

不同意楼上的。

24

主题

104

帖子

104

积分

注册会员

Rank: 2

积分
104
发表于 2005-7-4 15:32:00 | 显示全部楼层

Re:求助: 刀光剑影

轨迹不定?如果是模型应该是已经设计好了的吧??
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2025-12-26 06:51

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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