We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Pages: 1 2 
3d points/map (Read 2971 times)
Re: 3d points/map
Reply #15 - Sep 14th, 2009, 12:36pm
 
add this

float getColMax(int row){
 float colMax = -8000;
 float testNum;
 for (int i = 1; i < reader.getLastRowNum(); i++) {
   testNum = reader.getFloat(i, row);
   if (testNum > colMax){
     colMax = testNum;
   }
 }
 return colMax;
}

float getColMin(int row){
 float colMin = 8000;
 float testNum;
  for (int i = 1; i < reader.getLastRowNum(); i++) {
   testNum = reader.getFloat(i, row);
   if (testNum < colMin){
     colMin = testNum;
   }
 }
 return colMin;
}
Re: 3d points/map
Reply #16 - Sep 14th, 2009, 2:07pm
 
ok, another step, but now i get a nullpointer exception. i guess its because my xls file isnt right or formated different from yours.

anyway, i would try to do is calculate the distance between the camera and the points and set the strokeWeight corresponding to the dist
Re: 3d points/map
Reply #17 - Sep 14th, 2009, 3:01pm
 
thanks for the hint.  the only problem with this is, with many points, increasing strokeWeight tends to slow things down dramatically, and at some point (around 4), they begin looking like squares.

Re: 3d points/map
Reply #18 - Sep 14th, 2009, 3:22pm
 
thats true...
have you tested spheredetail? i guess reducing that, you can add up to 1000 spheres and still have a good framerate.
btw i dont think points having allt he same size is a bad thing in a point cloud, but I understand that you wanna have the ability to change it at least.
Pages: 1 2