2D need help in making a simple sweep effect in opengl

Recommended Posts

What language, as in what opengl are you using? If your using a game engine also give us the name, it matters when the engine has shader tools.

Are you sure you can't do the radar outside of a shader? I can think of a million easier ways of making the radar.

Edited by Scouting Ninja

Share this post


Link to post
Share on other sites

@Scouting Ninja i am using opengl 3.0 and c++ i am good at c++ but new to opengl if you can suggest a way to make this effect without using shaders i shall be very thankful to you, but as i searched the internet this kind of effects are done by shader the effect i am after is a transparent or an invisible line moving through the scene from left to right 

Share this post


Link to post
Share on other sites

@Scouting Ninja i am using opengl 3.0 and c++ i am good at c++ but new to opengl if you can suggest a way to make this effect without using shaders i shall be very thankful to you, but as i searched the internet this kind of effects are done by shader the effect i am after is a transparent or an invisible line moving through the scene from left to right  

Share this post


Link to post
Share on other sites
22 hours ago, markshaw001 said:

but new to opengl if you can suggest a way to make this effect without using shaders i shall be very thankful to you

Sprite sheets are often used for these effects if they are just extra's on a wall.

The other way of making them as meshes. The advantage of this way is high detail and the mesh used can be given there own material and shaders for effects.

 

For a really good looking radar I would use both a sprite sheet and textures. Do you know how to make a shader that renders a texture to a mesh?

Also do you know how to load a mesh into a opengl scene?

What you can do is render 3 meshes with textures. One of them you can animate like a sprite sheet and the others as still textures. Then you could rotate the one for the beam.

RadarEx.jpg.7b696d088190484bd8ad7429a4077176.jpg

This image is a quick example of what I mean.

Share this post


Link to post
Share on other sites
1 hour ago, Scouting Ninja said:

For a really good looking radar I would use both a sprite sheet and textures. Do you know how to make a shader that renders a texture to a mesh?

 

i don't know how to do that but i will try to learn that

@Scouting Ninja thanks for ur advice u have been alot of help i will try to do wt you have told me and i think it is quite close to wt i want to do

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


  • Similar Content

    • By Aggrojag
      Hello!
      I'm working on a game that is quite personal to me. It touches on my own depression, obsessions, phobias, etc. It's a narrative driven dark comedy with some small aspects of platforming and puzzle solving. The project is rather small as well. It touches on topics such as suicide, mental illness, family, corruption, free-will, and redemption.
      First, I'm looking for a 2D animator that can compliment the style of the attached image. The player character's animations will be a bit more extensive than a typical platformer. There will be many death animations, and some other strange dealings with the character that will need animation. Other items will include some objects in the world that are in need of animation. All static pieces of art will be handled by the artist that drew the attached image.
      Second, I'm looking for a male voice actor. There will be at minimum two characters that will need to be brought to life through vocals. They are a very core part of the game, though they will never be shown on screen. As a reminder, this is a rather dark comedy, so be prepared for some insanity in your portrayal of these characters. The first voice is that of a game show host's voice, while the other will be a devilish voice (without SFX, I think it cheapens it, does not necessarily need to be a low voice, this is more about the portrayal than how the voice sounds).
      Last, I would love to have an editor on board. More than just avoiding disaster in the writing, I'm looking for someone that can elevate it. There is not a ton of writing that will be in the final project, but it's important enough of an aspect to be trying to bring someone in to help with it.
      To those interested:
      I have a crappy prototype that exists, along with a couple game design docs. More than anything, I'd like to present the project through a voice chat via discord to any interested. Discord - Bobdul Thundercuck#4590
      I do plan to post this on itch.io and wherever else I can put it that makes sense. I fully expect to make nothing off this project, as should you. However, in the case that money is made, a rev share model will be in place.

       
      Edit: Editor position has been filled, title has been changed to reflect this, and crossed out the section detailing this.
    • By Manumeq
      Hello everyone.
      Me and a bunch of classmates are making a videogame from scratch in c++. We are currently using the Irrlicht Engine in our code, but will begin to develop our own engine in a couple of weeks. One of our concerns right now is the User Interface.
      After doing some research, I found several libraries for creating a GUI in c++, problem is in the past we have spent more time learning and figuring out how to make things work with libraries than we would have if we actually made the entire code from scratch ourselves.
      So, I wanted to ask more experienced game programmers out there, what would be your preferred choice? using a library or writting the code from scratch when making an UI, and in case of the libraries, which ones would you use?.
      Heres what we will most likely do:
      Healthbars Displaying numbers in HUD Displaying icons (images) in HUD Drawing game menu elements (text and rectangles) Also, we are currently working in linux, more specifically Manjaro KDE and without IDE's (using our own make file and the console).
      PD: Sorry in advance is this is in the wrong topic, It's my first time asking a question in GameDev.net
    • By Cidade Arts
      GunnSwitch is an open world 2D platformer/shooter with hand drawn and animated HD graphics. Featuring Psytrance music for the action and some ambient music for the exploration segments. The game play features exploration in interesting and varied places that will take hours to find everything hidden within. Upgrade your character and tank with an arsenal of abilities and attacks to prepare for the challenging platforming, puzzle solving, discovering of secrets, also fighting hordes of enemies and the long list of bosses to defeat.




    • By Cogniad
      Hello there!
      I've been working on a little 2D mobile RTS game, and I've found that my tiny team requires more developers to make it move along faster. First things first: while we do have a business model, don't expect to be paid anything. It's an indie game, we typically don't make money, as many of you probably already know. Do it for the fun of it, because it is fun.
      That being said, I think it's a fun and cute project that I would love to go in depth with one-on-one. We have most of the frame work done, and a general idea for the style of artwork that is desired, but I'm always open to more ideas.
      If I had to describe the game in two words, it would be: Despotic Potatoes.
      Email me at cogniad@gmail.com if interested.
      Thanks for reading!
    • By CosmicMeatloaf
      Hey guys, I recently made this post, I recommend skimming for a quick gist and look at the results at the bottom of the post : 
      (I felt that post misrepresents what I've turned the language into as of right now, so here's this post.)
       
      Where I described my proposition for a language to replace CSS (for good reasons, in my view).
      Well I've gone ahead and create a Jar for it, and a GitHub wiki with a syntax specification (I recommend reading that instead of the syntax in the post I linked), and a quick-start guide to start making your own UX Library compatible with the language, if you want something a little less... shipoopi to work with. More organized, and robust.
      Here is the GitHub for anyone who is interested:
      https://github.com/BetterBe/Kiss-lang/wiki
       
  • Popular Now