Search found 124 matches

by Codemss
Tue Dec 04, 2007 2:29 pm
Forum: General Discussion
Topic: small window/picklist routines?
Replies: 2
Views: 4984

I don't believe it is that hard: if you stick 15 minutes in it, you will probably have a good one. If you really have no idea: You know the command "LOCATE row%, column%"? It will be usefull. Also you need to know about arrays(some kind of list)... If you make an array with all options and define so...
by Codemss
Tue Dec 04, 2007 12:55 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: View a vehicle track on a ground grid
Replies: 4
Views: 5574

Well, I don't that anybody from this site will give you the code, but let me give you a little advice. First: do you know ANYTHING about 3d? No -> Get a tutorial(look on the tutorials section of Petes site). Yes -> Read on. First, try to code it yourself. If you don't know where to start, describe w...
by Codemss
Tue Dec 04, 2007 12:35 pm
Forum: General Discussion
Topic: Is it possible to do 3d math with only integers?
Replies: 4
Views: 7132

Since I eliminated the floating point calculation by creating a matrix of precalculated variables I was a little curious if this approach would actually be faster or not. Much to my suprise, after comparing the routine using my optimizations, to the same routine using the floating point calculation...
by Codemss
Mon Dec 03, 2007 1:53 pm
Forum: General Discussion
Topic: Is it possible to do 3d math with only integers?
Replies: 4
Views: 7132

Is it possible to do 3d math with only integers?

Since I'm very into optimizing my code, I want to use as much integers as much (only instead of other types of variables of course :P). I looked in Mono & Disco's code, and there it uses single variables to calculate the screen coordinates for 3d models. Is it also possible to get a 3d model running...
by Codemss
Mon Dec 03, 2007 1:42 pm
Forum: News and Announcements
Topic: Announcing Gflux
Replies: 15
Views: 22898

I have windows XP. I haven't tried screenres, as I don't know how it works. (though I know it's probably very simple, I guess it's something like this: screenres 320, 200, 256 Am I near?) BTW, How to handle the palette with Freebasic? Now I think about it, it is possible that I have OUT &H3C8, .... ...
by Codemss
Mon Dec 03, 2007 9:54 am
Forum: News and Announcements
Topic: Announcing Gflux
Replies: 15
Views: 22898

It works well if I use:
SCREEN 13
(It runs in a window)

But when I use:
SCREEN 13, , , 1
My monitor turns black and 'says': "Cannot display this video mode, change computer display input to 1024x768@60Hz"
by Codemss
Sun Dec 02, 2007 12:55 pm
Forum: News and Announcements
Topic: Announcing Gflux
Replies: 15
Views: 22898

Haha, didn't mean to offend you, because I am coding too in good ol' Qbasic. Mostly because Freebasic actually IS different on some points. For example, you can't use POKE/PEEK with it, and that's the fastest way to put graphics on the screen, so... Freebasic is much more for 'modern' programmers wh...
by Codemss
Sun Dec 02, 2007 6:31 am
Forum: QBASIC and QB64 Questions & Answers
Topic: reversible hex dump
Replies: 6
Views: 8113

I don't understand you problem either. Is it in accessing the RAM/hdd (what is hdd? Harddisk?). Well I only know about PEEK and POKE, and BINARY files. They both handle numbers from 0-255. Is your problem that want only binary numbers, that are 0 or 1? I don't think that it is because you seem to be...
by Codemss
Sun Dec 02, 2007 6:26 am
Forum: General Discussion
Topic: What's the best way to fill in a triangle?
Replies: 11
Views: 16861

Well, I thibk it has something to do with interpolation and flat bottom and flat top triangles. Check out this article: http://www.petesqbsite.com/sections/tutorials/tuts/relsoft3d/Chapter3/Chapter3.htm If you scroll a bit down, to: 'III. Different Polygon fillers', there is MUCH info on how to make...
by Codemss
Sun Dec 02, 2007 6:17 am
Forum: Pete's QB Site News
Topic: QB Express #26 Deadline: November 24th
Replies: 37
Views: 101629

