Currently, in my game - I'm not using XNA's SpriteBatch to render anything(I am using Farseer Physic's Debug View), and I was wondering how I would render something like this:

enter image description here

only using XNA. My second question is once I have drawn these stenciled sprites , how would I give the "stenciled" lines a glow effect like so:

enter image description here

I haven't done anything like this before so It is a very confusing experience for me. Any pointers?

  • 2
    \$\begingroup\$ The general technique for glow is here \$\endgroup\$ – bobobobo Dec 8 '12 at 17:42

If the line drawing in Farseer's samples is too thin, you could use something like this library to draw thick lines.

For the glow effect, check out the XNA Bloom Sample.

The basic process is to render your scene to a render target. Then render the render-target to the screen twice: once normally and once with a blur effect using additive blending.

| improve this answer | |
  • \$\begingroup\$ To anyone wondering which library to use to achieve the stenciled sprites I used this library jcpmcdonald.com/index.php/2d-xna-primitives Very easy to use and well documented. \$\endgroup\$ – Grey Oct 13 '12 at 14:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.