Giter VIP home page Giter VIP logo

cub3d-r's Introduction


cub3D :


This is the second graphics project at 1337 school , our first RayCaster with miniLibX.


What is Cub3D ?


Cub3D is a team project at 1337) that asks us to create a "3D" game engine with miniLibX. This project is inspired by the world-famous 90's game Wolfenstein 3D, which was the first FPS ever. The objective of this project is to deep dive into the mathematical concepts behind the ray-casting algorithm such as calculating distances, height, sprite locations and field of view to create a projection using primarily trigonometry.



Skills needed :


  • Rigor.
  • Imperative programming.
  • Graphics.
  • Algorithms & AI.

Raycasting :

Raycasting is a rendering technique ti create a 3D perspective in a 2D map (Grid)

  • it is considered one of the most basic graphics-rendering algorithms. Ray casting makes use of the same geometric algorithm as ray tracing.

Java-Script version of our raycaster engine :


A simple game to study raycasting using JavaScript and p5.js library.

Raycasting Programming with JavaScript This project is the first part of Professor Gustavo Pezzi's (Pikuma) course, Raycasting Programming with C. Using the p5.js library to facilitate the design of geometric shapes and the game loop, we can focus on the raycasting algorithm. The objective of this project was to deep into the mathematical concepts behind the raycasting algorithm used in the game Wolfenstein (1992), such as calculations of distances, height of walls, character and field of view using trigonometry.


Run the JS game version :


Compile :

the browser will be responsible of compiling the js-version. Open the /Raycasting_JS/index.html file with a web browser.

├─ Rycasting_JS . . ├── index.html ├── styles.css ├── p5.js ├── raycast.js . .


Game Controller Keys :

Move: Arrow keys.


Raycasting using SDL 2 :


Same concepts codded in JS using C and SDL-2 this time.


Final raycaster using MLX :


cub3d-r's People

Contributors

ablaamim avatar oidrissi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.