Giter VIP home page Giter VIP logo

simple-raycaster's Introduction

simple-raycaster

Java implementation of simple fpp engine using raycasting technique.

engine

This simple engine uses the same technique, which was used in famous Wolfenstein 3D, with some effects added by me. Raycasting is known to be very fast, so Wolf worked fine on 286/386 in 320 x 200.

My engine is written 100% in Java and uses software rendering, so the speed... Well, it is still 50 fps in 640 x 400 on my Core i7 ;) Well, with the lights effects turned off - lights are very slow, because they are actually calculated, not faked in any way.

engine features

  • textured walls
  • textured floor & ceiling
  • look up / down ability
  • multiple floors (platforms)
  • shading (fog) effect
  • simple lights effect
  • walking effect
  • static 2D sprites
  • texture bilinear filtering
  • different floor & ceiling textures
  • outside areas with different landsape projections
  • simple shaders concept with sample shaders
  • motion blur
  • rain effect in outside areas
  • storm lightnings in outside areas
  • image distort (sinus waving, randmom blur) - "drunk effect"
  • EXPERIMENTAL multithreaded concurrent frame rendering

plans (in order of priority)

  • animated sprites
  • moving sprites
  • opacity
  • mipmapping
  • thin walls
  • more than one texture on wall (like in DOOM)
  • configurable controls, display, etc.
  • clean code
  • optimizations

controls

  • arrow keys - movement
  • CTRL - shoot
  • Q - look up
  • Z - look down
  • A - center look
  • W - toggle wall rendering method
  • F - toggle floor/ceiling rendering method
  • L - lights on/off
  • E - shading on/off
  • H - toggle landsape rendering mode
  • S - walking effect on/off
  • X - sprites on/off
  • T - texture bilinear filtering on/off (warning: slow!)
  • G - weapon on/off
  • F1 - rain on/off
  • F2 - lightnings on/off
  • F3 - motion blur on/off
  • F4 - "drunk mode" on/off
  • D - debug info on screen and console on/off
  • ESC - quit
  • ENTER - toggle "fullscreen" mode

credits

During implementation, I used information from following sites:

copyright

Textures from Wolfenstein 3D and graphics from DOOM (shotgun) were used only for testing purposes. I do not own or claim any copyrights to these files.

simple-raycaster's People

Contributors

maciej-nowicki avatar cbuschka avatar

Watchers

James Cloos avatar  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.