Tag Info

New answers tagged

1

A point p is inside a circle at c with radius r when (p.x - c.x)^2 + (p.y - x.y)^2 < r^2 is true. Using this equation you can color any points inside a circle one color (such as "transparent") and anything outside the circle a different color (such as "black"). You can even fade the edges of the circle, if you are so inclined. You can write a custom ...


0

Creating an horizontal or vertical gradient is very simple. Anything else is going to be a little more complicated. If you are looking to strictly create an horizontal or vertical gradient, you can do it as follows. This will create a RenderTarget for a horizontal gradient: //create a blank 1x1 white texture Texture2D BlankTexture = new ...


6

I was about to start an answer going over splines, but realized there was probably already a pretty good explanation in the internet. And here it is. The relevant steps are 1 and 2 (3 isn't directly applicable) The gist of it is: Every so many frames, record where the player is: The key here is to make sure you're recording the ...


2

You can implement such effect using Polyboards. If you can get yourself a copy of Mathematics for 3D Game Programming and Computer Graphics, there is a section in the book dedicated to this technique. (actually, the section for polyboards is available for free here). This technique is also sometimes called a "LineRenderer" or "TrailRender".


0

when you have an object you can simply draw line to that object as seen as a red line on my pic ^^ MY line is drawn in red but you can tell the computer to not use a plain fill but use a gradient filling... now now haing such a gradient for filling (using black/white on the alpha channel) will result in beeing a fading tail after seeing your other ...



Top 50 recent answers are included