Avatar of admin

by admin

Tic Tac Toe game released

6. May 2012 in software

This morning I released my Tic Tac Toe game via the Nano subversion repository.
You play against the computer. The game has two difficulty levels: “normal” and “expert”.
In expert mode it’s harder to win.

The wikipedia article, says that there are 255,168 possible games.
Tic-Tac-Toe
If X makes the first move every game:

* 131,184 finished games are won by (X)
* 77,904 finished games are won by (O)
* 46,080 finished games are drawn

However, if the oponent has already two in a row, then you can block them.
My game does this too. Or you could try to play diagonal over the middle field.
You have to find your strategy in this game.

tic tac toe - screenshot

Avatar of admin

by admin

Buggy – from concept art to a 3D model

30. April 2012 in graphics/movies

I’m working on a buggy model in Blender.
This is a work in progress: it’s still not finished. Currently I’m working on the doors.
It’s fun to do. But sometimes things are difficult to realize.
The suspension frames with the wheels can be rotated up and down. Also the front wheels can be steered.
This is possible right now.

Here are some pictures:

buggy - Blender render image

concept art drawing:

buggy - concept art

Blender 3D editor:

buggy - Blender editor

Avatar of admin

by admin

Nano virtual machine

3. March 2012 in software

I started this project about 2002 and now I got this far: I have developed a working virtual machine, an assembler
and a new compiler (which I call N).

With the almost finished N compiler you can write programs in a more higher level language then it was possible
with the assembler. The compiler is about 5500 lines of C code and was hard to write. I needed more than a month
to get it working (freetime, mostly on weekends).

Here is a code example:


func main ()
int n = 1; int ret = 0; int x = 2;

print “Hello world!”;
printn n;

// call function calc
@calc (x);

// get return value from function calc
get (x);

print x;
printn n;

#ASSEMB
jsr hello;
#ASSEMB_END

exit ret;
funcend

func calc (int x)
x = x * 2 << 2; x = ++;
return (x);
funcend

#ASSEMB
lab hello;
push_s “Hello world!”, S0;
print_s S0;
push_i 1, L0;
print_n L0;
rts;
#ASSEMB_END

As you can see, even inline assembly is possible with the N compiler.
The Nano virtual machine can start multiple threads which run program parts in parallel.
This is real multithreading. It’s done by simple to use commands and makes fun.

Graphics and GUI can be done with the Flow server, which I wrote also.
The communication between the VM and the Flow server is done with TCP/IP.
So you could run the server and the VM on different machines, even on different supported
OS. I think this is a nice feature.

The latest source code can always be checked out via subversion:
svn co https://nano-vm.svn.sourceforge.net/svnroot/nano-vm nano-vm

The project homepage: Nano homepage
The lines demo video: lines demo

Nano lines

loadscan

I’m searching someone who compiles a Windows build of my Nano VM and the graphics server Flow.
If you are interested then contact me please.

Avatar of admin

by admin

Matrix like animation

6. November 2011 in graphics/movies

I’m doing some serious rendering. It’s some Matrix like animation.
Showing the Matrix code in 3D, rendered with Povray 3.7.
Currently I’m making a short sequence with left and right picture pairs for creating a stereoscopic real 3D movie.

Here is an anaglyph red/blue picture (1280 x 720, HD 720).

Matrix 3D - anaglyph red/blue picture

The picture was created with JAC .
It creates an anaglyph red/blue picture from a left and right view picture.
You have to move the camera in Povray to render the pictures, and leave the look_at vector centered to render the pictures.

This results in a true stereoscopic picture, that looks “real” not flat as a normal rendered 3D picture.

Avatar of admin

by admin

A500 tower

14. May 2011 in computers

I have an expanded Commodore Amiga 500: A500 wikipedia
I modified a PC bigtower for the A500 mainboard. And built a new backside made from 2 mm thick aluminium.
I also made a keyboard connector: it’s the 15 pin DSUB connector near the standard A500 connector row.
And it has a normal hacked ATX power supply. The long IDE cables are made by me too.

If you wanna hack a bigtower case, then you have to be sure that the mainboard really fits inside:
the A500 mainboard is really big. I had to cut away some parts from the top frame inside and
the ATX power supply is now standing vertical instead of horizontal.

Ematrix turbocard: 68030 @ 50 Mhz,  FPU 68882 @ 50 Mhz, 24 MB RAM, Kickstart 3.1 (Amiga OS 3.1)
for compatibility it’s switchable to a 68000 and Kickstart 1.3!

Ematrix (BBOAH)

A501: 1 MB chipmem & clock
floppy drive
40 GB harddisk (PFS3 file system)
CD ROM drive & CD burner
100 MB zip drive

My A500 showing the “state of the art” demo from spaceballs:

here are some pictures:

Avatar of admin

by admin

otprecord – get random numbers from your soundcard

2. May 2011 in software

With otprecord (one time pad record) you can use your soundcard as a source for random numbers.
You need Linux to run the program:

otprecord.tar

You can use the saved data as a one time pad.
More about one time pads, they are used for encryption: one time pad
To compile the program type this in the shell:

gcc otprecord-0.3.c -o otprecord

The program is easy to use. Have some fun!

Avatar of admin

by admin

power pack

29. April 2011 in electronics

For a project I needed a 12 V and 8 V power supply. I connected two 7,2 V racing packs in series, so they
have 14,4 volts. And used  power regulators for 12 V and 8 V. I also placed some heatsinks at the power regulators.

This works well. Here are some pictures:

Avatar of admin

by admin

Get more light out of LEDs!

26. April 2011 in electronics

I got a black and white camera and use IR leds for light in the darkness.
It’s like an invisible flashlight. To get more light out of the LEDs I used a PIC 16F628A, it pulses them
with a very high current. Switching them rapidly on and off, so fast you can’t see this.

This is a simple trick: the LED doesn’t get the time to get damaged by this.
Instead it’s getting brighter like a LED with normal current. You have to read the datasheet of your LED carefully:

look out for “PEAK CURRENT, or PULSED PEAK CURRENT” and calculate the needed Ohm for the resistors.

In my case I had to use 3,6 Ohm.

The schematic and assembler file is in the archive.

pusled-led.tar

Avatar of admin

by admin

tool box

30. January 2011 in wood

tool box

tool box – dovetail

Werkzeugkiste – Schwalbenschwanz

Avatar of admin

by admin

wood box

6. January 2011 in wood

wood box – dovetail

Holzkiste – Schwalbenschwanz Verbindung

wood box - dovetail

wood box -dovetail

Switch to our mobile site

Seo