Skip to content
View yusufmalik2008's full-sized avatar

Block or report yusufmalik2008

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
yusufmalik2008/README.md

PROJECTS | JOSEPH | FREE TO USE!

--------------------------------------------------- INTRO ---------------------------------------------------------

Name: Joseph Projects below. You can share my projects with anyone ^^. My projects are mostly free to use, only several projects that i will define are like games, or AI ready projects that are not open-source, but the code is there for anyone to read, so a half open-source. - but it will be only several projects that are ready, that are more invested in using the application not modifying.

Projects:

1. OpenGL 2.1 Win32 - Cheat sheet: free use! (open-source, free use)

Version: 1.0.0-1.0.3 (next versions upcoming, check the list) will start from version v1.0.0; all versions are open-source, free use. very easy to understand and implement!

2. BSP spliter

v1.0.0 v1.0.1 - fixed missing parts. very easy too to understand and implement!

Screenshots of the OpenGL2.1 program V.1.0.4: this is still V.1.0.4, later versions upcoming. image image image image

Note: don't worry, because there shouldn't be missing files. even if there is, its only 3D models loaded into the renderer which is blocked by the Github because too large size;

the following code can be moified.

 Model cubeModel, barrelModel;
 cubeModel.position = (Vec3D){0.0f, 0.0f, 0.0f};

 cubeModel.vertices = cubeVertices; 
 cubeModel.colors = cubeColors;
 cubeModel.faces = cubeFaces;
 cubeModel.numVertices = 8;
 cubeModel.numColors = 8;
 cubeModel.numFaces = 12;
 cubeModel.name = 'C';
 
barrelModel.position = (Vec3D){5.0f, 0.0f, 0.0f};
barrelModel.numVertices = 32;
barrelModel.numColors = 16;
barrelModel.numFaces = 32;
barrelModel.name = 'B';

barrelModel.vertices = (Vec3D[]) { // Top circle {0.5, 1, 0}, {0.46, 1, 0.19}, {0.35, 1, 0.35}, {0.19, 1, 0.46}, {0, 1, 0.5}, {-0.19, 1, 0.46}, {-0.35, 1, 0.35}, {-0.46, 1, 0.19}, {-0.5, 1, 0}, {-0.46, 1, -0.19}, {-0.35, 1, -0.35}, {-0.19, 1, -0.46}, {0, 1, -0.5}, {0.19, 1, -0.46}, {0.35, 1, -0.35}, {0.46, 1, -0.19},//after this Bottom circle now {0.5, -1, 0}, {0.46, -1, 0.19}, {0.35, -1, 0.35}, {0.19, -1, 0.46}, {0, -1, 0.5}, {-0.19, -1, 0.46}, {-0.35, -1, 0.35}, {-0.46, -1, 0.19}, {-0.5, -1, 0}, {-0.46, -1, -0.19}, {-0.35, -1, -0.35}, {-0.19, -1, -0.46}, {0, -1, -0.5}, {0.19, -1, -0.46}, {0.35, -1, -0.35}, {0.46, -1, -0.19}, };

barrelModel.faces = (GLuint[]) { // Sides 0, 16, 1, 1, 16, 17, 1, 17, 2, 2, 17, 18, 2, 18, 3, 3, 18, 19, 3, 19, 4, 4, 19, 20, 4, 20, 5, 5, 20, 21, 5, 21, 6, 6, 21, 22, 6, 22, 7, 7, 22, 23, 7, 23, 8, 8, 23, 24, 8, 24, 9, 9, 24, 25, 9, 25, 10, 10, 25, 26, 10, 26, 11, 11, 26, 27, 11, 27, 12, 12, 27, 28, 12, 28, 13, 13, 28, 29, 13, 29, 14, 14, 29, 30, 14, 30, 15, 15, 30, 31, 15, 31, 0, 0, 31, 16, };

barrelModel.colors = (Color[]) { {0.55, 0.27, 0.07}, // Brown {0.55, 0.27, 0.07}, {0.55, 0.27, 0.07}, {0.55, 0.27, 0.07}, {0.55, 0.27, 0.07}, {0.55, 0.27, 0.07}, {0.55, 0.27, 0.07}, {0.55, 0.27, 0.07}, {0.55, 0.27, 0.07}, {0.55, 0.27, 0.07}, {0.55, 0.27, 0.07}, {0.55, 0.27, 0.07}, {0.55, 0.27, 0.07} };

 Model city_1 = loadModel("cell_4_0_0.obj");
 Model city_2 = loadModel("cell_5_0_0.obj");
 Model city_3 = loadModel("cell_3_0_0.obj");
 Model city_4 = loadModel("cell_2_0_0.obj");
 Model city_5 = loadModel("cell_1_0_0.obj");
 Model city_6 = loadModel("cell_0_0_0.obj");

 scene1.models = malloc(8 * sizeof(Model)); //?
 scene1.models[0] = cubeModel;
 scene1.models[1] = barrelModel;
 scene1.models[2] = city_1;
 scene1.models[3] = city_2;
 scene1.models[4] = city_3;
 scene1.models[5] = city_4;
 scene1.models[6] = city_5;
 scene1.models[7] = city_6;
 
 scene1.numModels = 8;

// Timing

HOW TO COMPILE Do gcc opengl8.c -o opengl8.exe -lglu32 -lgdi32 -lopengl32 -mwindows -luser32 .\opengl8.exe image


Popular repositories Loading

  1. yusufmalik2008 yusufmalik2008 Public

    Config files for my GitHub profile.

    C++

  2. github-slideshow github-slideshow Public

    A robot powered training repository 🤖

    HTML

  3. Chip-8-Emulator Chip-8-Emulator Public

    This is a chip-8 emulator made in native Java. Open-source. Feel free to use it. source code is from: https://github.com/Johnnei/Youtube-Tutorials/tree/master/emulator_chip8

    Java

  4. OpenGL-csharp-1 OpenGL-csharp-1 Public

    C#