Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
GET in a 3d array
#11
Smile 1D?? a line, um, the line you posted is on the X axis, which only works with the Y axis, (e.i. your line is from (4, 0) to (4, 20), there is a Y in there, 2D!!!)

Z can be left optional in GFX graphing (e.i. (4, 0, 0) to (4, 20, 0) but since z is not used, it can be removed)... so realy in GFX terms, there is only 2D and 3D... :wink:

So, X,Y or X, Y, Z <- thats 1,2 (2D) or 1, 2, 3 (3D)... those are diminsions in gfx terms,. other than that you have Multidimintion arrays for tables of text, not GFX,..

Uggh, *Throws up hands and walks off* :rotfl: :wink:
Kevin (x.t.r.GRAPHICS)

[Image: 11895-r.png]
Reply
#12
[quote="Mitth'raw'nuruodo"Tiger....0D is NOT a dot. A dot is 2D.

0D is technically a point which has no dimensions.[/quote]
Yeah I know but the word "point" didn't come to mind...
[Image: sig.php]
Back by popular demand!
I will byte and nibble you bit by bit until nothing remains but crumbs.
Reply
#13
Rattra:
Hey get back here!
You can't use the 2D coordinate system for a line which has no 2nd dimension!

A coordinate in the 1D system would be (0) or (5). There is no Y axis either! Only X! :x

Tiger:
I know. I was just kidding you. :lol:

This is all confusing.
We are talking about 3 different types of dimensions!
1. MultiDimensioned arrays
2. GFX dimensioned Arrays
3. Physical Dimensions (ie. length, width, height, time)

Ha. :lol:
i]"But...it was so beautifully done"[/i]
Reply
#14
Lets go algabra then...

Your saying:

x = 3

but, you can plot a Y any where on the line as long as its X matches the x of the line... close to your slopes:

y = 3x + 1

Except your y accends at a angle of every 3up over 1 slope..
Really little difference, so still classified as 2D in what I've seen.. :wink:
Kevin (x.t.r.GRAPHICS)

[Image: 11895-r.png]
Reply
#15
just out of curiousity, why the hell would you use a 2d array for an image?
It's really stupid
if you want to be able to isolate a single pixel, that won't work.
if you want something like that do this:

[syntax="qbasic"]DECLARE SUB GetPX(x AS INTEGER, y AS INTEGER, Array() AS INTEGER)

OPTION BASE 1 '' Default low boundary of array = 1

SCREEN 12

DIM Pic(5, 5) '5x5 image
'draw 5x5 image
FOR a% = 1 TO 5
FOR b% = 1 TO 5
PSET(a%, b%), INT(RND * 15) + 1
NEXT b%, a%


GetPX(1, 1, Pic())

PRINT Pic(3, 5) '' Displays the colour used at (3, 5) of image

SYSTEM

SUB GetPX(x AS INTEGER, y AS INTEGER, Array() AS INTEGER)

FOR i% = x TO UBOUND(Array, 1)
FOR ii% = y TO UBOUND(Array, 2)
Array(i% - x, ii% - y) = POINT(i%, ii%)
NEXT ii%, i%

END SUB[/syntax]

Oz~
Reply
#16
Ok, Rattra....what if you had a 2D image and you need to layer it up 3 levels...its still a 2D image but your adding a z coordinate to it.

Does that make it a 3D image?
What about making a 3D image on a 2D plane does it then become a 2D image? Is a cube a 2D object?

Same thing here. Tongue
i]"But...it was so beautifully done"[/i]
Reply
#17
Smile Yes, 3D on a 2D plane is just 2D, in the case of programing, the trig functions place the cords in a way that the 2D image looks 3D, therfor we call it 3D... Smile
Kevin (x.t.r.GRAPHICS)

[Image: 11895-r.png]
Reply
#18
look, TECHNICALLY all gfx in qb in screen 13 are 1d... the entire area of memory is just a linear string of bytes, so (0) would translate into a pixel at 0,0 and (333) would translate into a pixel at 1,34


think about That o.o
Reply
#19
:o Game, Set, Match :lol:
i]"But...it was so beautifully done"[/i]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)