Giter VIP home page Giter VIP logo

raycastingtutorial's Introduction

RayCasting Tutorial

A tutorial repository for anyone who wants to learn how to render RayCasting like old 3D games!

Introduction

RayCasting is a technique to create a 3D projection based on 2D plane. This technique was used for old games when the computers didn't have a good performance like today computers. You can find this rendering method in Wolfstein 3D thats is consider the first 3D game ever. The game DOOM uses a similar technique known as binary space partitioning (BSP), but this tutorial is focused in the RayCasting implementation only.

Programming language

The programming language used for this tutorial is Javascript with HTML5. This was choosen because the ease of implementation and because this language is weak-typing, so this is fast to programming. The other rason to this language is that you will not need a lot of resources to execute you code, just a web browser. I recommend to use some IDE, like Visual Studio Code for codding.

Pre-requisites

The implementation is not so hard, but you have to know the basics of trigonometry, programming language and graphical programming (canvas). For more details of pre-requisites, check the list below:

  • Javascript (Programming language)
  • Basic of Trigonometry
  • HTML5 Canvas

Tutorial

Click in this link to access the tutorial. This tutorial is in the Wiki page of this repository.

Contributing

If you wants to contribute for this tutorial, suggest some fix, found something wrong or contribute to this project, please, open an issue in this repository and I will analyze it with great pleasure. Thanks!

raycastingtutorial's People

Contributors

vinibiavatti1 avatar vinireif avatar

Watchers

 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.