Qbasicnews.com

Full Version: GET in a 3d array
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
ok i need to use the function GET to populate an array the only problem is it is a 3d array

i have something drew on the screen lets say its this
Code:
line (1,1)-(32,18),10,bf

in need to get it into my 3d array called map
map is map(34,32,18 )

so i need to do something like
Code:
get (1,1)-(32,18), map(1 ... ' i dont know what to do from here

so i want whats on the screen to be in the map(1 part of the array can anyone tell me how to do this
Is that even possible? :o

I tryied doing that with a 2D array (matrix) but with no luck.... Cry Sorry. It didn't like something I was doing.
with a 2d array all you do is
Code:
get (1,1)-(32,18), map
and map(32,18 ) would be your 2d array
Ok...I has to be 32, 18 right?
cause on a 1D array You multiple the 32*18 then /2 +1 to get the size....hmmm...
Quote:Ok...I has to be 32, 18 right?
cause on a 1D array You multiple the 32*18 then /2 +1 to get the size....hmmm...

1D?!?! Do not you know the terms... there is 2D, Two axis:

[syntax="2D"]
^
|
1
|
|
--------2->[/syntax]

And 3D, Three axis:

[syntax="3D"]
^
|
1
|
|
--------2->
\
\
\
3[/syntax]

There is no 1D array.... As for the question, If you draw a 3D object on the screen, you can GET it normaly by the area it takes on the screen, but it transfers the info to a solid 2D object..

See, all 3D object done in QB are actuly 2D,. all of that trig positions the 2D ellements as tho they are 3D.. well all 3D in games is really 2D, it all goes thru trig algos to give it that 3D edge... :wink:

So, you can GET the 2D part you see that looks like its 3D, but its just like a photo, stuck in that position.. Smile
Ummm Rattra: a 1D array is a line? a 2D is a table/Matricy, a 3D is a cube like table....

[syntax="1D"]
<----------------1-
[/syntax]

I know first hand the difficles of 3D objects in QB....
A 1D array: (1); a 2D array: (1,1); a 3D array: (1,1,1); a 4D array: (1,1,1,1). Those ARE the terms.

Now for GET, he was talking about getting a 3D object and storing it in a 3D array?!?!?!? wow how did I miss that..... :roll:
Um, 4D is time.
0D is... non-existance.

Nemesis
Technically 0D is just a dot... but in BASIC it's nonexistant.
1D = Line
2D = Square
3D = Cube
Technically 4D is time... but in BASIC it's a(1,2,3,4)


5D is some weird thing that you can't visualize..... Isn't it supposed to be a mobius strip?



oh something... i'm tired...
5D is being able to move across great distances in a short time.

Its also the name of an old band. :wink:

Tiger....0D is NOT a dot. A dot is 2D.

0D is technically a point which has no dimensions.
Pages: 1 2