Need Help with VB Program Implementation | Troubleshooting Tips Included

  • Thread starter Thread starter quddusaliquddus
  • Start date Start date
  • Tags Tags
    Program
AI Thread Summary
The discussion revolves around the challenges of implementing a terrain generation program originally designed in Java into Visual Basic (VB). The user reports that while the basic functionality works, the output lacks macroscopic features such as hills and plateaus, resulting in a rough appearance between points. They have experimented with the rough variable values but have not achieved the desired terrain detail. Concerns are raised about potential overwriting of values during the execution of the diamond-square algorithm, although the user confirms that values do not appear to be overwritten. The conversation also touches on nostalgia for earlier programming experiences and terminology related to terrain generation, particularly referencing plasma algorithms and their evolution into what is now known as Fractal Terrain.
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 :)
 
Dear Peeps I have posted a few questions about programing on this sectio of the PF forum. I want to ask you veterans how you folks learn program in assembly and about computer architecture for the x86 family. In addition to finish learning C, I am also reading the book From bits to Gates to C and Beyond. In the book, it uses the mini LC3 assembly language. I also have books on assembly programming and computer architecture. The few famous ones i have are Computer Organization and...
hi; i purchased 3 of these, AZDelivery 3 x AZ-MEGA2560-Board Bundle with Prototype Shield and each is reporting the error message below. I have triple checked every aspect of the set up and all seems in order, cable devices port, board reburn bootloader et al . I have substituted an arduino uno and it works fine; could you help please Thanks Martyn 'avrdude: ser_open(): can't set com-state for "\\.\COM3"avrdude: ser_drain(): read error: The handle is invalid.avrdude: ser_send(): write...
Back
Top