Coder Social home page Coder Social logo

classpaddev / cp-3d-cargowroom Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 4.81 MB

3D racing game experiment using fixed point math. For casio ClassPad ii fx-cp400

Home Page: https://classpaddev.github.io/#programs

License: MIT License

Dockerfile 0.04% Makefile 0.37% Python 1.39% C++ 13.34% Assembly 1.52% C 83.35%
casio-calculator classpad classpad-ii cp-400 sh4

cp-3d-cargowroom's Introduction

3D Renderer using fixed point math. For casio ClassPad ii fx-cp400

demo.mp4

Note

The code was originally done by Henri and given away to the community legacy.png New maintainer are welcome !

Install

Get it with HollyHock2

Go to the releases and get the latest build

Features

  • .obj models (converted to binary format)
  • Textures
  • Lighting
  • 6 different render modes

Controls

8 4 2 6 9 3 = Camera rotation
D-PAD       = Movement
+ -         = FOV +/-
0           = Render Mode Cycle
Clear       = Exit

Modding

Custom car

You'll need to create simple 3D models in the Wavefront OBJ format with PNG textures and then converted to binary by editing and running the script

python python/ObjTexConverter.py

Warning

Running this may overwrite the pkObj and texture files

You can take a look at "3D_models" folder to get a better understanding at the example cars

Custom map

To create your own maps, go to python/MapCreator.py and edit the myMap = value

  • x are walls / triangles you can't get pass
  • s are the small ground elements you can pick up
  • . are just empty spaces you can run on
  • 0 is your starting point

then run

python python/MapCreator.py

Warning

Running this will overwrite both the big_map.map and little_map.map files on the "python" folder. You only need to copy the big_map.map on your calculator (big = big endian)

Compile it yourself

Open in GitHub Codespaces

The codespace got everything included, with the complete SH4 gcc toolchain, Clang linter and even python for map converting leaving you only the best part : Waiting for the compiler to be done

For your calculator

Run makefile:

make

Copy everything to the root of calculator:

App_3D_CarGoWroom.bin
big_endian_my_car.pkObj    (from folder ./3D_Converted_Models)
big_endian_my_car.texture  (from folder ./3D_Converted_Models)
big_endian_test2.pkObj    (from folder ./3D_Converted_Models)
big_map.map                (from folder ./python)

On your PC

You'll need SDL2 graphics library

make PC

Controls are :

W S A D R F = Camera rotation
Arrow Keys  = Movement
1 2         = FOV +/-
E           = Render Mode Cycle
Esc         = Exit

Credits

cp-3d-cargowroom's People

Contributors

adrian8115 avatar therainbowphoenix avatar

Stargazers

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