GithubHelp home page GithubHelp logo

eglint / warcraft-iii-noise-library Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 1.0 37 KB

Noise Library for Warcraft 3

License: MIT License

Objective-J 75.17% Lua 24.83%
perlin-noise octaves warcraft3 jass vjass lua opensimplex-noise

warcraft-iii-noise-library's Introduction

Warcraft III Noise Library

This repository contains Kenneth Perlin's Improved Noise, Kurt Spencer's Open Simplex, and implemented it to popular Warcraft 3 scripting languages.

Visit this repository for the Wurst version of the Noise library.

If you are not familiar with adding octaves to Perlin Noise, Flafla2's Octave Perlin, is an optional package that can help you.

Setup

Before using the noise functions, make sure to call the folliwng initialization functions:

JASS:

function MyInitialization takes nothing returns nothing 
    call InitNoise()
endfunction

vJASS:
The library automatically calls Noise.initialize() by default.

Lua:
The library automatically calls Noise.initialize() by default.

Calling this initialization function will generate random values (uses Warcraft III's GetRandomInt) to the permutation table and set the constant values for the JASS/vJASS versions of the gradient table.

If you are having any issues with your noise functions during initialization, your permutation and gradient table are possibly uninitialized.

In case your library that uses the noise functions initializes ahead of the Noise library's initialization, call InitNoise (JASS) or Noise.initialize() (vJASS/Lua) in your initializer.

Changelogs

warcraft-iii-noise-library's People

Contributors

eglint avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

warcraft-iii-noise-library's Issues

Basic Help needed

Hi there,

I am curious, how to basically finally implement this correctly to the newest Verison of Warcraft 3 Reforged.

I am using Version 1.35 (6115)

What I've done, I imported the Noise.j within the JASS folder, using the Asset Manager.
But when i call some functions, like "PerlinNoise2D", i got "undeclared function" as an Error.

A small guide, what exactly to do would be much appreciated.
Since I am still learning JASS, this would be cool

Thanks alot in advance!
#Cheers, sn1ce

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.