Project

General

Profile

« Previous | Next » 

Revision 9e7b6dbd

Added by Leszek Koltunski over 5 years ago

Redefine the Vertex Region from (x,y,r,unused) to (x,y,z,r). This takes into account the 'Z', which makes it possible to warp only one side of a 3D Mesh like Sphere.

Also corresponding changes in applications.

View differences:

src/main/java/org/distorted/examples/monalisa/MonaLisaRenderer.java
63 63
      Static3D pLeft = new Static3D( 90, 258, 0);
64 64
      Static3D pRight= new Static3D(176, 255, 0);
65 65

  
66
      Static4D rLeft = new Static4D(-10,-10,25,25);
67
      Static4D rRight= new Static4D( 10, -5,25,25);
66
      Static4D rLeft = new Static4D(-10,-10, 0,25);
67
      Static4D rRight= new Static4D( 10, -5, 0,25);
68 68
      Dynamic3D dLeft = new Dynamic3D(1000,0.0f);
69 69
      Dynamic3D dRight= new Dynamic3D(1000,0.0f);
70 70
      dLeft.add ( new Static3D(  0,  0,0) );

Also available in: Unified diff