Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 8 of 8

Thread: 3D Landscape

  1. #1
    Junior Member
    Join Date
    Jun 2009
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

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



    How can I fix it so that the code creates landscapes with hills and plataus?

    Thank you for your help.


  2. #2
    Junior Member
    Join Date
    Jun 2009
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: 3D Landscape

    Are we allowed to bump threads?

  3. #3
    Super Moderator helloworld922's Avatar
    Join Date
    Jun 2009
    Posts
    2,895
    Thanks
    23
    Thanked 619 Times in 561 Posts
    Blog Entries
    18

    Default 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.

  4. #4
    Junior Member
    Join Date
    Jun 2009
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default 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.

  5. #5
    Member Darryl.Burke's Avatar
    Join Date
    Mar 2010
    Location
    Madgaon, Goa, India
    Posts
    494
    Thanks
    8
    Thanked 48 Times in 46 Posts

    Default Re: 3D Landscape


  6. #6
    Super Moderator helloworld922's Avatar
    Join Date
    Jun 2009
    Posts
    2,895
    Thanks
    23
    Thanked 619 Times in 561 Posts
    Blog Entries
    18

    Default 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.

  7. #7
    Junior Member
    Join Date
    Jun 2009
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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
    Last edited by helloworld922; March 20th, 2010 at 06:10 PM.

  8. #8
    Super Moderator helloworld922's Avatar
    Join Date
    Jun 2009
    Posts
    2,895
    Thanks
    23
    Thanked 619 Times in 561 Posts
    Blog Entries
    18

    Default 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.

Similar Threads

  1. Help with a program to make a landscape picture
    By noseeds in forum Java Theory & Questions
    Replies: 1
    Last Post: December 15th, 2009, 10:25 PM