Giter Club home page Giter Club logo

lithium's Introduction

Lithium

Lithium is a 3D rendering engine fully coded in Batch.

How does it works

It reads a model, makes the points and then connect the points using the Bresenham's algorithm to connect them in any octant. For the third dimension a weak perspective is rendered.

Since batch display model i use its kinda slow dont expect it to be fast! Its still on work and im trying to find a way to optimize it.

Also, it makes a register to change the font to a bitmap 8x8, so the pixels are squares and not rectangles.

Creating a model

To create a model make a file and name it "mymodel.lith". Then u can define the vertex writing in a new line their coords. Example :

10 0 1
X  Y Z

Joining vertex

As easy as writing #number, number being the vertex index u want to connect. Example :

10 0 1 #1
30 0 1

Model settings

U can set the X/Y Offset of a model by writing ? and then x|number and y|number Example :

? x|5 y|5

Simple 3d cube

? x|1 y|10

10 0 1 #2 #5
65 0 1 #3 #6
65 55 1 #4 #7
10 55 1 #1 #8
10 0 2 #6
65 0 2 #7
65 55 2 #8
10 55 2 #5

lithium's People

Contributors

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