Jump to content
  • Advertisement
Sign in to follow this  
GetLastError

OpenGL Creating an energy ball?

This topic is 2274 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!