Tuesday, March 27, 2012

Last weekend Amiga Project work.

Last weekend I was at friends doing some Amiga project work for fun, the idea style up Excalibur start menu whit transparent border, so my friend Svenn Ove Hansen worked on making a 3d object from 2d object image using Maja3d its powerful 3d application.

For some time a go I experimented whit Composition Porter duff stuff, I see other people are working on some thing on Amigans.net I do keep I eye on whats being talked about there.

Before we started I tried using DataTypes to load PNG images, but I'm sorry to say I where unable to get alpha channel in PNG image, so no transparency :-(

So spent some time getting libpng to link whit my program, I don't like to use Linux libraries, when AmigaOS has so advanced system for loading Images, but did not find any other way :-(

I looked up a example for loading png images as textures for OpenGL, it was prefect the only problem it was too old, and spend some time trying to figure out if I compile my program wrong or was missing some include files, finally I looked up documentation for LibPNG, replaced the stuff that was outdated and it compiled, next I need the images in struct BitMap format as that's what AmigaOS uses, LibPNG loads the image in RGBA format, not ARGB format so I need to convert the image as well, not just copy the image data, next I head to copy the Alpha part for ARGB in to 8bit Alpha Bitmap for transparency effect on the window you don't see :-)

Her is the result of work last weekend.

Saturday, March 17, 2012

Things moving slowly....

I have been sick last week, not so motivated doing anything, and there been a lot going on at work I hope our customer will be happy about larger winnings, also been spending a lot of weekends going out, that's way there not any blog updated in February and March.

But don't worry I have not stopped coding for AmigaOS completely, lately I have been investigating libcurl because it might be better way to implement a download manager then wasting time on writing my own code, and looking up different net protocols like ftp and http.

I have also been working on Basilisk II, I have merged the lasted changed from Scott A. Cabit, in to may source tree using diff tools, so easy to use diff tools, yet I have not used it before :-), at work we use git, so its all handled by git-cola (on Linux), I have also update my network code (for experimental TCP/IP stack), so now Basilisk II get different MAC addresses if you have more then one Basilisk runing at the same time, its now possible to run web server on one basilisk, and firefox or IE on an other basilisk, but there is a problem getting ARP respond when I have no loopback devices running in experiential TCP/IP stack, so maybe I need some extra code to take care of that, biggest problem atm is that AmigaONE-XE is not a speed daemon, so doing experiments are boring and slow, I guess I need to buy X1000 now.

I was thinking about moving the ARP code from Ethernet device in to the link layer, but I don't wont to make the link layer ugly, as its suppose to do only MAC multicast, broadcasts and stuff like that.