EnglishSvenska

Working on a game in Unity3D

Together with my brother we are creating a game for iOS, Android, Mac and Windows. Currently a work in progress but it is starting to be rather fun and challanging gameplay.

Computer graphics is done by my brother; Jonathan Nilsson at Crocoraff.com. I do the C# programming in Unity3D which is quite pleasant to work with. The whole project is open sourced at github.

Website: Lumlyx.com

In colaboration with Studio Oddball, I made a simple yet functional WordPress website for Lumlyx. The website is made with responsiveness in mind to make sure it is usable on mobile devices. Check it out at lumlyx.com

Almost completely quiet pc

I hate computer noise but I love computers and it was time for a new computer purchase. My first approach was to buy everything passive (GPU, CPU, PSU) but apparently there are not many components that fit those constraints. Instead I went for semi-passive components that only run their fans if necessary. I chose:

  • low power CPU to not generate too much heat
  • gigantic CPU cooler to eliminate the need of a fan
  • just one big case running on very low rpm to transfer heat out of the chassis

Full component list for a quiet pc

Booting up is a bit noisy because the GPU fans and the HDDs throttle up. But after a few seconds it is almost completely quiet.

ARVE Error: Invalid URL /wp-content/uploads/2016/05/semi-passive-quiet-pc.mp4 in mp4

Cpac Systems: Rapid prototyping

Rapid prototyping is a great way of researching concepts for new products. Recently I got the task of making a proof-of-concept for a Bluetooth device that needed to communicate with smart phones. In a matter of weeks I could present a interface hardware written in C++ and Arduino, together with a rather simple but fully functional mobile app.

Cpac Systems: Inventor in patent applications

When developing new features for marine applications now and then I have the opportunity to work with solving complex problems. Sometimes the solution to those problems are sufficiently good to be patented. I have written numerous internal innovation declarations and a few of them have made it further than others. Right now I am the sole inventor of one patent which is pending in Sweden, and also co-inventor of two patents being filed by one of our company partners (patents also pending).

Cpac Systems: Automated build environment

I have been responsible for automating a large portion of the software build environment for Cpac Systems marine products. Basically new software is built by an automated build server every time someone commits new code to the software repository, but also on request when a software release needs to be done. I have automated the build and release processes piece by piece and now (with a few exceptions) we can release a new software for a large batch of products in a matter of minutes, compared to before when a software release could take a day. The reason for this is Python scripts that handle the complete build and documentation process of every software, which is done in parallell for a multitude of products. Before this process would be done by individuall software programmers for "their product" on build day.

Cpac Systems: Automatic Hardware-in-the-loop (HIL) tests

I like automating boring tasks, and one of them sometimes is integration testing. At Cpac Systems I have been writing scripts and configuring hardware for automatic testing of Electronic Control Units (ECUs). Basically connecting the essential control units for running a boat to the same system, and writing automatic test cases that perform hardware-in-the-loop (HIL) tests. All of it connected to Jenkins Continous Integration server.

ODE solver in Python using custom Forward-Euler

Predator-Pray

For realtime simulation it is important to have an ODE solver that is simple enough. I did not find any plug-and-play kind of ODE solvers for realtime applications so I wrote one myself. The greatest benefit of this approach is that you have full control of every time step. Good for realtime simulations.

https://github.com/sebnil/Python-ODE-Forward-Euler/blob/master/Forward-Euler%20ODE%20solver.ipynb

It is very simple but show the basics of how to write an ODE solver. It could be extended to use more sophisticated solvers like Runge-Kutta or Crank-Nicolson.

Tagged with:

Trying some game development in Python

I wanted to learn some basic game development in OpenGL and Python. Pyglet is very good for this kind of thing. Unfortunately it seems to have a less active community compared to Pygame (but in my opinion Pyglet seems much more Pythonic in its design). My game will not win any awards since it is a Asteroids clone. But it has some other features like:

  • Bullets have recoil and will slightly accelerate the ship rearwards when shooting.
  • Game graphics from a professional artist. (nalishac.com)
  • When I started this list I thought there would be more features but I think this is it.

pyglet-asteroids on Github

 

Using a lot of code and inspiration from:

Code structure and inspiration from:

Tagged with:

Infrared experiments to control the television from a website

Where is the remote? Wouldn't it be good if you could switch channels on the television from a website. A wanted to see if it is possible. It didn't.. Note to self; buy more powerful IR transmitters.