Zdog 1.0 to be Available

New 3D engine uses vector primitives to simulate 3D objects; the goal is to provide tools that allow working with 3D objects as easily as with vectors
30 May 2019   1121

JavaScript library Zdog 1.0 has been released. This is a 3D engine that simulates three-dimensional objects based on the Canvas and SVG vector primitives, i.e. realizing three-dimensional geometric space with the actual drawing of flat forms. The code is open under the MIT license. The library has only 2100 lines of code and takes 28 KB without a minification, but it allows you to create quite spectacular objects that are similar in nature to the results of the work of illustrators.

The goal of the project is to provide tools that allow working with 3D objects as easily as with vector illustrations. The engine was created under the impression of the old computer game Dogz, in which flat two-dimensional figures based on sprite graphics were used to form a 3D environment.

Models of 3D objects in Zdog are formed using a simple declarative API and are linked by snapping and grouping simple shapes, such as rectangles, circles, triangles, segments, arcs, polygons, and curves. In Zdog, rounded shapes are used, with no pronounced polygonal irregularities. Simple shapes are visualized into more complex three-dimensional representations, such as spheres, cylinders and cubes. From the point of view of the developer, spheres are defined as points, tori as circles, and capsules as thick lines.

The constituent elements of objects are processed taking into account their relative positions and fastening with invisible anchors. All dynamic properties, such as transforms, rotations, and scaling, are vector operations defined using a Vector object. Polygon grids are supported for features.

Frontend News Digest 1 - 7.02

How to Create a WP Site with JAMstack, formatting dates in JS with Intl.DateTimeFormat, Edge DevTools now supports more languages and more
07 February 2020   432

Greetings! I hope your week went great! Here's new frontend technologies news digest.

Check the MongoDB One-to-Many Relationship tutorial with Mongoose examples, the CO2 emission of the websites new NodeJS update and other interesting things

Guides

  • How To Create A Headless WordPress Site On The JAMstack

Tutorial on simple way to create a WordPress site

  • MongoDB One-to-Many Relationship tutorial with Mongoose examples

Guide about Mongoose - the most popular way to use MongoDB from Node.js.

  • Formatting dates in JavaScript with Intl.DateTimeFormat

Check the modern way to format dates in a region friendly way using native APIs, as now supported all major browsers and both Node

Articles

  • CO2 emissions on the web

Learn the lever of CO2 emissions websites produce by consuming a lot of energy for its activity

  • Bringing the Microsoft Edge DevTools to more languages

Now Edge's DevTools support more languages

Video

  • Chrome 80 - What’s New in DevTools

Updates

  • massCode

Snippets manager for developers

  • micro-jaymock

Tiny API mocking microservice for generating fake JSON data

  • Node v13.8.0 (Current)

Another update of popular solution

  • Electron 8.0.0

Major release of popular JS based solution