Weird graphical bugs on procedural mesh :/

Community Forums/General Help/Weird graphical bugs on procedural mesh :/

neoshaman(Posted 2016) [#1]
I'm programming the base of a terrain engine but the code is having some inexplicable bugs I don't understand:

here is the main body



I'm doing nothing fancy but the first bug is that the sphere tt seems to be parented to the procedural plane (declared AFTER it) for no good reason at all. He has the same coordinate than the sphere declared above yet it's not at the same place :/ wat?

Now the plane is procedurally generated using this included function:


Nothing fancy, but worse I made a prototype of the same code without function and it has worked flawlsessly until now. I'm totally at loss because now the final corner is folded on it's back with the first vertices :/

https://www.dropbox.com/s/sg5tx6afmkcon7i/Capture%20d%27%C3%A9cran%202016-11-24%2022.27.08.png?dl=1




grable(Posted 2016) [#2]
makePlane has a -1 on Y when calculating the total size, which is probably a mistake.

And there looks to be a typo when your positioning the procedural plane, using "center" instead of "plan".


neoshaman(Posted 2016) [#3]
Wow that was fast ... Thanks it is solved!

Yep :/ how did I miss that for 3 days straight I don't know, I'm ashamed of myself


RustyKristi(Posted 2016) [#4]
Yep :/ how did I miss that for 3 days straight I don't know, I'm ashamed of myself


Don't sweat it neoshaman, nobody is perfect.. :-)