Update: Xna for VS2012 and VS2013



Codeplex is yet again the home of another unofficial project that promises to further develop XNA, you can access the repository here: MSXNA.

I don’t know if this is feasible from a legal point of view but, at least they have already uploaded XNA support for Visual Studio 2012 and Visual Studio 2013, which you can download here, at your own risk.

As I haven’t tried it yet, feel free to comment here with your feedback!


How to: Bullet Physics in Visual Studio 2012


I’m going to use Bullet Physics in a university course this semester, as usual, the online documentation to create projects from scratch always lacks something / are outdated / all sorts of useless time consuming crap.

Creating a project from scratch with Bullet is actually pretty simple, this are the steps:

In this example I’m supposing you downloaded the file “bullet-2.81-rev2613.zip” and extracted it to “c:\bullet-2.81-rev2613”

  • Bullet comes already with all the compiled to your environment, but you can compile them for yourself using CMake ( Bullet wiki has a fairly good tutorial on this ) or Premake4. We are going to use the ones that already come with Bullet for simplicity.
  • Create a new C++ Win32 Console Project (I recommend that you use the Precompiled Headers, if you don’t know what they are, google it 😉 )
  • Now Add all the Bullet projects you need. For this example, in VS go to File>Add> Existing Project and, separately, add:
  1. c:\bullet-2.81-rev2613\build\vs2010\BulletCollision.vcxproj
  2. c:\bullet-2.81-rev2613\build\vs2010\BulletDynamics.vcxproj
  3. c:\bullet-2.81-rev2613\build\vs2010\LinearMath.vcxproj
  • In Solution Explorer, go to your project Properties (select it and ALT+ENTER)
  • Go to Common Properties> Framework and References and click on “Add New References…”. Choose all the projects you’ve previosly added
  • Click on Configuration Properties
  • At the top, change Configuration to All Configurations
  • Go to Configuration Properties> C/C++> General
  • In Additional Include Directories, add c:\Bullet-2.81-rev2613\src\

That’s it.

To test it, use this code in your project .cpp:

#include "stdafx.h"
#include "btBulletDynamicsCommon.h"
int _tmain(int argc, _TCHAR* argv[]){
btBoxShape * box = new btBoxShape(btVector3(1,1,1));
delete box;
return 0;

Did it run or did you got this error?

If so, the projects you’ve added have weird references. Do this:

  • In each added project, go to project Properties Page (ALT+ENTER)
  • In Common Properties> Framework and References, remove references to ZERO_CHECK

Run it again. Worked?