A fast tip to update your forked repository with the original repo:

# Add the remote, call it "upstream":

git remote add upstream

# Fetch all the branches of that remote into remote-tracking branches,
# such as upstream/master:

git fetch upstream

# Make sure that you're on your master branch:

git checkout master

# Rewrite your master branch so that any commits of yours that
# aren't already in upstream/master are replayed on top of that
# other branch:

git rebase upstream/master

May need git push -f origin master


Read more

After some weeks working on this, I finally released the first version of Behavior3JS, my javascript library for behavior trees.

I wrote 2 tutorials this month about implementing a behavior tree from scratch (here and here), which content was based on this library. Together with the core classes and nodes, I also released an online and visual editor, where you can design your behavior tree with custom nodes and export it to JSON format.


Unfortunately, I couldn’t release the visual debugger together (I will travel next week, so I preferred to release what I had right now), but for sure, this is the priority for the next versions.

Take a look in this project on Github:

I recommend you to also take a look at the user guide, so you can have an idea of how this works:

Read more

Because of the recent trips of my wife to USA, where everything is cheaper than Brazil, I’ve decided to buy a Wacom tablet in order to use it in the development of my games in the future. I’m not a pretty good artist, but I have some notions of drawing, thus a drawing tablet would be a good investment.

I’ve bought the Wacom Intuous Pen & Touch, the small version, for $75,00 at amazon. I chose this model because it was the best cost-benefit among all wacom tablets. There is an Intuos Pen (without touch) for $20 less but I felt that touch would improve the usability of the tablet.

So, this weekend I tested the tablet and the result was pretty strange :/. The tablet is very small (not really an issue, but a larger one would be better) and drawing in the tablet is very different to the old pen and paper. Firstly, you have to know how to use some edition software, such as GIMP or Photoshop, and how to choose the correct brushes for the drawings, which is pretty confusing at first. The sensibility and precision are also obstacles, e.g, it is very hard to draw a continuous line within the tablet without shaking it. Another thing, the touch is not that useful, the commands are slow and lagged, everything you do with the touch you can do faster with the pen, keyboard and mouse. However, all these problems seems to reduce to zero with practice. So, I have a long and hard path to trail in order to mastering the drawing tablet.

I’ll end this post with some interesting videos and tutorials I saw this weekend:

Read more

Hi there! It has been some days since the last post – and since the last update in any project – but I can explain!

I have moved from my old “house” to a new and improved home. I put that on quotes because the place I were living only had a single tiny room – imagine a living room merged with a dining room, plus an office and a bedroom, all in 18m² – plus a 2m² kitchen and a small bathroom. It was really, really small for me and my wife! My new home is so big near the old one that I can even run from the kitchen to the bedroom! Really, now we have a living room (!), and an office (!), and a bedroom (!) in separated rooms!

In addition to the house-changing, I also changed my Ph.D. project! I’ve been working with kernel methods and Gaussian processes, but that was so distant from what I want for my life that I were depressed because my work. So I talked with my advisor and we changed all these to Behavior Trees (!) which I will use for games and robotics.

I need a few more days to adjust myself to the daily routine.

Read more