You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The reason the Gaussian wavelength cannot be adjusted is because of the following code found in the ProceduralGrid2 script:
if (play)
{
// loops through the list of functions
if (funcVR < 6)
{
sec += speedOfWave;
// set vertex offset - because we don't have a permanent size
for (int v = 0; v < gridSize * gridSize; v++)
{
// here the wavelength is used to calculate the vertices y coordinate
vertices[v].y = amplitude * f(vertices[v].x / wavelength, vertices[v].z / wavelength, frequency * sec);
}
}
else
for (int v = 0; v < gridSize * gridSize; v++)
// here wavelength is not used
vertices[v].y = amplitude * yVals[yPresent, v];
zeroFDedges(); // Let's kill off the edges, to give a hard reflecting boundary for the waves
oneFDstep();
}
All the waves with funcVR < 6, which are all the waves except for Gaussian, have their vertices calculated using the wavelength variable. However, for some reason the Guassian vertices cannot be calculated using the wavelength variable. Will look into this!
The text was updated successfully, but these errors were encountered: