b32 #1 The error occurs, because the 3d mode is not set when the Sphere is created. Try running the program in Debug mode.