Search found 5724 matches

by dodicat
Jul 02, 2010 0:06
Forum: General
Topic: Circles
Replies: 1988
Views: 140571

However, it is much easier to rotate regular polygons using polar co-ordinates viz: #include "fbgfx.bi" Dim As Integer xres,yres screeninfo xres,yres screenres xres,yres,32,1,fb.GFX_ALPHA_PRIMITIVES Sub regular_polygon(n As Integer,_ 'number of sides centreX As Double,_ 'centres centre...
by dodicat
Jul 01, 2010 23:29
Forum: General
Topic: Circles
Replies: 1988
Views: 140571

Hi Rollie~ I've had a look at debug and polygon3d.bas You've got everything buried inside constructors and properties, it makes it a bit hard to follow. Cant you define a pivot to rotate around, in this case the c of g of the square. I altered the couple of lines here in polygon3d.bas, but I,m not s...
by dodicat
Jul 01, 2010 13:01
Forum: Windows
Topic: Freebasic crashing on a CLEAN install of windows XP Pro
Replies: 12
Views: 1532

Everything has installed correctly on both machine. All the devices in Windows are installed correctly. @dodicat When I did the dxdiag it told me I have DirectDraw ok but all the other options (Direct3D is not enabled. here is the data from the Diag software http://homepages.tesco.net/andrew.gable/...
by dodicat
Jul 01, 2010 0:59
Forum: Windows
Topic: Freebasic crashing on a CLEAN install of windows XP Pro
Replies: 12
Views: 1532

Gablea wrote:Well the FreeBasic Code WORKS on this given machine IN DOS so why would it not work in Windows?

Try running dxdiag from a command prompt and check your directX.
To get the rotating cube you need hardware acceleration, do you get it?
If not then your graphics card driver needs updated.
by dodicat
Jul 01, 2010 0:41
Forum: Windows
Topic: Freebasic crashing on a CLEAN install of windows XP Pro
Replies: 12
Views: 1532

Re: Freebasic crashing on a CLEAN install of windows XP Pro

Hi all, I have just installed a clean version of Windows XP Pro on to a Intel 400Hhz PC with 256MB RAM and now when ever I try to run a Freebasic Program I have written it crashes and returns to windows. THO it runs on my own Desktop PC and my laptop. Could it be looking for something I need to ins...
by dodicat
Jun 30, 2010 23:15
Forum: General
Topic: Circles
Replies: 1988
Views: 140571

YZ,XZ circle "rotation" Hi Rollie~ Thanks for your confidence, If they don't put me back down, I'll just have to forge ahead. Here's the regular_polygon sub with changing eccentricities to look a bit like rotation, you know, the one that made the carpet. dim as integer xres,yres screeninfo xres,yre...
by dodicat
Jun 30, 2010 21:38
Forum: General
Topic: Circles
Replies: 1988
Views: 140571

@ dodicat. If you wanted to avoid promotion to Sr Member you should have kept your total posts on the forum below 300. Albert is about to become a Master but I don't know where the goal posts are now, they moved. Hi Richard Oops another post, I'll be up another notch soon. I'll have to be careful n...
by dodicat
Jun 30, 2010 18:47
Forum: General
Topic: Circles
Replies: 1988
Views: 140571

Hi Albert I've taken your latest code and just used integer operations instead of strings in the inner loop. Also I've just used the old speed test method, I've saved about a second on 10,000 * 10,000, big deal! Since you are using ulongint, can't you just make the jumps bigger than four at a time. ...
by dodicat
Jun 30, 2010 11:45
Forum: General
Topic: Circles
Replies: 1988
Views: 140571

To the chattering class of this forum, Admins and the like, if you are watching this space, I see I've been elevated to sr.member. I am nearly a sr.citizen, and that is sr. enough, so please back down to the rank and file for me. I don't want any of the other forum members thinking that I can write ...
by dodicat
Jun 30, 2010 11:16
Forum: General
Topic: Circles
Replies: 1988
Views: 140571

@ Albert When I run your latest posted code, for the conditional Else part of line 109, I get an “Aborting due to runtime error 1 (illegal function call)” the line is; Redim Preserve numbers(Ubound(numbers(0))-1) Hi Richard/Albert It runs ok with the original fb20 build, from the download section. ...
by dodicat
Jun 29, 2010 23:18
Forum: General
Topic: Circles
Replies: 1988
Views: 140571

Re: adding multiplier

Hi Albert We're both going the wrong way with speed, so I've tried to go the other way a bit with your original multiplier, getting rid of some string operations. I get 100,000*100,000 digits in about 10 seconds on my slow machine, and a million by 100,000 in about 100 seconds. Declare Function mult...
by dodicat
Jun 28, 2010 23:42
Forum: General
Topic: Circles
Replies: 1988
Views: 140571

Hi Rollie~ I see you are busy at the 3d stuff. Here's what I (and I think Albert) finally need to do: The lookup table adds two string[indexes] and a carry[index] to return in the array of ubyte mc() the answer and the next carry[] Here's the code for the adding macro: Dim As long lenf,lens,diff dim...
by dodicat
Jun 28, 2010 19:42
Forum: General
Topic: Circles
Replies: 1988
Views: 140571

I changed the string, check again, those are the righr characters... the iterator is botched. Look again: Hi Rollie~ Gave it a good run down by the Cheyenne River: Dim As String s(1,1,1,1) s(0,1,0,0) = "Hello Albert And Dodicat! Is this what you were looking for?" Dim ps A...
by dodicat
Jun 28, 2010 18:09
Forum: General
Topic: Circles
Replies: 1988
Views: 140571

rolliebollocks wrote:I got to the string data!

Hi Rollie~
Thanks for that try, got:
0hhihii hii i a
back.
I think it is in the opening strains of Hiawatha, you know,
...
By the shining Big-Sea-Water,
In the blithe and pleasant Spring-time,
0hhihii hii i a.

Cheers Rollie~
by dodicat
Jun 28, 2010 17:16
Forum: General
Topic: Circles
Replies: 1988
Views: 140571

Get the pointer of multi-d string array by pointer to index: Hi Rollie~ I can set an array pointer of ubyte to a multi dim array of string, but I can't access the pointer indexes. Accessing elements of a ubyte multi dim array is a bit slow for a look up table, so I would like to access the pointer ...

Go to advanced search