Need Help with VB Program Implementation | Troubleshooting Tips Included

  • Thread starter Thread starter quddusaliquddus
  • Start date Start date
  • Tags Tags
    Program
Click For Summary
SUMMARY

The discussion centers on troubleshooting a Visual Basic (VB) implementation of a terrain generation algorithm based on the Diamond-Square method. The original Java program functions correctly, but the VB version lacks macroscopic features such as hills and plateaus. The user has experimented with the rough variable values between 0.1 and 0.99999 without achieving the desired results, leading to speculation about potential overwriting of values during different algorithm levels. The user also references their past experience with similar algorithms, indicating familiarity with fractal terrain generation.

PREREQUISITES
  • Understanding of the Diamond-Square algorithm for terrain generation
  • Proficiency in Visual Basic programming
  • Familiarity with fractal mathematics and terrain rendering techniques
  • Knowledge of debugging techniques in software development
NEXT STEPS
  • Research the Diamond-Square algorithm implementation in Visual Basic
  • Explore terrain generation techniques using fractals in VB
  • Learn about debugging strategies specific to Visual Basic applications
  • Investigate the impact of variable scope and overwriting in programming
USEFUL FOR

Software developers, particularly those working with Visual Basic, game developers interested in terrain generation, and programmers looking to understand fractal algorithms.

quddusaliquddus
Messages
353
Reaction score
3
Hi :),
I am trying desperately to make this program work. The original program:

http://www.javaworld.com/javaworld/jw-08-1998/jw-08-step.html?page=2

works fine. When I tried to implement it in VB the whole thing works except there are no macroscopic features - as you can see its just rough between between points but there are no hills, plataus etc ...

Your help is appreciated. Thank you.

My VB code is here : http://freetexthost.com/cw0w53qqln"

This is what i get (zoomed-out image):

http://img517.imageshack.us/img517/8379/95166269.jpg

Ive tried changing the value of the rough variable - everything between 0.1 to 0.99999 without success.
 
Last edited by a moderator:
Technology news on Phys.org
Could the values be getting overwritten as diffreent levels of diamond sqaure algorithm are being run?
 
Just checked the values - they don't seem to be getting overwritten once set.
 
lol, I was playing with similar algorithms back in early nineties. Some snippets of my Pascal voxel code are still on the net. Part of the code was a plasma implementation - seems like that's the base of the code here as well.

Hm, seems like plasma is called "FractalTerrain" these days...
 
lol ... what did they used to call a green mop on a head in those days? Just kiddin :)