World streaming and fixed-point math

1 day ago in Dev and Retro engine by luke

Since i’m using fixed point math (Q20.12) in physics engine i had some issues with keeping all the calculations in the range −524288 to 524798.999. This range seems like a lot, but belive me, it’t not…

The solution for the limited range in the physics engine is to introduce world streaming tech. World is divided into chunks, each chunk has it’s own physics system and keeps all the positions relative to that chunk. Bodies can collide inside of the same chunk along with the chunks that are adjacent to that chunk. While comparing/colliding bodies that are in two separate, but adjacent chunks you just shift them to the same origin and BOOM – NO MORE MULTIPLICATION OVERFLOWS!

Similar solution is used with floats due to limited precision far from the origin. You can read more about this issue in paper called Using a Floating Origin to Improve Fidelity and Performance of
Large, Distributed Virtual Worlds
by Chris Thorne.

Sector/portal editor

11 days ago in Dev, News and Retro engine by luke


Normal people

about 1 month ago in Inspire by luke

I was always fascinated by people who are considered completely normal, because I find them the weirdest of all.
Johnny Depp

Retro 3d engine

about 1 month ago in Dev, News and Retro engine by luke

I have been fascinated by the old school id tech engines (DooM, Quake 1) and always wanted to make something similar in spirit for that age. Even i didn’t know anything about 3d graphics at that time i sat down 3 years ago (yeah, shit takes time) and started crafting my doom-quake love hybrid.

I wondered how would tech between DooM and Quake 1 looked like? Something like a mixture of low screen resolution (fuck yeah chunky pixels!), limited color palette, sector based levels (much more advanced system compared to DooM), billboard sprites mixed with 3d models? I guess that’s my general guideline.

O yeah, also decided to throw in physics engine and some other goodies never seen in these two games, just to add more flavor.

not sure yet how it’s gonna workout, but i’m having fun coding this bad boy. That’s all that matters in the end, right?

Engine modules:

  • basic cross-platform framework
  • fixed point math library
  • terrain rendering
  • sector based level structure with portal rendering
  • level editor
  • physics engine (soft and rigid bodies)
  • entity component system (scriptable)
  • steering behaviors
  • vehicle physics (in progress)
  • procedural locomotion/animation system(in progress)


5 months ago in Inspire by matt

thoughts scrambled
random events
mother nature
father chaos
welcome it
say it’s good.


6 months ago in Inspire by matt

Time exists so that everything doesn’t happen all at once.
Albert Einstein

Web Snooker and Get Rigged! revived

6 months ago in Game, News and Web Snooker by luke

Just finished uploading and setting up two old projects that went offline some unknown amount of time ago. These games were specifically crafted for Mozilla GameOn.

You can now access Web Snooker and even play online with your friend. Also, don’t miss the chance and drift around in the Get Rigged! desert.

A world of inconvenience

7 months ago in Inspire by matt

Always striving towards perfection and higher standard you leave yourself vulnerable to being upset and frustrated at the tiniest of inconveniences. Is this the state of mind you want to live in?

Time Traveler’s Journal #2

7 months ago in Time Traveler's Journal by matt

Observe the moment, adapt yourself, shape the outside. The ol’ timer said to me once, the name of whom I cannot even remember anymore, if he was really ever there. Sane or not, the idea remained in me, and will most likely prevail. And so the guy lives, a part of him. Observe, adapt, shape. You’re not perfect. Not you is not perfect. You are watching and so are them.

A good trade.

Kingdom Poetry

7 months ago in Inspire by matt

I am king. King of life when on my own. King of life when in the zone.