Search found 124 matches

by Codemss
Mon Feb 04, 2008 1:44 pm
Forum: Freebasic Questions & Answers
Topic: Compiling in FB with OpenGL
Replies: 18
Views: 26066

Nah I mean more the programs on Nehe that use special things like mipmapping, antialiasing and that kind of stuff.
by Codemss
Sun Feb 03, 2008 9:03 am
Forum: Freebasic Questions & Answers
Topic: Compiling in FB with OpenGL
Replies: 18
Views: 26066

When I browsed through some OpenGL apps on the internet, it seems to me that most of them are quite slow. IS this just because a lack of optimization? I used to think that OpenGL works at blazing speed.
by Codemss
Fri Feb 01, 2008 4:40 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Keyboard Help
Replies: 5
Views: 6929

There is a function called MULTIKEY posted by BadMrBox, that is very food for this, you can download it here: http://www.qbasic.com/wbb/filebase_entry.php?action=download&entryid=31&sid=44a4536715bb0d397e69f556e2547d54 OR: If you clear the keyboard buffer each frame with this: DO UNTIL INKEY$ = "" L...
by Codemss
Fri Feb 01, 2008 4:32 pm
Forum: General Discussion
Topic: "how to" graphics book
Replies: 2
Views: 5280

I don't know any books, but this is an excellent tutorial, the best I ever read:
http://www.petesqbsite.com/sections/tut ... ts/tsugumo
by Codemss
Fri Feb 01, 2008 11:34 am
Forum: Pete's QB Site News
Topic: Freebasic Forum Opens
Replies: 3
Views: 28769

That's cool to me! I would do the same. QB is a fine title, everybody knows this site as Pete's QB site. And, FB is based on QB and not inversed. QB is a stable interpreter and compiler, and FB is fully in development. Still, much of the suff here is for QB, and I don't think that QB is completely l...
by Codemss
Tue Jan 29, 2008 2:05 pm
Forum: Freebasic Questions & Answers
Topic: simple decimal addition
Replies: 9
Views: 15088

Yeah. This is very weird and it sucks. I have it too. Sometimes, If I add 0.2 to 0.2 I get 0.399999999999999 and that kind of things. You should be able to get rid of this. You may round of on some decimal. I dont know what's the best way to do that. Don't directly use CINT or INT (at least, not for...
by Codemss
Sun Jan 27, 2008 5:11 am
Forum: General Discussion
Topic: 3D Rotation Algorithm?
Replies: 5
Views: 9784

Ehm, you mean 2d rotation I believe? Like a rotozoomer? The formula for that is: RotatedX = ScreenX * COS(angle) - ScreenY * SIN(angle) RotatedY = ScreenX * SIN(angle) + ScreenY * COS(angle) For more info, check: The first two are about rotation only. The thirs is about rotozoomers (so also zooming ...
by Codemss
Sat Jan 12, 2008 10:34 am
Forum: QBASIC and QB64 Questions & Answers
Topic: What are some applications for pointers?
Replies: 9
Views: 11944

They give you more control over the memory. I also believe that they are faster. They don't make new things possible, I believe.
by Codemss
Mon Jan 07, 2008 9:13 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Rotating a squared matrix
Replies: 4
Views: 6798

You can do some easy rotations by just swapping the x and y parameters, or replacing x by size - x and y by size - y.(I know this sounds vague :s) Example: you have a 5x5 matrix and you want to rotate a little piece out of it. First it's (i think) necessary to have a 'buffer' matrix. To store the va...
by Codemss
Sun Jan 06, 2008 12:22 pm
Forum: Freebasic Questions & Answers
Topic: Compiling in FB with OpenGL
Replies: 18
Views: 26066

I printed your post. (it was 6 pages with the code :P). I kinda understand it now. You post is lika tutorial. :P.

I think I will try to make some rotating poly's soon. I'll post it here. Thanx for your help.
by Codemss
Sun Jan 06, 2008 12:20 pm
Forum: General Discussion
Topic: Code exchange subforum?
Replies: 13
Views: 14699

Code exchange subforum?

Maybe it is a nice ieda to make a subforum for code (snippets)? So people could show thier progs and anyone could ask for small pieces of code? Like that people could learn new (perhaps better) ways to do specific stuff.
by Codemss
Thu Jan 03, 2008 1:43 pm
Forum: Freebasic Questions & Answers
Topic: Compiling in FB with OpenGL
Replies: 18
Views: 26066

nice! you are much further with OpenGL then I. I got heavily confused when I tried to learn how you open a opengl window :P. Well, I will try it later.
by Codemss
Sun Dec 30, 2007 4:16 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: String$ and Variables?
Replies: 5
Views: 7533

First, ask the user to input a word. I would then make a loop that runs from 1 to the length of the word (LEN(word$)). In that loop, get the ASCII number of the character at that position(with MID$ and ASC) and add it to an integer variable which is set to 0 before the loop. To get the ascii number ...
by Codemss
Sun Dec 30, 2007 7:00 am
Forum: Freebasic Questions & Answers
Topic: Compiling in FB with OpenGL
Replies: 18
Views: 26066

Nice that there is a FB subforum. Hehe, you will get flooded by my questions about FB! Burger2227, hide yourself. hehe :P. But, to respond on your post, Mentat: Probably both ways are possible. Where do you learn OpenGL from? I think OpenGL is a bit complicated, but it gives many possibilities and i...
by Codemss
Thu Dec 27, 2007 9:26 am
Forum: Freebasic Questions & Answers
Topic: Compiling in FB with OpenGL
Replies: 18
Views: 26066

Thanks! Sorry for being a FB n00B :P.
by Codemss
Thu Dec 27, 2007 6:44 am
Forum: Freebasic Questions & Answers
Topic: Compiling in FB with OpenGL
Replies: 18
Views: 26066

Yes, you're right, but it seems like the compiler doesn't even load the SDL lib, because it doesn't even recognize 'SDL_quit'. That is really weird, because including the libs is just: '$include: "\sdl\sdl.bi" 'sdl function and constants declaration '$include: "\gl\gl.bi" 'OpenGL funks and consts '$...
by Codemss
Wed Dec 26, 2007 6:07 pm
Forum: Freebasic Questions & Answers
Topic: Compiling in FB with OpenGL
Replies: 18
Views: 26066

Compiling in FB with OpenGL

I tried to compile Rel's code that he included with a tut on opengl in freebasic in QBE issue #7(<a href="http://www.petesqbsite.com/sections/express/issue8/index.html#fbgl">Link</a>), but it doesn't work when I compile it. It gives me tons of errors. One of them is that 'SDL_quit' is not recognized...
by Codemss
Mon Dec 24, 2007 6:06 am
Forum: News and Announcements
Topic: Scrolling engine
Replies: 20
Views: 33966

The code allowed you to use graphical text (Ildurest) and my particular routine made the text larger. I also made a graphic scroller that works way better than ASCII text would. Ring any bells? Yes. Did I use that code with my credit or something? If so, sorry. But wasn't that years ago? Anyway, do...
by Codemss
Mon Dec 24, 2007 5:17 am
Forum: General Discussion
Topic: What programming languages have a bit as variable type?
Replies: 9
Views: 12288

Well, it is much easier to use when you can define how much bits you need for one variable. Also it is much easier when you want to do something that's monochronome.
by Codemss
Sat Dec 22, 2007 6:50 am
Forum: General Discussion
Topic: What programming languages have a bit as variable type?
Replies: 9
Views: 12288

Too bad... So I still have to make byte-to-bit LUTs, and 8-bits-to-byte LUTs.
Ok thanks.
Greets,

Codemss