Project

General

Profile

« Previous | Next » 

Revision 0f10a0b6

Added by Leszek Koltunski about 4 years ago

A lot of changes.

1) main vertex shader: remove support for degree_object. This functionality will hopefully come back when we introduce other than circular regions.
2) MeshBase: remove the need to set a Bounding box (this is the point of the whole thing - we wanted to get rid of this so that the advances in MeshJoined will be easier)
3) Set ground for removing the MeshBase.setStretch / getStretch (another thing needed to advance MeshJoined )
4) since we removed the Bounding box, we need to change the DEFORN effect to have 1 additional parameter, the 'radius' which takes over the function of the bounding box in the vertex shader.
5) since the'res no bounding box, simplify the postprocessing Halo (remove EffectQueueMatrix.magnify() )
6) adjust applications.

After this we will hopefully be ready to introduce MeshBase.preApply(VertexEffect), i.e. bending several simple Meshes with any VertexEffect - including the freshly-introduced PseudoMatrix-Vertex effects like VertexEffectScale - and then combining them into one MeshJoined.

View differences:

src/main/java/org/distorted/library/mesh/MeshJoined.java
31 31
 */
32 32
  public MeshJoined(MeshBase[] meshes)
33 33
    {
34
    super(1,1,1);
34
    super();
35 35
    join(meshes);
36 36
    }
37 37

  
38
///////////////////////////////////////////////////////////////////////////////////////////////////
39
/**
40
 * Sets the lengths of the bounding box.
41
 * <p>
42
 * The 'bounding box' is an imaginary rectanguloid of size (bx,by,bz) inside of which this Mesh
43
 * fits tightly.
44
 * 'Normal' 3D meshes (e.g. Sphere) have this equal to 1,1,1. 'Normal' flat meshes (e.g. Quad) -
45
 * to 1,1,0. Here however we are joining several, probably already changed by MatrixEffects,
46
 * Meshes together. If the result fits into the standard 1,1,1 (recommended!) - we don't need to
47
 * call this function at all.
48
 *
49
 * @param bx x-length of the bounding box
50
 * @param by y-length of the bounding box
51
 * @param bz z-length of the bounding box
52
 */
53
   public void setBounding(float bx, float by, float bz)
54
     {
55
     super.setBounding(bx,by,bz);
56
     }
57

  
58 38
///////////////////////////////////////////////////////////////////////////////////////////////////
59 39
/**
60 40
 * Return how many basic Meshes is this Mesh joined from.

Also available in: Unified diff