Logo by Timeroot - Contribute your own Logo!

END OF AN ERA, FRACTALFORUMS.COM IS CONTINUED ON FRACTALFORUMS.ORG

it was a great time but no longer maintainable by c.Kleinhuis contact him for any data retrieval,
thanks and see you perhaps in 10 years again

this forum will stay online for reference
News: Visit us on facebook
 
*
Welcome, Guest. Please login or register. November 20, 2025, 10:26:34 AM


Login with username, password and session length


The All New FractalForums is now in Public Beta Testing! Visit FractalForums.org and check it out!


Pages: [1]   Go Down
  Print  
Share this topic on DiggShare this topic on FacebookShare this topic on GoogleShare this topic on RedditShare this topic on StumbleUponShare this topic on Twitter
Author Topic: Please suggest some C formulas for a planar Z graph  (Read 1416 times)
0 Members and 1 Guest are viewing this topic.
ant123
Guest
« on: April 03, 2011, 09:13:39 PM »

Hi cheesy,

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!



* funny.jpg (75.32 KB, 1002x639 - viewed 328 times.)

* pointy 1.jpg (51.79 KB, 1013x765 - viewed 320 times.)

* cool sqr hires.jpg (102.49 KB, 1016x767 - viewed 297 times.)

* craters and lotr hills.jpg (45.77 KB, 1000x761 - viewed 293 times.)
« Last Edit: April 03, 2011, 10:43:38 PM by ant123 » Logged
Pages: [1]   Go Down
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
Suggest video codec? Movies Showcase (Rate My Movie) makc 1 1954 Last post February 08, 2010, 02:39:09 AM
by Saquedon
collatz conjecture graph in processing General Discussion ker2x 6 3489 Last post October 08, 2010, 10:31:20 AM
by jehovajah
an easy quizz. what is this graph ? (new) Theories & Research ker2x 0 348 Last post February 22, 2012, 02:15:12 PM
by ker2x
database dependency graph Fractal Humor willvarfar 2 1673 Last post July 16, 2012, 12:56:06 AM
by cKleinhuis
Please suggest a Formula to texture 3D worlds? Programming Mrz00m 11 1900 Last post November 09, 2013, 09:30:54 AM
by JohnVV

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM
Page created in 0.382 seconds with 22 queries. (Pretty URLs adds 0.015s, 2q)