Posts: 32
Threads: 9
Joined: Oct 2004
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
ever wish for anything because if you have a wish in one hand and shit in the other what do you have?
Posts: 503
Threads: 31
Joined: Feb 2005
Is that even possible? :o
I tryied doing that with a 2D array (matrix) but with no luck....
Sorry. It didn't like something I was doing.
i]"But...it was so beautifully done"[/i]
Posts: 32
Threads: 9
Joined: Oct 2004
with a 2d array all you do is
Code:
get (1,1)-(32,18), map
and map(32,18 ) would be your 2d array
ever wish for anything because if you have a wish in one hand and shit in the other what do you have?
Posts: 503
Threads: 31
Joined: Feb 2005
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...
i]"But...it was so beautifully done"[/i]
Posts: 2,404
Threads: 153
Joined: Jan 2005
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..
Kevin (
x.t.r.GRAPHICS)
Posts: 503
Threads: 31
Joined: Feb 2005
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:
i]"But...it was so beautifully done"[/i]
Posts: 677
Threads: 57
Joined: Jan 2005
Um, 4D is time.
url=http://www.sloganizer.net/en/]
[/url]
Posts: 116
Threads: 5
Joined: Jul 2004
0D is... non-existance.
Nemesis
Posts: 2,765
Threads: 138
Joined: Nov 2002
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...
Back by popular demand!
I will byte and nibble you bit by bit until nothing remains but crumbs.
Posts: 503
Threads: 31
Joined: Feb 2005
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.
i]"But...it was so beautifully done"[/i]