Go to file
2025-03-01 11:44:31 +06: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 linuc 2025-03-01 11:44:31 +06:00
aaaa linuc 2025-03-01 11:44:31 +06: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
BoneAnimatedModel.cpp Finally animation works 2025-03-01 01:39:19 +03:00
BoneAnimatedModel.h Finally animation works 2025-03-01 01:39:19 +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 linuc 2025-03-01 11:44:31 +06:00
default.vertex linuc 2025-03-01 11:44:31 +06:00
defaultColor.fragment linuc 2025-03-01 11:44:31 +06: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 Finally animation works 2025-03-01 01:39:19 +03:00
Game.h Finally animation works 2025-03-01 01:39:19 +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 linuc 2025-03-01 11:44:31 +06:00
Math.cpp fixing conflict 2025-03-01 11:16:52 +06:00
Math.h Finally animation works 2025-03-01 01:39:19 +03:00
md3test.cpp Finally animation works 2025-03-01 01:39:19 +03:00
md3test.h Loading MD3 and now we need to place models properly 2025-02-23 21:24:15 +03:00
mesh_armature_and_animation_data02.txt added meshes with skeleton 2025-03-01 07:52:56 +03:00
mesh_armature_and_animation_data.txt added meshes with skeleton 2025-03-01 07:52:56 +03:00
ObjLoader.cpp linuc 2025-03-01 11:44:31 +06: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 linux part 2025-03-01 11:12:22 +06:00
Physics.cpp linux part 2025-03-01 11:12:22 +06: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 Linux version 2025-03-01 11:22:32 +06:00
Renderer.cpp fixing conflict 2025-03-01 11:16:52 +06:00
Renderer.h Working with obj model format 2025-02-22 21:35:08 +03:00
ShaderManager.cpp linuc 2025-03-01 11:44:31 +06:00
ShaderManager.h Switch to use SDL 2023-12-03 21:10:02 +03:00
TextureManager.cpp Finally animation works 2025-03-01 01:39:19 +03:00
TextureManager.h Finally animation works 2025-03-01 01:39:19 +03:00
Utils.cpp linux part 2025-03-01 11:12:22 +06:00
Utils.h linux part 2025-03-01 11:12:22 +06:00
ZeptoLabTest1.sln Upload to github 2021-06-30 20:31:14 +05:00
ZeptoLabTest1.vcxproj Finally animation works 2025-03-01 01:39:19 +03:00
ZeptoLabTest1.vcxproj.filters Finally animation works 2025-03-01 01:39:19 +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

linux:

g++ Game.cpp main.cpp Math.cpp OpenGlExtensions.cpp Physics.cpp Renderer.cpp ShaderManager.cpp TextureManager.cpp Utils.cpp BoneAnimatedModel.cpp ObjLoader.cpp  -o sdl_app -O2 -std=c++14  $(pkg-config --cflags --libs sdl2 gl)