Go to file
2025-02-23 21:24:15 +03:00
gl Upload to github 2021-06-30 20:31:14 +05:00
model Loading MD3 and now we need to place models properly 2025-02-23 21:24:15 +03:00
ZeptoLabTestBin Switch to use SDL 2023-12-03 21:10:02 +03:00
.gitignore Upload to github 2021-06-30 20:31:14 +05:00
AnimatedModel.h Loading MD3 and now we need to place models properly 2025-02-23 21:24:15 +03:00
background.bmp Reduce size of bundle 2023-12-03 22:29:29 +03:00
bird.bmp32 Reduce size of bundle 2023-12-03 22:29:29 +03:00
chair_01_Base_Color.png Adding models 2025-02-22 22:03:29 +03:00
chair_01.obj Adding models 2025-02-22 22:03:29 +03:00
default.fragment Working with format md3 2025-02-23 15:44:28 +03:00
default.vertex Upload to github 2021-06-30 20:31:14 +05:00
defaultColor.fragment Added color cube rotating in 3d 2025-02-22 20:58:34 +03:00
defaultColor.vertex Added color cube rotating in 3d 2025-02-22 20:58:34 +03:00
game_over.bmp32 Reduce size of bundle 2023-12-03 22:29:29 +03:00
Game.cpp Loading MD3 and now we need to place models properly 2025-02-23 21:24:15 +03:00
Game.h Loading MD3 and now we need to place models properly 2025-02-23 21:24:15 +03:00
jumpingbird.data Reduce size of bundle 2023-12-03 22:29:29 +03:00
jumpingbird.html Reduce size of bundle 2023-12-03 22:29:29 +03:00
jumpingbird.js Reduce size of bundle 2023-12-03 22:29:29 +03:00
jumpingbird.wasm Fixing bug 2023-12-03 22:39:08 +03:00
main.cpp Loading MD3 and now we need to place models properly 2025-02-23 21:24:15 +03:00
Math.cpp Added color cube rotating in 3d 2025-02-22 20:58:34 +03:00
Math.h Added color cube rotating in 3d 2025-02-22 20:58:34 +03:00
md3test.cpp Loading MD3 and now we need to place models properly 2025-02-23 21:24:15 +03:00
md3test.h Loading MD3 and now we need to place models properly 2025-02-23 21:24:15 +03:00
ObjLoader.cpp Working with obj model format 2025-02-22 21:35:08 +03:00
ObjLoader.h Working with obj model format 2025-02-22 21:35:08 +03:00
OpenGlExtensions.cpp SDL compiling for Emscripten 2023-12-03 21:36:04 +03:00
OpenGlExtensions.h SDL compiling for Emscripten 2023-12-03 21:36:04 +03:00
Physics.cpp Upload to github 2021-06-30 20:31:14 +05:00
Physics.h Upload to github 2021-06-30 20:31:14 +05:00
pipe.bmp32 Reduce size of bundle 2023-12-03 22:29:29 +03:00
Readme.md Working with format md3 2025-02-23 15:44:28 +03:00
Renderer.cpp Working with obj model format 2025-02-22 21:35:08 +03:00
Renderer.h Working with obj model format 2025-02-22 21:35:08 +03:00
ShaderManager.cpp SDL for Emscripten is working 2023-12-03 22:18:33 +03:00
ShaderManager.h Switch to use SDL 2023-12-03 21:10:02 +03:00
TextureManager.cpp Adding models 2025-02-22 22:03:29 +03:00
TextureManager.h Adding models 2025-02-22 22:03:29 +03:00
Utils.cpp Upload to github 2021-06-30 20:31:14 +05:00
Utils.h SDL compiling for Emscripten 2023-12-03 21:36:04 +03:00
ZeptoLabTest1.sln Upload to github 2021-06-30 20:31:14 +05:00
ZeptoLabTest1.vcxproj Loading MD3 and now we need to place models properly 2025-02-23 21:24:15 +03:00
ZeptoLabTest1.vcxproj.filters Loading MD3 and now we need to place models properly 2025-02-23 21:24:15 +03:00
ZeptoLabTest1.zip Upload to github 2021-06-30 20:31:14 +05:00

Script to run:

C:\Work\Projects\emsdk\emsdk.bat activate latest
C:\Work\Projects\emsdk\emsdk_env.bat
emcc main.cpp Game.cpp Math.cpp Physics.cpp Renderer.cpp ShaderManager.cpp TextureManager.cpp Utils.cpp OpenGlExtensions.cpp -O2 -std=c++14 -sTOTAL_MEMORY=33554432 -sUSE_SDL_IMAGE=2 -sSDL2_IMAGE_FORMATS="[""png""]" -sUSE_SDL=2 --preload-file background.bmp --preload-file bird.bmp32 --preload-file default.fragment --preload-file default.vertex --preload-file game_over.bmp32 --preload-file pipe.bmp32 -o jumpingbird.html


zlib-1.3.1:

mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=install ..

then run ALL_BUILD and INSTALL in Visual Studio

lpng1645:

mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=install -DZLIB_ROOT=C:\Work\Projects\zlib-1.3.1\build\install ..

then run ALL_BUILD and INSTALL in Visual Studio


https://github.com/Bly7/OBJ-Loader/blob/master/Source/OBJ_Loader.h

https://github.com/gametutorials/tutorials/blob/master/OpenGL/MD3%20Animation/Main.cpp