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/WindEffectsManager.java
28 28
import org.distorted.library.main.DistortedEffects;
29 29
import org.distorted.library.type.Dynamic;
30 30
import org.distorted.library.type.Dynamic5D;
31
import org.distorted.library.type.Static1D;
31 32
import org.distorted.library.type.Static3D;
32 33
import org.distorted.library.type.Static4D;
33 34
import org.distorted.library.type.Static5D;
......
114 115
    effects.apply( new MatrixEffectScale(scaleFactor) );
115 116
    effects.apply( new MatrixEffectShear(shearFactor,midLeft) );
116 117

  
117
    effects.apply( new VertexEffectDeform(deformForce,midRight) );
118
    effects.apply( new VertexEffectDeform(deformForce, new Static1D(mWidth/2), midRight) );
118 119
    effects.apply( new VertexEffectWave(windDynamic1, midRight, windRegion) );
119 120
    effects.apply( new VertexEffectWave(windDynamic2, midRight, windRegion) );
120 121
    effects.apply( new VertexEffectWave(windDynamic3, midRight, windRegion) );

Also available in: Unified diff