Project

General

Profile

« Previous | Next » 

Revision f953bee0

Added by Leszek Koltunski about 4 years ago

Making the Dialogs more consistent.

View differences:

src/main/java/org/distorted/library/effect/VertexEffectWave.java
90 90
//
91 91
// and then obviously the normal N is given by N= SX x SY .
92 92
//
93
// We still need to remember the note from the distort function about adding up normals:
93
// We still need to remember the note from the distort function dialog_about adding up normals:
94 94
// we first need to 'normalize' the normals to make their third components equal, and then we
95 95
// simply add up the first and the second component while leaving the third unchanged.
96 96
//
......
101 101
//    - includes vector V
102 102
//    - crosses plane XY along line parallel to X axis
103 103
// c) apply the 2D analogon and notice that the tangent vector to the curve that is the common part of P
104
//    and our surface (I am talking about the tangent vector which belongs to P) is given by
104
//    and our surface (I am talking dialog_about the tangent vector which belongs to P) is given by
105 105
//    (1+cosX*fx,0,sinX*fx) rotated by angle (90-|Y|) (where angles X,Y are defined above) along vector (1,0,0).
106 106
//
107 107
//    Matrix of rotation:
src/main/java/org/distorted/library/effectqueue/EffectQueueMatrix.java
76 76
    }
77 77

  
78 78
///////////////////////////////////////////////////////////////////////////////////////////////////
79
// return a float which describes how much larger an object must be so that it appears to be (about)
79
// return a float which describes how much larger an object must be so that it appears to be (dialog_about)
80 80
// 'marginInPixels' pixels larger in each direction. Used in Postprocessing.
81 81

  
82 82
  float magnify(float[] projection, int width, int height, float mipmap, float halfX, float halfY, float halfZ, float marginInPixels)
src/main/java/org/distorted/library/main/DistortedLibrary.java
46 46

  
47 47
///////////////////////////////////////////////////////////////////////////////////////////////////
48 48
/**
49
 * A singleton class used to control various global settings.
49
 * A singleton class used to control various global dialog_settings.
50 50
 */
51 51
public class DistortedLibrary
52 52
  {
......
575 575
      }
576 576

  
577 577
    // reading the value of the buffer on every frame would slow down rendering by
578
    // about 3%; doing it only once every 5 frames affects speed by less than 1%.
578
    // dialog_about 3%; doing it only once every 5 frames affects speed by less than 1%.
579 579
    if( mCurrBuffer==0 )
580 580
      {
581 581
      GLES31.glBindBufferBase(GLES31.GL_ATOMIC_COUNTER_BUFFER, 0, mAtomicCounter[mCurrBuffer]);
src/main/java/org/distorted/library/main/DistortedNode.java
365 365
   *
366 366
   * @param oit True if we want to render more slowly, but in a way which accounts for transparency.
367 367
   * @param initialSize Initial number of transparent fragments we expect, in screenfulls.
368
   *                    I.e '1.0' means 'the scene we are going to render contains about 1 screen
368
   *                    I.e '1.0' means 'the scene we are going to render contains dialog_about 1 screen
369 369
   *                    worth of transparent fragments'. Valid values: 0.0 < initialSize < 10.0
370 370
   *                    Even if you get this wrong, the library will detect that there are more
371 371
   *                    transparent fragments than it has space for and readjust its internal buffers,
src/main/java/org/distorted/library/main/InternalOutputSurface.java
831 831
 *
832 832
 * @param oit True if we want to render more slowly, but in a way which accounts for transparency.
833 833
 * @param initialSize Initial number of transparent fragments we expect, in screenfuls.
834
 *                    I.e '1.0' means 'the scene we are going to render contains about 1 screen
834
 *                    I.e '1.0' means 'the scene we are going to render contains dialog_about 1 screen
835 835
 *                    worth of transparent fragments'. Valid values: 0.0 < initialSize < 10.0
836 836
 *                    Even if you get this wrong, the library will detect that there are more
837 837
 *                    transparent fragments than it has space for and readjust its internal buffers,
src/main/java/org/distorted/library/mesh/MeshSphere.java
197 197
    attribs[VERT_ATTRIBS*currentVert + NOR_ATTRIB  ] = 2*x;//  the vertex coords, normal vector, and
198 198
    attribs[VERT_ATTRIBS*currentVert + NOR_ATTRIB+1] = 2*y;//  inflate vector have identical (x,y,z).
199 199
    attribs[VERT_ATTRIBS*currentVert + NOR_ATTRIB+2] = 2*z;//
200
                                                           //  TODO: think about some more efficient
200
                                                           //  TODO: think dialog_about some more efficient
201 201
    attribs[VERT_ATTRIBS*currentVert + INF_ATTRIB  ] = x;  //  representation.
202 202
    attribs[VERT_ATTRIBS*currentVert + INF_ATTRIB+1] = y;  //
203 203
    attribs[VERT_ATTRIBS*currentVert + INF_ATTRIB+2] = z;  //

Also available in: Unified diff