Sign in to follow this  
GetLastError

OpenGL Creating an energy ball?

Recommended Posts

Hi all,

I am new to writing GLSL shaders but I know the basic concepts...

In the current game I'm developing, I'd like to have some balls of energy moving around on the screen. My scene is 2D and I use OpenGL for rendering.

How would approach rendering the energy ball?
Making it as an animated texture? or would you use shaders for it.

Thanks!

Share this post


Link to post
Share on other sites
Kind of depends on how complex the ball should get. Just using a series of textures as in sprite animation could get you really far. Maybe you've got some examples of what it should look like?

Share this post


Link to post
Share on other sites
To get a bit more variation you can combine texture animations and blend them together with some randomized rotation, scaling and alpha too.
Blended with additive blending.

That is for a bright light energy ball type

Can be done both in shaders and fixed function depending on what you prefer. Edited by Olof Hedman

Share this post


Link to post
Share on other sites
If you post a mock-up image of what you're trying to get to with a short description of the animations, we can probably help you better. :)

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