-
3D Landscape
Hi :),
I am trying to implement the code here:
3D Graphic Java: Render fractal landscapes - JavaWorld
in another language.
Ive set the initial roughness = 0.95 and initial LOD = 10
At each level of the diamond-square algorithm the roughness is recalculated to rough=rough*roughness
But the result looks nothing like a landscape. It has little pertubations throughout but no macroscopic features.
Zoomed out image:
http://img517.imageshack.us/img517/8379/95166269.jpg
How can I fix it so that the code creates landscapes with hills and plataus?
Thank you for your help.
-
Re: 3D Landscape
Are we allowed to bump threads?
-
Re: 3D Landscape
without your code there's not much we can do. Also, since you said that you're trying to implement this in another language, you might be better off posting your question on a forum specifically dealing with the language you are using.
-
Re: 3D Landscape
Hi. Thanks for replying. The code is >>At this link<<
Unfortunately Ive no luck at other forums. I thought because the code I wrote and the one at the link ( the one i copied) is identical - people on java forum could help me as the output should be the same.
-
Re: 3D Landscape
-
Re: 3D Landscape
Well, I'm assuming the code used by the tutorial is working correctly (obviously there could be some problems, but JavaWorld is usually a good source of reliable information). There's always that slight probability you copied some portion incorrectly.
Try downloading the source code they used (Zipped source code) and running it in Java to make sure their code isn't the one that's broken.
-
I keep forgetting that this forum doesnt allow cross posting with the other one. Im pretty sure the code has been copied correctly. I will try out the java version.
The java version works fine.
Could the values be getting overwritten as diffreent levels of diamond sqaure algorithm are being run?
they dont seem to be - juts checked the values
nvm - ive given up on this
-
Re: 3D Landscape
As far as I know, the rules for this forum are that you can't re-post your question somewhere else on our forum (ex. posting in the same topic in what's wrong with my code and questions about java). Asking your question you've posted on other forums is perfectly ok by me (please check the rules of the other forums you posted your question on, they might have different rules).
Also, instead of posting multiple replies a simple edit of your post with short changes like those would make reading through the topic much easier.