Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 24

Thread: [?] How to make this kind of graphics

  1. #11
    Legendary Member NecroDOME's Avatar
    Join Date
    Mar 2004
    Location
    The Netherlands, Eindhoven
    Posts
    1,059

    [?] How to make this kind of graphics

    Its not glow, just a texture. Easy to make...
    NecroSOFT - End of line -

  2. #12

    [?] How to make this kind of graphics

    In only 10 minutes I got this result.

    I used a simple circle, distorted it a little in paintshop and then in a little delphi application I draw the background and over it this circle, using add blendmode. The result is visible on the screen. It would look better with a little colortweaking and rotation and such stuff, but I guess the screen in the initial post uses the same technique. Very easy!


    <a href="http://www.greatgamesexperiment.com/game/Valgard/?utm_source=gge&amp;utm_medium=badge_game"><img border="0" alt="GGE" title="GGE" src="http://static.greatgamesexperiment.com/badge/game/valgard/gge400x56.png"></a>

  3. #13

    [?] How to make this kind of graphics

    Quote Originally Posted by Huehnerschaender
    In only 10 minutes I got this result.

    I used a simple circle, distorted it a little in paintshop and then in a little delphi application I draw the background and over it this circle, using add blendmode. The result is visible on the screen. It would look better with a little colortweaking and rotation and such stuff, but I guess the screen in the initial post uses the same technique. Very easy!


    What is blendmode ?

    But how he made that lines ? They look perfect independent of the angle :?
    From brazil (:

    Pascal pownz!

  4. #14

    [?] How to make this kind of graphics

    The blendmode is the way the video card draws an image.

    If you chose no blendmode, then its set to normal, which is, a black pixel is black and a green pixel is green.

    There are several blendmodes available which also can be combined.

    The blendmode I am talking about adds the pixel color of the circle to the pixel color of the background. I also draw the circle a little alphablended, too, so it is a little more transparency. This gives the effect shown in the picture.


    The lines are as easy as the circle.

    Basically, each frame you have to do the following:

    - calculate the angle between the two circles.
    - calculate a line from midpoint of circle1 to midpoint of circle2
    - cut the line at the points where it intersects with the circle
    Now you just have to inherit along this line and draw little particles with blendmode "add". You can vary the drawing position of each particle one or two pixels randomly so the line gets a litte distorted look like on your screenshot.

    Basically thats it... nothing special, just a little math!

    Greetings,
    Dirk
    <a href="http://www.greatgamesexperiment.com/game/Valgard/?utm_source=gge&amp;utm_medium=badge_game"><img border="0" alt="GGE" title="GGE" src="http://static.greatgamesexperiment.com/badge/game/valgard/gge400x56.png"></a>

  5. #15

    [?] How to make this kind of graphics

    Quote Originally Posted by Huehnerschaender
    The blendmode is the way the video card draws an image.

    If you chose no blendmode, then its set to normal, which is, a black pixel is black and a green pixel is green.

    There are several blendmodes available which also can be combined.

    The blendmode I am talking about adds the pixel color of the circle to the pixel color of the background. I also draw the circle a little alphablended, too, so it is a little more transparency. This gives the effect shown in the picture.


    The lines are as easy as the circle.

    Basically, each frame you have to do the following:

    - calculate the angle between the two circles.
    - calculate a line from midpoint of circle1 to midpoint of circle2
    - cut the line at the points where it intersects with the circle
    Now you just have to inherit along this line and draw little particles with blendmode "add". You can vary the drawing position of each particle one or two pixels randomly so the line gets a litte distorted look like on your screenshot.

    Basically thats it... nothing special, just a little math!

    Greetings,
    Dirk
    now i understand, thanks for all the help

    just one more question, drawmodes like "BLENDMODE" is avaliable on SDL ?
    From brazil (:

    Pascal pownz!

  6. #16

    [?] How to make this kind of graphics

    I don't use SDL, but I am more than sure that those blendmodes are available, because they are essential for all kind of effects.

    We have some SDL guys here on the forums who can surely help with this.
    <a href="http://www.greatgamesexperiment.com/game/Valgard/?utm_source=gge&amp;utm_medium=badge_game"><img border="0" alt="GGE" title="GGE" src="http://static.greatgamesexperiment.com/badge/game/valgard/gge400x56.png"></a>

  7. #17

    [?] How to make this kind of graphics

    JEDI-SDL provides several functions for software blitting, addition/subtraction blitting and alpha. it is all in software and as such eats processor cycles.

    For new stuff, you really should consider using 3D Hardware functions using OpenGL or DirectX as software 2D isn't quick enough.
    Hardware copes with thousands of particles with utter ease compared to software. Also, decent rotation and scaling is available for free.. without slowing down the renderer.

    If you don't think you can spare the time to learn about using the 3D stuff, then you can use the JEDI-SDL stuff. But be aware, it is a crutch. I still haven't made the leap to 3D for 2D and I really should have... and the longer I put it off, the less likely it is that I'll do it.

    it sounds to me that you want to make some impressive visuals, I'd take the plunge and go hardware if I were you, better that than have to re-do all of your hard work when you realize you need better performance and can't get it.

  8. #18

    [?] How to make this kind of graphics

    Quote Originally Posted by jasonf
    JEDI-SDL provides several functions for software blitting, addition/subtraction blitting and alpha. it is all in software and as such eats processor cycles.

    For new stuff, you really should consider using 3D Hardware functions using OpenGL or DirectX as software 2D isn't quick enough.
    Hardware copes with thousands of particles with utter ease compared to software. Also, decent rotation and scaling is available for free.. without slowing down the renderer.

    If you don't think you can spare the time to learn about using the 3D stuff, then you can use the JEDI-SDL stuff. But be aware, it is a crutch. I still haven't made the leap to 3D for 2D and I really should have... and the longer I put it off, the less likely it is that I'll do it.

    it sounds to me that you want to make some impressive visuals, I'd take the plunge and go hardware if I were you, better that than have to re-do all of your hard work when you realize you need better performance and can't get it.
    Your post really helped, but i looked on SDL doc and do not found nothing about blending mode, i think i don't have to go hardware with this project but i hope you can tell me from start from using GPU power on 2d games
    From brazil (:

    Pascal pownz!

  9. #19

    [?] How to make this kind of graphics

    If you use a DirectX framework like Apshyre or DanJetX you get all 2D functions you need using the power of 3D GPUs. I know both engines and they are both great.

    Asphyre in version 3.1 is a very good point to start. You can get it at www.afterwarp.net. There are also many examples around on the site.

    DanJetX also has all you need to make a game in 2D. You can get it at
    http://dan.mirgames.ru/main.php?page=djx
    <a href="http://www.greatgamesexperiment.com/game/Valgard/?utm_source=gge&amp;utm_medium=badge_game"><img border="0" alt="GGE" title="GGE" src="http://static.greatgamesexperiment.com/badge/game/valgard/gge400x56.png"></a>

  10. #20

    [?] How to make this kind of graphics

    Quote Originally Posted by Huehnerschaender
    If you use a DirectX framework like Apshyre or DanJetX you get all 2D functions you need using the power of 3D GPUs. I know both engines and they are both great.

    Asphyre in version 3.1 is a very good point to start. You can get it at www.afterwarp.net. There are also many examples around on the site.

    DanJetX also has all you need to make a game in 2D. You can get it at
    http://dan.mirgames.ru/main.php?page=djx
    I don't like VCL i hate it, both are component based :? ?
    From brazil (:

    Pascal pownz!

Page 2 of 3 FirstFirst 123 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •