Sign in to follow this  
Followers 0
Anddos

best way to make fire

5 posts in this topic

what would be the best way to make fire in the 3d world, the game is like multiplayer and players can build a fire which should get bigger or small depending on well they keep it alive , should it be with .fx or something else, can a texture be placed in to the 3d world and not just in screenspace?

0

Share this post


Link to post
Share on other sites

Usually it's done with a quad and the actual fire is just a texture that gets distorted with some kind noise.You'll need to pass tome delta time value to your shader constants, so you will use it to translate the uv coordinates(each frame delta time is slightly more, so for instance you keep affecting the v texture coordinate and the fire goes upwards) and to have a certain shape and look good, better make the fire texture and a noise texture that matches the fire texture in some image editing program, also turn on alpha blending and put a light source in the middle of the fire, but don't allow the light source to affect the fire, that would make it weird, I don't think you'll need a glow as since you're alpha blending it you can alredy make the texture look glowey in photoshop or something

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0