Title: Please suggest some C formulas for a planar Z graph Post by: ant123 on April 03, 2011, 09:13:39 PM Hi :D, I have a game engine graph where i can mathematically combine X and Y to generate new data for the Z axis, in other words making elevation data and fractals. For example i can tell the program z=sin(x*20)*sin(y*20), and it will render map of sine bumps. So i am programming some mountains and things as i code trigonometry ok, but i have little idea how to code C and no idea how to do fractal maths. :embarrass: could anyone please walk me through some fractal formulas, to copy areas of a graph on top of each other in iterations, or if i can put some mandelbox/fun fractal/procedural shapes onto the maps, going from the limitaion that i can only do warped plane maths where: x=0 to 1 y=0 t0 1 Z= maths made with x and y here are some pics: Thanks! |