Tag Info

Hot answers tagged

25

The simplest way to achieve the effect is to draw a bunch of particles in Additive mode, so when they are superimposed their color values are added up, becoming brighter. Some samples: http://www.youtube.com/watch?v=_sx0KDO-ZbA http://www.youtube.com/watch?v=-OZOdQHLiiI


18

What is billboarding ? Billboard is a textured flat object, usually a polygon, which faces the camera. Its direction usually changes constantly as the object and camera move, so it always faces the camera direction, this operation is called Billboarding. Billboards usually use texturing + alpha to represent many phenomena that do not have smooth solid ...


16

Demo GameDev Meta: Henshin Main!! :D The code uses a canvas clip region and requestAnimationFrame for maximum quality and efficiency. (It's better live.) I assumed you meant HTML canvas! Even if you didn't, other rendering engines (such as Android's 2D rendering pipeline, which you might have meant) also support hardware-accelerated clip regions. The ...


11

Yes, you are right, this 2D water effect can be simulated using math sine function : wave = sin(phase + t * frequency) * amplitude phase is a constant, put whatever you want. set t to horizontal position of pixel/vertex you are processing : t = x; change amplitude over the time (that will make the waves moving up and down) : amplitude = sin(t * ...


9

That looks more like a trail than motion blur. Here's how you can achieve that: Have a small transparent image with a white, isosceles triangle on it. Draw this image stretched ( proportionally with the ball's speed ), rotated along the ball's direction. Draw the ball on top of it ( so that it hides the triangle's base ) Here's an image to help you ...


9

If you're relatively new to graphics programming, the most important thing for a lot of special effects is to understand alpha blending, and blending modes in general. For glows, explosions, and particle effects, additive blending is your best friend. Once you understand the effect of adding or multiplying colours, and the ways in which you can use alpha ...


9

Difficult to tell from the video exactly what you mean, but the simplest method of doing a sprite-based motion blur would just be to render the sprite several times, with some form of translucency. You could buffer the previous positions for use as the trail, or you could use a small time-step in the animation to render sub-frames. From the video in ...


8

Here you go :) GPU Gems - Glow Effect With that many entities with a glowing effect on the screen (especially in Geometry Wars), it's more often than not a shader effect that's similar to the shader described in that paper.


7

So how would I go about creating this kind of effect? Are we talking pixel-shaders, blendmodes/filters, bitmap effects, particle systems, or what? Not really platform specific. I am just looking for the theory, but specific examples or links would be great. And more detail the better. All of the above. Unless you poke through their source code ...


6

From the video showed it just seems to be plain gravity to me. Most people think gravity makes things flying downwards, but looking at it from a more far away perspective it makes things fly in a elliptical or spiral kind of motion around the center. The particles are always accelerated towards the center, however fly beyond it until the gravity forces it to ...


6

The document just describes a particle system. Particle systems are nothing new, the difference with the demo is just that it uses the geometry shader to generate the geometry needed for the single partices. You can do the same on the CPU, the only drawback is that it is slower. Everything else can be done on SM 3.0 in a similar way as described in the ...


6

The sound of rain, provided it is not too loud, is a good idea, as a rain visual without a rain sound is disconcerting. Occasional playing of the sound of thunder can really help, but you would probably need to support some kind of lightning effect for that to work. Is your game set in the country or the city? This drastically alters the sound of a 'calm' ...


6

How about using background music instead of sound effects? Animal Crossing is a real-time game (meaning the game keeps track of the time), and it had a different background tune for each hour of the day; the tune in the middle of the day is upbeat, "friendly" sounding, and the night one is very quiet and slow with some extra percussion sounds thrown in. I ...


5

