Search found 409 matches

by Mentat
Thu Dec 06, 2007 7:45 am
Forum: Pete's QB Site News
Topic: QB Express #26 Deadline: November 24th
Replies: 37
Views: 238629

Another BASIC website. I'm still working on that competition that ended months ago. :lol:
by Mentat
Thu Dec 06, 2007 6:50 am
Forum: Pete's QB Site News
Topic: QB Express #26 Deadline: November 24th
Replies: 37
Views: 238629

I've got two more ideas for tutorials. I'm thinking of sending one to Ortise and one to here.
by Mentat
Wed Dec 05, 2007 5:17 pm
Forum: General Discussion
Topic: What is in the class "Intro to Prog and log"?
Replies: 1
Views: 5680

What is in the class "Intro to Prog and log"?

I'm taking it next semester. All I know about it is that it's a prerequisite for two programming classes I want to take (Visual Basic and C++). Also it's a prereq for a new program at the school that works with one of the UNCs and it offers a series of Computer Graphics and Game Design courses. Than...
by Mentat
Tue Dec 04, 2007 7:25 am
Forum: General Discussion
Topic: Is it possible to do 3d math with only integers?
Replies: 4
Views: 11503

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, there was a 400% speed increase. Even when I used the FFix patch on the floating point routine, ...
by Mentat
Mon Dec 03, 2007 5:20 pm
Forum: General Discussion
Topic: Is it possible to do 3d math with only integers?
Replies: 4
Views: 11503

The only way I can think of is using large numbers and hoping they're large enough so that truncating is negligible. Or using UDTs, but that takes more memory. :? I did manage to use only integers for rotation, but that was becuase of simplicity and eventually rounding errors did pop up after time (...
by Mentat
Mon Dec 03, 2007 5:18 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Trying to get a Battleship Program ASAP
Replies: 29
Views: 40034

Have you checked the tutorials section here? There's all kinds of tutorials that will help. I wouldn't bother with the ones in the magaizines yet, but the begginers section should be very good for you. But you don't know about Pset ? :shock: I learned Pset before Print (I kept on typing Disp , befor...
by Mentat
Sun Dec 02, 2007 9:37 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: What's the largest possible double number?
Replies: 8
Views: 14905

Yes, but could it be a bug for numbers such as 12 and 368? I'm getting ridiculus numbers such as 1.788...E-307 . All of them. Just after I initalize them to equal numbers like 540.
by Mentat
Sun Dec 02, 2007 9:20 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: What's the largest possible double number?
Replies: 8
Views: 14905

Oh. Well, could a number such as 400 and 6 be Double without truncating or any other problems? I'm asking this becuase I'm having a very wierd bug. It's as if the numbers are being "squashed" as soon as they're declared, and I'm using Doubles. Either that, or being "exploded."
by Mentat
Sun Dec 02, 2007 8:56 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: What's the largest possible double number?
Replies: 8
Views: 14905

Re: What's the largest possible double number?

Mac wrote:
Mentat wrote:Please don't use e.
How about "d"?

K# DOUBLE
double-precision 64-bit floating-point
Sixteen place accuracy, Max = 1.797693134862315D+308
But what does the e+308 mean? I don't want precision, I just want a max number.
by Mentat
Sun Dec 02, 2007 12:33 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Trying to get a Battleship Program ASAP
Replies: 29
Views: 40034

I won't give you the code, but I'll give you some hints. A) Use a matrix for the board B) Use different numbers for different states (ex: 0 is unhit water, 1 is unhit ship square ...) The rest should fall together. Now if you have specific questions about certian parts of code and technique, and if ...
by Mentat
Sat Dec 01, 2007 8:28 am
Forum: General Discussion
Topic: What's the best way to fill in a triangle?
Replies: 11
Views: 28353

Nodtveidt wrote:Oh, if you're using FB then you can just use OpenGL anyways. No point in reinventing the wheel.
Ohhhhhhh. I thought OpenGL was just for C++.
by Mentat
Fri Nov 30, 2007 9:21 pm
Forum: General Discussion
Topic: What's the best way to fill in a triangle?
Replies: 11
Views: 28353

Nodtveidt wrote:Honestly? The best way to fill a triangle is to just use OpenGL. :D
In FB?
I wouldn't be surprised if it could.
by Mentat
Fri Nov 30, 2007 6:54 am
Forum: General Discussion
Topic: What's the best way to fill in a triangle?
Replies: 11
Views: 28353

I don't want to use paint due to the possibility of a sideways triangle (a line). I forgot to mention, these triangles are in 3D.
by Mentat
Thu Nov 29, 2007 8:54 pm
Forum: General Discussion
Topic: What's the best way to fill in a triangle?
Replies: 11
Views: 28353

What's the best way to fill in a triangle?

I just figured out how to do it. My book was talking about rasterization of polygons. Though it does some complicated stuff with vectors and matricies. I didn't figure out how to do it the way the book said, but the chapter/section on culling did lead me to a question. Which in turn, led me to an id...
by Mentat
Tue Nov 27, 2007 8:15 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Lists in QBASIC
Replies: 3
Views: 5932

Code: Select all

DIM MyArray[3]
Just dim the array, and put the length in at the end. And what ever the type is for the elements.
by Mentat
Mon Nov 26, 2007 5:11 pm
Forum: Pete's QB Site News
Topic: QB Express Article Requests
Replies: 140
Views: 850059

Oh, it was in TI. I have to keep everything archived, because by calc has a bad habit of clearing the RAM. So, debugging is slower than usual.

But, for this submistion I changed topics.
by Mentat
Sat Nov 24, 2007 3:09 pm
Forum: Pete's QB Site News
Topic: QB Express #26 Deadline: November 24th
Replies: 37
Views: 238629

Well, the due date is today, and we are short on material, so I think it's okay.
by Mentat
Sat Nov 24, 2007 10:47 am
Forum: Pete's QB Site News
Topic: QB Express #26 Deadline: November 24th
Replies: 37
Views: 238629

FreeBASIC tutorials? I actually use just fragments of code in my tutorials, that are made for qb but can also be used in fb. I used to make dual-compatibility, but now I'm leaning to FB. My next tutorial is exclusively FB. Anybody who can tweek my code enough to make it QB compatible would already ...
by Mentat
Tue Nov 20, 2007 6:40 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Rotating a bit map image
Replies: 11
Views: 25461

Or, you can load the main image into a compiler such as BlitzBASIC that can easily rotate, save the turned images, and then just load them. Yes! It would be incredibly inefficient to use rotation via angles when all you want to do is reverse bits Yes, but using angles is more flexible. Angles can ha...