Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

Hi,

 

does anyone know a good tutorial about SimplexNoise or OpenSimplexNoise?

And how to do that stuff then in Java....

 

Or maybe someone here can explain it to me. ;)

 

I'm asking this because I'm currently working on a mod which should generate realistic biomes but I don't know how

to get stuff like the noise value.....

I'm using Forge 1.8.9 with OpenSimplexNoise.

 

I've found currently just some PerlinNoise tutorials in english..... well, I wasn't able to understand them...

 

Best would be a german tutorial because of that complex stuff and I'm not sure how much I would

understand from an english tutorial of such a complex theme (never did math stuff and any of these stuff in english  :( )

 

Thx in advance.

Bektor

 

Developer of Primeval Forest.

Honestly, I'd just generate your own noise.

It might not be as random, but it can be faster.

I personally use Math.Sin(i * Math.PI * 2 + Random.NextFloat()), where i is an integer that is incremented each time you request a random number.

I'm not sure if Random.NextFloat() exists in Java, but you just want a floating point number between 0 and 1.

 

This creates some nice, wavy noise and is pretty quick.

 

Sorry I couldn't give you better help!

  • Author

Thx for the answer.

Any idea how to generate a bit more realistic and smooth terrain?

And if I got the noise value, how to generate the terrain with it.

I know that Minecraft and mods like RTG got hundred of lines of code just for generating terrain and getting the noise value. (and I understood nothing of that code.....)

 

 

Developer of Primeval Forest.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.