Coder Social home page Coder Social logo

bre's Introduction

Blocks Rendering Engine (BRE)

Entities

Side

The side is the definition of one of the sides of the block. There are 6 sides:

  • Front.
  • Top.
  • Right.
  • Left.
  • Bottom.
  • Back.

Each side has next props (to be extended):

  • Background defines color of the side.
  • Border defines color (default is black), thickness (default is 1), style (default is solid), and units (default is px).
  • Size is width and height of the side.
  • Transform defines position of the side in the block.

These props can be defined for the side individually or taken from the block props.

Block

The block is a single unit with 6 sides.

Each block has next props (to be extended):

  • Background defines color of the block. *
  • Border defines color (default is black), thickness (default is 1), style (default is solid), and units (default is px). *
  • Grid is the util which contains global data such as units, grid size, etc. and is able to translate relative points to absolute.
  • Point is the relative coordinates of the center of the block.
  • Sides are the definitions for each side.
  • Transform is the util which can generate strings for CSS definitions such as rotateX, translateZ, etc.

* It can be overridden by settings of the side.

Plane

The plane is the wrapper and helper entity for the set of blocks. It renders blocks and makes it easier to perform various mass operations such as: scene rotation and movement.

It is possible to define several planes.

Each plane has next props (to be extended):

  • Background defines color of the plane.
  • Block script defines set of blocks to be rendered.
  • Border defines color (default is black), thickness (default is 1), style (default is solid), and units (default is px) of the plane.
  • Grid is the util which contains global data such as units, grid size, etc. and is able to translate relative points to absolute.
  • Rotate defines plane rotation.
  • Translate defines plane's position.
  • Wrapper width is the width of the container.
  • Wrapper height is the height of the container.

Coordinates

The BRE uses a relative 3D coordinates system with starting point at the center of the space.

bre's People

Contributors

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