Search:

Type: Posts; User: shadysback

Search: Search took 0.12 seconds.

  1. Replies
    15
    Views
    1,608

    Re: Three dimensional array in Java Help

    After much tweaking and deliberation, i managed to fix it. Both of you were right! The indices were indeed coordinates. The value held at each index location represented the colour of the pixel....
  2. Replies
    15
    Views
    1,608

    Re: Three dimensional array in Java Help

    Hi,

    That bit i understand. What i dont understand is getting seperate x and y values since i need them in JOGL to plot this pixel.
    For instance

    data[1][0][5]
    data[1][1][5]
    data[1][2][5]
    ...
  3. Replies
    15
    Views
    1,608

    Re: Three dimensional array in Java Help

    I am using it to draw an represent a 3-D image. so i will plot each pixel manually using the data in the array.

    Another use of the the scalar data contained in each position will be to use it to...
  4. Replies
    15
    Views
    1,608

    Re: Three dimensional array in Java Help

    The data is loaded into an int[][][] array by an external .jar library whose source i do not have so i cannot do any other way but this.

    To correct you each position only holds one scalar value....
  5. Replies
    15
    Views
    1,608

    Re: Three dimensional array in Java Help

    Hi Chris, I need to hold data about a 3D image. So needs to hold x,y,z positions about each pixel.
  6. Replies
    15
    Views
    1,608

    Three dimensional array in Java Help

    I am working with datasets that contain x,y,z coordinates for each position (size = 40,40,40 for this instance).
    My understanding is that java treats arrays differently to other languages like c...
Results 1 to 6 of 6