C Board  

Go Back   C Board > Community Boards > Tech Board

Reply
 
LinkBack Thread Tools Display Modes
Old 07-20-2005, 02:24 PM   #1
Software Developer
 
jverkoey's Avatar
 
Join Date: Feb 2003
Location: University of Waterloo
Posts: 1,916
Just a random project

So I've been working lately..but since there's nothing to do I've gutted out one of the old computers, reinstalled the OS and installed visual studio and such so it's almost a home-away-from-home. While I've been bored out of my mind, I've made a cool little DOS console rendering class.

Basically it sets up the DOS window so you have an 80x50 area (or 80x100 if you use the block character trick that I used for rendering the bitmaps) for rendering text to a buffer and swapping it to the screen really fast (I achieved about 900 fps on some computers with it in realtime mode). I've added support for a mouse and such, and I've done a couple random things, like print out an ASCII reference table.

The cool thing I just finished though is a bitmap renderer using my Image Express library...it can load a bitmap and print it to the screen (using the available 16 colors) and does a somewhat decent job of it.

Here's a screeny and some apps for you to play with.

If you want code, feel free to ask and I'll post it. I might be doing a little tutorial thing on my site about this stuff, as it's fun to dabble with.

These two attachments need to be renamed to .zip to be opened.

Note: ImageLoader quits when you press a key, the ASCII table one has a + for the cursor. If you go in to full-screen (alt-enter) it works best.
Attached Files
File Type: txt ImageLoader.txt (59.0 KB, 38 views)
File Type: txt ascii.txt (17.7 KB, 37 views)

Last edited by jverkoey; 07-20-2005 at 02:26 PM.
jverkoey is offline   Reply With Quote
Old 07-20-2005, 02:24 PM   #2
Software Developer
 
jverkoey's Avatar
 
Join Date: Feb 2003
Location: University of Waterloo
Posts: 1,916
Screeny of the rendered bitmaps:
Attached Images
 
jverkoey is offline   Reply With Quote
Old 07-20-2005, 02:41 PM   #3
Software Developer
 
jverkoey's Avatar
 
Join Date: Feb 2003
Location: University of Waterloo
Posts: 1,916
Just added functionality for moving the bitmap on the screen and rolling the graphics around. I threw in a sin and cos wave to make it move around cool.

I haven't efficienized it whatsoever, mind you, so it might run slow, but I used a Sleep function for really rudimentary frame limiting so it shouldn't go faster than what I tested it with, I know that for sure. It could go slower though if you have a computer worse than this crap one I'm using (667mhz).
Attached Files
File Type: txt moving.txt (58.2 KB, 31 views)
jverkoey is offline   Reply With Quote
Old 07-20-2005, 03:15 PM   #4
Registered User
 
mrafcho001's Avatar
 
Join Date: Jan 2005
Posts: 483
lol you got way too much free time on your hands...

this could be usefull for something i had in mind but never bother doing..
__________________
My Website
010000110010101100101011
Add Color To Your Code!
mrafcho001 is offline   Reply With Quote
Old 07-20-2005, 03:17 PM   #5
Software Developer
 
jverkoey's Avatar
 
Join Date: Feb 2003
Location: University of Waterloo
Posts: 1,916
It's called work, which oddly enough means free time.

That's also the cool thing about working in an over-staffed computer help desk area as an intern.
jverkoey is offline   Reply With Quote
Old 07-20-2005, 04:41 PM   #6
Crazy Fool
 
Perspective's Avatar
 
Join Date: Jan 2003
Location: Canada
Posts: 2,596
nice work
Perspective is offline   Reply With Quote
Old 07-20-2005, 06:56 PM   #7
I am he who is the man!
 
Stan100's Avatar
 
Join Date: Sep 2002
Posts: 361
Looks very interesting, if and when you get articles/tutorials/give out code on your site, post about it/PM me
__________________
Stan The Man. Beatles fan

When I was a child,
I spoke as a child,
I thought as a child,
I reasoned as a child.
When I became a man,
I put childish ways behind me"
(the holy bible, Paul, in his first letter to the Cor. 13:11)
Stan100 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Open-source Game Project Glorfindel Projects and Job Recruitment 0 03-24-2009 01:12 AM
Lesson #3 - Math oval C# Programming 2 04-27-2006 08:16 AM
Game Independent Anti-cheat Project Needs Programmers GIA Project Lea Projects and Job Recruitment 3 09-15-2005 07:41 PM
Testing Random Number Generator Roaring_Tiger C Programming 7 08-12-2005 12:48 AM
Best way to generate a random double? The V. C Programming 3 10-16-2001 04:11 PM


All times are GMT -6. The time now is 06:52 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22