Revision f953bee0
Added by Leszek Koltunski about 4 years ago
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: |
Also available in: Unified diff
Making the Dialogs more consistent.