add Tutorial.cpp files

load textured sphere8.obj by default as a test
tiny_obj_loader don't crash when mtl is not found
fix camera perspectives for some examples
This commit is contained in:
erwin coumans
2015-08-05 19:22:48 -07:00
parent a5669d2ffd
commit 6d8ad72d68
5 changed files with 22 additions and 12 deletions

View File

@@ -5,10 +5,11 @@
#include "../CommonInterfaces/CommonExampleInterface.h"
#include "LinearMath/btTransform.h"
#include "stb_image/stb_image.h"
#include "../CommonInterfaces/CommonGUIHelperInterface.h"
#include "stb_image/stb_image.h"
struct LWPose
{
btVector3 m_worldPosition;
@@ -227,7 +228,7 @@ public:
virtual void resetCamera()
{
float dist = 3.5;
float dist = 10.5;
float pitch = 136;
float yaw = 32;
float targetPos[3]={0,0,0};