Playing with the ThreeJS and Cannon.JS

Written by  on September 3, 2018

The Wheel of Fate

Just wanted to play with ThreeJS and CannonJS. It was a bit painful at first to get the cylinder container in cannon. There was not such thing so I made it using planes. The sync from cannon to three was a bit tricky since they have some different axis. I realise that ThreeJS is quite complete.

Have a gander at the code on Github

Dream the impossible, you might get it !

Written by  on August 24, 2016

First off, turn the volume up and check this out

Make Me Pulse

Breathtaking, isn’t it ! This is an example of what’s possible in our browsers nowadays. We ‘ve reached a point in time when the web is catching up on native apps’ abilities. It actually took 26 years to finally get there ! How did it happen?

Read more…

OOP in JavaScript ES5 & ES6

Written by  on September 26, 2015

I’ll have one advice, to learn JS : just forget what you know about programming.

That especially includes the this keyword, OOP, Classes, Objects, Methods …. If you can clear such notions from your mind, you will be ready to understand what JS is :

var person = {"name" : "Bobby"}
var greet = function (end) {
 console.log("Hello " + + end);
}, "!");
//Prints : Hello Bobby!

person uses the built-in type Object : that is a associative array, an association of unique keys with they respective values. In the example, person has a property (key) called ‘name’ that references the value “Bobby”.

greet uses the built-in type Function : a bit of code that can be invoked. You can notice than the function has a property call that let us apply a value to the this keyword and other expected arguments. We’re setting the value of this inside greet and we’re calling it. Without using the value of would have been undefined.

That’s what’s important to understand first : in JS a Function is a callable Object we can bind data to.

If one can grasp this concept he will save some time and headache learning JS by trying to apply notions like OOP. It has never been designed in such ways.

OOP is still possible IN ES5. Nevertheless hackey since we need to emulate/redesign it and it might be limited compared to what is possible in other OOP languages.

JS ECMAScript 5 ‘s OOP

In ES5,  one way is to use Functions to define classes and we define their prototypes to emulate inheritance.

Read more…

JavaScript and WebGL getting funky!

Written by  on September 25, 2015

Everything is Fashion from NinjaDev

NinjaDev released their reel, Everything is Fashion, for the Solskogen 2015. The synchro between music and video is simply on point! I find it groovy fantastic (maybe because of the retro-disco music).

This has been made possible thanks to the Three.JS project. A WebGL framework including all basic features you would expect from a 3D engine. Numerous projects are already using it. For example a 3D modeller running in a web browser. How fantastic! The web might take over native apps one day!

Check the Three.JS projects! Enjoy JavaScript and WebGL getting funky!

Is progressive enhancement dead?

Written by  on September 22, 2015

When I discovered the magic of JavaScript and DOM manipulation at school in 2006, I instantly thought of using it to make stunning and dynamic user experiences in a web browser and getting rid of the odd white flash when browsing a website page to page.
Read more…

Aussie me voilà!

Written by  on September 26, 2014

Melbourne CBD

I am thinking of the 13 year old me, holding back a tear as I was leaving England and finishing my first trip abroad. It was at that time I promised I would give myself the opportunity to live abroad. Certainly because I figured I was at ease with speaking english but moreover because I knew I was made for living abroad, out of my confort zone, getting to know people from world wide. Even a 2 hours trip was all it takes to go from Paris to London, I always thought french and british mentalities were so different, and that there were so many things for me to learn from foreign countries. It took me 4 years after graduating to carry this project of mine but that is it! Here I am in Aussie!

Why Australia? Would you surely ask? Well, why not? I would tell you maybe because I have already met heaps of cool Australians, or maybe because I have always been attracted to that wild and modern island that Aussie is, or even because so many people I know fell in love it with after visiting. I can tell by myself now I have spent 2 weeks in this beautiful country, how friendly are the inhabitants and how both dynamic and enjoyable Life is here!

Read more…