Guys, I created a variable that receives a value perlin noise, the code and that: Code (CSharp): float Wave = PlanetFactor*Mathf.PerlinNoise(X+PlanetSeed/Mathf.Sqrt(X),Y+PlanetSeed/Mathf.Sqrt(Z)+Y); int WaveInt = Mathf.FloorToInt(Wave); And the mysterious error I get and this: Code (CSharp): "NullReferenceException: Object reference not set to an instance of an object (wrapper unknown) uint16:PtrToStructure (intptr,object)" And this: "NullReferenceException: Object reference not set to an instance of an object (wrapper unknown) uint16:PtrToStructure (intptr,object)" Can anyone tell me how can I fix it? Sorry for the emoticon, text interpreter site detected a smiley where the error was one : P
The PlanetSeed and Planet Factor are used only to multiply the perlin noise (I have not mastered well), the problem is that whenever I put factor in more than 1.5, it's this error.[/QUOTE]