Revision 7054bb1d
Added by Leszek Koltunski almost 6 years ago
src/main/java/org/distorted/examples/effects3d/Effects3DEffect.java | ||
---|---|---|
344 | 344 |
|
345 | 345 |
private void setCenterText() |
346 | 346 |
{ |
347 |
int f0 = (int)mCenterSta.get1();
|
|
348 |
int f1 = (int)mCenterSta.get2();
|
|
349 |
int f2 = (int)mCenterSta.get3();
|
|
347 |
float f0 = ((int)(mCenterSta.get1()*100))/100.0f;
|
|
348 |
float f1 = ((int)(mCenterSta.get2()*100))/100.0f;
|
|
349 |
float f2 = ((int)(mCenterSta.get3()*100))/100.0f;
|
|
350 | 350 |
|
351 | 351 |
mTextCenter.setText("center ("+f0+","+f1+","+f2+")"); |
352 | 352 |
} |
... | ... | |
388 | 388 |
{ |
389 | 389 |
if( mRegionDimension==4 ) |
390 | 390 |
{ |
391 |
int f0 = (int) mRegion4Sta.get1();
|
|
392 |
int f1 = (int) mRegion4Sta.get2();
|
|
393 |
int f2 = (int) mRegion4Sta.get3();
|
|
394 |
int f3 = (int) mRegion4Sta.get4();
|
|
391 |
float f0 = ((int)(mRegion4Sta.get1()*100))/100.0f;
|
|
392 |
float f1 = ((int)(mRegion4Sta.get2()*100))/100.0f;
|
|
393 |
float f2 = ((int)(mRegion4Sta.get3()*100))/100.0f;
|
|
394 |
float f3 = ((int)(mRegion4Sta.get4()*100))/100.0f;
|
|
395 | 395 |
|
396 | 396 |
mTextRegion.setText("region (" + f0 + "," + f1 + "," + f2 + "," + f3 + ")"); |
397 | 397 |
} |
398 | 398 |
|
399 | 399 |
if( mRegionDimension==3 ) |
400 | 400 |
{ |
401 |
int f0 = (int) mRegion3Sta.get1();
|
|
402 |
int f1 = (int) mRegion3Sta.get2();
|
|
403 |
int f2 = (int) mRegion3Sta.get3();
|
|
401 |
float f0 = ((int)(mRegion4Sta.get1()*100))/100.0f;
|
|
402 |
float f1 = ((int)(mRegion4Sta.get2()*100))/100.0f;
|
|
403 |
float f2 = ((int)(mRegion4Sta.get3()*100))/100.0f;
|
|
404 | 404 |
|
405 | 405 |
mTextRegion.setText("region (" + f0 + "," + f1 + "," + f2 + ")"); |
406 | 406 |
} |
Also available in: Unified diff
Fixes for some stuff discovered while making the Distort effect fully 3D:
- make MeshSphere's normal lengths be 1 (used to be 0.5)
- make the Effect3D app display precise values of the Center and Region vars.