flat assembler
Message board for the users of flat assembler.
Index
> MenuetOS > MenuetOS clock |
Author |
|
Krulj 03 May 2007, 08:15
Hello everyone.
I am watching Menuetos project almost from beginning (~2001). I am reading posts almost every day and I must say: Great job people (especially you Ville). I have always wanted to participate in development but I don't think I'am good enough and I'am always short with time. Some time ago I saw Analog clock for Menuet and it was written in NASM but I think that Menuet deserve a cool looking clock written in pure FASM so I wrote this one afternoon. Hope you will like it. Don't be confused by the size of the files because background image takes over 40kB but it looks great . Keep up the good work
|
|||||||||||
03 May 2007, 08:15 |
|
Krulj 08 Jun 2007, 18:45
Ops, I just realized that I forgot to post source code.
Some reply would be really nice
|
|||||||||||
08 Jun 2007, 18:45 |
|
Ville 09 Jun 2007, 15:18
Good work ! Stylish and functional. We're waiting for your second application.
|
|||
09 Jun 2007, 15:18 |
|
Madis731 11 Jun 2007, 17:23
I hope you succeed - you are already further than I was. I did about 3% and gave up because I saw that I didn't have the time to finish it.
|
|||
11 Jun 2007, 17:23 |
|
Krulj 15 Nov 2007, 23:53
Hi everyone
There are only two things that I don't like about my clock: 1) background image takes ~50kB 2) second, minute and hour pointer's are basic lines so they are not smooth I was bored this afternoon so I decided to try implementing some basic antialiased lines in Menuet. In my opinion we can't achieve any quality graphic project in Menuet without antialiasing. You can see result in Antialiased binary file. Since it took me just one afternoon I think that result is very nice. I used 255 levels for black because of 16 bit division. Better result can be achieved with 32 bit precision. NonAntiaAliesed binary file is application with basic rough lines so you can compare results. So far I have only done black lines on white background but I will try to find a way to draw any color line on any color background. If anyone has done something similar I would greatly appreciate any advice. NOTE: App is tested only in 1024x768 resolution. Happy coding
|
|||||||||||
15 Nov 2007, 23:53 |
|
Krulj 18 Nov 2007, 14:34
Hi everyone
After couple of day’s hard work I finally have some good results to show for. Now Antialiasing sub routine will work for every color line on any background color. After this I have to figure out how to take out that bulky picture and still keep the cool looks. )) In zip file you will find two version that are done without antialiasing and three versions with antialiasing effect. I have also included and couple of screenshots. NOTE: App will work only in 1024x768 resolution , because I yet have to adapt function for reading color of background pixel for other resolutions. Happy coding
|
|||||||||||
18 Nov 2007, 14:34 |
|
Madis731 19 Nov 2007, 12:51
Hmm, are you using GS selector to do that? There are some neat tricks to read the width&height and then calculate appropriately...
Btw, nice job! |
|||
19 Nov 2007, 12:51 |
|
Krulj 20 Nov 2007, 17:55
Hi
Thanks Madis No I don't use GS selector. NOTE: I have finished commenting code so you will find source code in zip file. I have also upgraded clock so now it will work on all resolutions. Code still needs a lot of optimization. Happy coding
|
|||||||||||
20 Nov 2007, 17:55 |
|
Krulj 05 Dec 2007, 20:46
Hi
I am trying to make clock background image external so everyone in menuetos community could make pictures and dinamicly load it into application. But I have stumbled into a problem. Function 58 says that you have to provide file name and path to that file in order to load it. I know picture name but how can I determine in which directory it's located? Currently my application is in C:\menuetos\ but what if someone wants to copy clock.bin and clock.raw into eg D:\App\ ? So the question is: How to get information about current dir ? Thanks |
|||
05 Dec 2007, 20:46 |
|
JN 30 Sep 2008, 12:02
Hi
You could exclude the image as a RAW file e.g. clockbg.raw and include it as binary data using the 'file' instruction: Code: mask: file 'clockbg.raw' image_end: This doesn't allow to load the image dynamically, but it is out of the source code. |
|||
30 Sep 2008, 12:02 |
|
Krulj 07 Oct 2008, 09:52
Thanks JN
but that will lead to the same end, all images would be compiled into the same file. What I need to do is modify Menuetos kernel but since I have lot of work that won't be any time soon |
|||
07 Oct 2008, 09:52 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.