Drawing a line from each x to each y and z in a 3D environment (x,y,z drawn from a .csv file)

2»

Answers

  • this can also avoid clipping if you call avoidClipping() :

    void avoidClipping() {
      // avoid clipping : 
      // https : // 
      // forum.processing.org/two/discussion/4128/quick-q-how-close-is-too-close-why-when-do-3d-objects-disappear
      perspective(PI/3.0, (float) width/height, 1, 1000000);
    }
    
  • Thanks so much, I didn't realize what this fixed till it zoomed in!

    Actually @koogs, I have thought about putting it at center but these values has a significance as they were generated by a classification algorithm [t-SNE] so I decided to be faithful even if they are a bit leaning on one end in x,y,z. Only operation I did was to un-normalize it as the inital values are all between 0 and 1.

    Also I just rotated cause I don't know how to write an automated camera action with peasycam - this works fine as I render it anyway!

Sign In or Register to comment.