diff --git a/enginecustom/applicationclass.cpp b/enginecustom/applicationclass.cpp index 4cb3a87..969d555 100644 --- a/enginecustom/applicationclass.cpp +++ b/enginecustom/applicationclass.cpp @@ -1591,7 +1591,7 @@ void ApplicationClass::GenerateTerrain() scaleMatrix = XMMatrixScaling(scaleX, scaleY, scaleZ); // Set the file name of the model. - strcpy_s(modelFilename, "assets/Model/TXT/plane.txt"); + strcpy_s(modelFilename, "assets/Model/OBJ/plane.obj"); // Liste des fichiers de texture std::vector terrainTexture = { diff --git a/enginecustom/assets/Model/OBJ/plane.obj b/enginecustom/assets/Model/OBJ/plane.obj new file mode 100644 index 0000000..9b1d961 --- /dev/null +++ b/enginecustom/assets/Model/OBJ/plane.obj @@ -0,0 +1,16 @@ +# Simple 2D plane in OBJ format + +v -0.5 0.0 -0.5 +v 0.5 0.0 -0.5 +v -0.5 0.0 0.5 +v 0.5 0.0 0.5 + +vt 0.0 0.0 +vt 1.0 0.0 +vt 0.0 1.0 +vt 1.0 1.0 + +vn 0.0 1.0 0.0 + +f 1/1/1 2/2/1 4/4/1 +f 1/1/1 4/4/1 3/3/1 diff --git a/enginecustom/enginecustom.vcxproj b/enginecustom/enginecustom.vcxproj index 125090d..58467e4 100644 --- a/enginecustom/enginecustom.vcxproj +++ b/enginecustom/enginecustom.vcxproj @@ -365,6 +365,12 @@ + + + Document + $(OutDir)\assets\Model\OBJ\ + + 17.0 Win32Proj diff --git a/enginecustom/enginecustom.vcxproj.filters b/enginecustom/enginecustom.vcxproj.filters index f2322e2..9763f68 100644 --- a/enginecustom/enginecustom.vcxproj.filters +++ b/enginecustom/enginecustom.vcxproj.filters @@ -376,21 +376,6 @@ Assets - - Assets\Texture - - - Assets\Texture - - - Assets\Texture - - - Assets\Texture - - - Assets\Texture - @@ -602,5 +587,23 @@ Assets\Texture + + Fichiers de ressources + + + Fichiers de ressources + + + Fichiers de ressources + + + Fichiers de ressources + + + Fichiers de ressources + + + Assets\Model\OBJ + \ No newline at end of file