Jump to content

SVG: Mountains generation


Alikrus
 Share

Recommended Posts

Hello! :) I did google lot of times (few years) informations about simple algorithm by IBM for mountains building by triangles division, which i see in book of 1985 year. But, although this process is popular, i can't finding any listing for this! :) But why? :) Few hours ago i rich to my goal and my algorithm can working, but with bug. :)Last version: http[colon]//code[dot]google[dot]com/p/softrash/Thanks!

Edited by Alikrus
Link to comment
Share on other sites

What bug exactly?The only thing I see at first sight is that you're having an inner SVG.... is that intended? I think you should be able to write the SVG without an inner one.

Link to comment
Share on other sites

What bug exactly?The only thing I see at first sight is that you're having an inner SVG.... is that intended? I think you should be able to write the SVG without an inner one.
Sorry, but i started to svg-learning & scripting few weeks ago.Svg tag in svg - because it is an example from web-tutorial with sine graphic! I did simple removed all sine draw cycle and wrote my algorithm for triangles. I did modify only inside process and outside tags don't touched. :) And this algorithm is too primitive with many Arrays creation. But it is can realized with simple Array-matrix. But i can't doing this in this time... :)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...