Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7926805
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T18:57:10+00:00 2026-06-03T18:57:10+00:00

I read up on this article about Perlin Noise and have a few questions

  • 0

I read up on this article about Perlin Noise and have a few questions if anyone has the answers because I seem to be having some issues. In the pseudo code 2D section near the bottom, it shows he randomly generates numbers but instead of one variable as a parameter in the 1D code, he now uses an ‘x’ and a ‘y’. Is this required in 2 dimensional noise or no? Also, his PerlinNoise_2D Function takes 2 float parameters now instead of 1 like in the 1 dimensional example. What are these float values supposed to be and where do they come from because I cannot find how to get them for the life of me. So if anyone knows the answers to any of my questions, I would greatly appreciate some help. Thanks.

EDIT: Ok simpler question, where do I get the 2 float values taken as parameters for the PerlinNoise_2D function?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T18:57:12+00:00Added an answer on June 3, 2026 at 6:57 pm

    A 2-dimensional pattern needs 2 parameters. Think of them as representing the Cartesian x and y coordinates of the pattern, in whatever way best fits your application.

    So if, for example, you wanted to generate a W×H noise map in C++, you could do something like:

    float noise[H][W];
    for (int y = 0; y < H; ++y)
        for (int x = 0; x < W; ++x)
            noise[y][x] = PerlinNoise_2D(x, y);
    

    You could then use the noise values to modulate the colour values of pixels in a bitmap, for instance.

    (In this example the x and y parameters don’t need to be floats, but in the general case you might want them to be.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have read this article about 400% boost of your website . This is
I have read this article from High Scalability about Stack Overflow and other large
I have read this article about using WMI to change the settings of NICs
I have just read this interesting article about the implementation details for various languages
I have a silly question. I read this article about std::exception http://www.cplusplus.com/doc/tutorial/exceptions/ On catch
I read this good article about Routed Events, and I understood why we need
I already read many article about this issue in here, SO. I just want
I've read an article about the Named Loop Idiom in C++ : http://en.wikibooks.org/wiki/More_C%2B%2B_Idioms/Named_Loop This
I just read the Wikipedia page about Bucket sort . In this article they
I read and article talking about moving beyond 960px width for websites. This width

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.