开发者

3D game special effects, fire, lightning, water, and ice

开发者 https://www.devze.com 2023-01-23 18:03 出处:网络
I\'m working on a 3d game using OpenGL and would like to take it in a fantasy direction.Specifically I\'m thinking of having magic with effects for fire, water, ice, and lightning.My problem is I have

I'm working on a 3d game using OpenGL and would like to take it in a fantasy direction. Specifically I'm thinking of having magic with effects for fire, water, ice, and lightning. My problem is I have no idea how to create these effects. Are there any resources fo开发者_如何转开发r me on how to learn something like this?


Xavier:

I always go directly to the GPU vendor development sites. They will have complete development environments set up and have literally hundreds of ready to go code samples.

For example, take a look at the NVIDIA dev site for GPU Gems: there are several articles on water effects.

http://developer.nvidia.com/object/gpu_gems_home.html

The core engines do an amazing job at these physical simulation effects and unless you really want to become a special effects artist, I would suggest to pick an engine that does the effects as you know that they will do it to the best-known-methods at that time and they have a commercial incentive to keep improving on it.

The fact that the GPU now has so much compute power that it can do these complex physical effects creates another barrier to entry: you need to know and want to know the details of NVIDIA's GPUs, and AMD's GPUs, and Intel's GPUs, etc. That is a full time job and if your focus is on using these effects then you might get side tracked.

However, having said that, if you are really interested in how these special effects work, I suggest you join the Blender community ( http://www.blender.org ). There are some really good people there and the community is ready to help. Another valuable resource is the Bullet physics engine ( http://bulletphysics.org/wordpress/ ). It is the third most popular physics engine for games behind Havok and PhysX which are both big commercial projects.


You should look for a Particle System. There are some ready to be embedded inside your application or you can develop your own if you feel enough strong with this kinds of things.

They are quite easy to implement thou, you can find many examples on gamedev.net or gamasutra.com


I strongly recommend reading NeHe tutorials for OpenGL (http://nehe.gamedev.net/). It's a must for an OpenGL beginner.


Check out point sprites.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号