Project

General

Profile

« Previous | Next » 

Revision 513b2e9c

Added by Leszek Koltunski almost 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/examples/wind/WindRenderer.java
49 49

  
50 50
class WindRenderer implements GLSurfaceView.Renderer
51 51
{
52
   private static final int X = 50;
53
   private static final int Y = 30;
54
   private static final int Z =  1;
55

  
52 56
   private GLSurfaceView mView;
53 57
   private DistortedTexture mTexture;
54 58
   private DistortedScreen mScreen;
......
63 67
      { 
64 68
      mView = view;
65 69

  
66
      MeshCubes cubes = new MeshCubes(50,30,1);
70
      MeshCubes cubes = new MeshCubes(X,Y,Z);
67 71
      DistortedEffects effects = new DistortedEffects();
68
      cubes.setStretch(50,30,1);
72
      cubes.setStretch(X,Y,Z);
69 73

  
70 74
      mTexture = new DistortedTexture();
71
      mManager = new WindEffectsManager(50,30);
75
      mManager = new WindEffectsManager(X,Y);
72 76
      mGust    = new WindGust();
73 77
      mScreen  = new DistortedScreen();
74 78

  

Also available in: Unified diff