Well, that sucks... I hope the next issue will be larger again, I will try to finish my (very large!) tutorial on special effects for the next issue, but I'm not sure it will be done. Im not that far with it, but all the subjects are things I already did in the past. I will be very proud when I fini...
by Codemss
Sun Dec 02, 2007 6:12 am
Forum: News and Announcements
Topic: Announcing Gflux
Replies: 15
Views: 22898

Cool idea! Are you coding in Freebasic? (Probably you are :), everybody who's smart is coding in Freebasic these days).
Please post some screenshots and/or a demo when you have an engine ready. I am very courious...
by Codemss
Sun Dec 02, 2007 6:04 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Trying to get a Battleship Program ASAP
Replies: 29
Views: 23921

I think you can better start to code fast and hand in some code that is full of bugs, than hand in nothing or hand in someone elses code and get caught. You can better do your best yourself(that's the only way you'll learn something) or admit to your teacher that you don't got got the time. Now if y...
by Codemss
Sat Nov 24, 2007 10:44 am
Forum: Pete's QB Site News
Topic: QB Express #26 Deadline: November 24th
Replies: 37
Views: 101629

Lachie Dazdarian wrote:FreeBASIC tutorials?
I actually use just fragments of code in my tutorials, that are made for qb but can also be used in fb.
by Codemss
Tue Nov 20, 2007 2:52 pm
Forum: Pete's QB Site News
Topic: QB Express #26 Deadline: November 24th
Replies: 37
Views: 101629

I've submitted two tutorials, one on the worms-like engine and one, a bit useless, about writing tutorials. :roll: Anyway, I'm still bizzy with a BIG tutorial about special effects. It's about every special effect that I know: particles, fire, water, clouds using prelin noise but also polygon stuff ...
by Codemss
Mon Nov 12, 2007 10:32 am
Forum: Pete's QB Site News
Topic: QB Express Article Requests
Replies: 140
Views: 357292

Goddamn! I finished the worm-like engine tutorial, but forgot to post it! Can somebody kill me? Im such a retard! Well, I guess I will post it in the next issue. I think it really sucks though.
by Codemss
Mon Nov 12, 2007 10:21 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Slow fixed point math
Replies: 4
Views: 5345

OK, let me clearify: I converted the program into fixed point math. Now, the program is much slower. But I used ffix (speeds floating point math up) for the floating point. So is floating point faster then fixed point when you use ffix? (I admit that the julia fractal thing is a bit complex :P). BTW...
by Codemss
Thu Nov 01, 2007 4:57 pm
Forum: Pete's QB Site News
Topic: QB Express #25
Replies: 11
Views: 46070

It works fine for me. Nice issue! The tutorial about angles (prt 2) was cool. I checked only the final compiled exe and everything seems really well explained and controlling the space ship is great. The camera movements are good too, and the AI is well done. If you can make a story behind it and ma...
by Codemss
Wed Oct 31, 2007 3:45 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: return from dos screen to window screen
Replies: 12
Views: 13331

Are you sure? On my old pentium II windows 98 I was able to run a compiled program in windowed mode. (Indeed with Alt+Enter). It runned t much lower framerate though (not the speed sucked, but the refresh rate of the window). I have dumped the computer to my younger brother now, but I'm sure I could...
by Codemss
Mon Oct 29, 2007 4:26 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Slow fixed point math
Replies: 4
Views: 5345

Slow fixed point math

I wrote a Julia animator a while ago, and yesterday I decided to optimize it with fixed point math. But when I used ffix with the floating point math, it was much faster then when I used integer or long integer fixed point math. I though that this was maybe because of the extra multipications and (i...
by Codemss
Thu Oct 25, 2007 12:08 pm
Forum: General Discussion
Topic: I need a tileset to test my platform engine
Replies: 8
Views: 10466

Thank you again, Lachie. Good tip. Still, I wonder if there aren't tilesets from Mario (for example) around. But, that program is perfect to test the engine. It is not really finished (it is for QB but it can be compiled in FB then, right?).