You may not even need a full-screen bloom/glow effect (remember that this sort of effect is quite GPU-intensive, particularly if you're making a 2D game and want to avoid high system requirements) First, try just rendering your sprites with additive blending - with a blending equation such as: (SRC_COLOUR * SRC_ALPHA) + (DST_COLOUR * ONE) Then bake the ...


4

There are lots of different possibilities to create such trails. You can use simple lines, polygons, point clouds, etc. They all are usually based on one of two concepts: Track the previous positions and use these to draw the tail. Track the velocity/direction and adjust the tail based on that. The first one is better suited for things such as missiles, ...


4

I'm a big fan of many things moving simultaneously at slightly different rates. Take a look at (shameless plug) KØЯ., a vertical shooter I wrote a bit back. I'm quite proud of the explosions. They're a bunch of simple arcs (literally, I drew a circle in Gimp, then deleted an offset circle out of it, then saved it as a .png) rotating about all three axes at ...


4

The Art of Demomaking from the old flipcode archives might be a good start http://www.flipcode.com/archives/The_Art_of_Demomaking-Issue_01_Prologue.shtml The whole site has a lot of stuff, but is mostly PC centric although pre 3D hardware. http://www.flipcode.com/archives/articles.shtml


3

Hornet archives have the biggest collection of oldschool sources and docs in the internets (mostly from PC though) ftp://ftp.scene.org/mirrors/hornet/code/ Pouet, among other goodies, has a metric ton of links to youtube vids, so you don't have to use any emulator http://www.pouet.net dunno about the Amiga scene, i'd be interested as well.


2

it seems to me that what is drawn is segments, not points. So i guess the Well ejects a point of the circle, with a high speed and a speed vector tangent to the circle. And another point is thrown just after, which is linked to the first one to draw a segment. Then i think laws of physics (Newton) are applied with a strong gravity, which explains the speed ...


2

BillBoard A billboard within your game is always orientated to face the camera. As the camera moves the object is orientated to face the camera. The same theory can also be applied to cause an object to always face another object within your game. based on orientation its divided into 2 types Points, Axial


2

Particle effects which are procedurally calculated by the game engine have the advantage that they can interact with the world: Particles which collide with objects can either bounce off or disappear. A precalculated animation would just pass through any obstacles Particles emitted by a moving object can stay where they are while the object moves on. This ...


1

Working implementation using Ankos method: canvas.drawBitmap(depressingBg, 0, 0, null); canvas.save(); radius += 400*thread.getDelta(); //speed of expansion Path path = new Path(); path.addCircle(player.x, player.y, radius, Direction.CW); //draw from player position canvas.clipPath(path); ...


1

I'm afraid there is no "correct" solution to this problem without using multipass rendering, which would probably be awfully slow. What you can do is draw an oriented hemicircle in both ends. See the picture below: This should give pretty good results overall. Where this approach fails is when the laser is pointing towards the camera, especially if the ...


1

That disintegration effect is clearly some complex shader work, and the hologram shader on 3D models from your first link may be tricky too, but everything else is easily done with a cubemap and/or additive blending. For the computer monitors, that's just a standard texture in a material with additive blending. For the freeze effect, that can be done with a ...


1

Yes you can achieve this effect, however like I said to someone else, it isn't always better: http://blogs.msdn.com/b/shawnhar/archive/2009/04/01/motogp-wet-weather-effects.aspx I suggest reading that, it is an interesting solution to a problem that he was having and may suit your game better


1

The basic answer is that once you have programmable shaders, everything is possible. It's not really valid to speak of DX9 or 11 "capabilities" in these terms as they can both achieve the same end result; the difference exists in the code that you need to write to get there. So what on DX9 may be a complex multipass algorithm which is heavy on draw calls ...


1

Oh man this game should be used for drunk driving reeducation, because the one thing that I learned about drinking from this game is that the results suck. I think they were doing a couple of things, although I haven't played it since it was new so my memory may be fuzzy. One big thing you can do is change the FOV. Then you can swirl the camera location ...


1

I couldn´t see what you meant in the video, but for doing some motion blur I would store the sprites motion vectors and use then to do the blur. Rendering the sprite multiple times don´t look that good in my opnion. If the sprite is spinning you would need the motion vectors for each pixel and this can be costly.



Only top voted, non community-wiki answers of a minimum length are eligible