Need Help with VB Program Implementation | Troubleshooting Tips Included

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

Discussion Overview

The discussion revolves around troubleshooting a Visual Basic (VB) implementation of a program originally designed in Java, specifically focusing on generating macroscopic features in terrain generation using the diamond-square algorithm. Participants are exploring issues related to the visual output of the program and the underlying algorithmic implementation.

Discussion Character

  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant reports that their VB implementation of a terrain generation program lacks macroscopic features like hills and plateaus, despite the original Java program functioning correctly.
  • Another participant questions whether the values used in the algorithm might be getting overwritten during the execution of different levels of the diamond-square algorithm.
  • A subsequent reply indicates that the values do not appear to be overwritten once set, suggesting that the issue may lie elsewhere.
  • A participant shares a personal anecdote about working with similar algorithms in the past, noting that the current implementation seems to be related to a plasma effect, which is now referred to as "FractalTerrain."
  • There is a light-hearted exchange regarding terminology used in the past, indicating a casual tone among participants.

Areas of Agreement / Disagreement

Participants do not appear to reach a consensus on the cause of the issue with the VB implementation, as there are differing viewpoints on whether value overwriting is a factor and what the underlying problem may be.

Contextual Notes

There may be limitations related to the assumptions made about the algorithm's implementation and the specific parameters used in the VB code, which have not been fully explored or resolved in the discussion.

Who May Find This Useful

Individuals interested in programming, particularly in VB and algorithm implementation for terrain generation, as well as those exploring historical programming techniques and their evolution.

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 :)