Perlin Noise Generator

Moderator: Kathy_9

Post Reply
LeviFiction
Advisor
Posts: 6831
Joined: Thu Oct 02, 2008 1:07 pm
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: Alienware M17xR4
processor: Intel Core i7-3630QM CPU - 2_40GH
ram: 6 GB
Video Card: NVIDIA GeForce GTX 660M
sound_card: Sound Blaster Recon3Di
Hard_Drive_Capacity: 500GB
Corel programs: PSP: 8-2023
Location: USA

Perlin Noise Generator

Post by LeviFiction »

Technically this is able to be performed a lot faster and with far greater options if you use a RenderClouds plugin or KTP Noize plugins.

This is a demonstration of using Python to generate a perlin noise image, save it to a bitmap, and then open that bitmap as a new layer in your current image.

This code was cobbled together from several sources including:
Perlin Noise Generator
ActiveState Code Recipes by FB36 - http://code.activestate.com/recipes/578 ... generator/

Bitmap Class
GitHub by voidW0rd - https://gist.github.com/voidw0rd/3011092

Cassel - OpenAsNewLayer-Rename - http://creationcassel.com/store/index.p ... oo4lFkxQWs



There is only one parameter and that's the file location. It's one of the first lines in the Do function, you can change where it saves the temporary file. However, the folder you indicate should already exist as the script will not create the folder for you.

Here is a video demonstrating its use and showing you where in the code to edit the file location variable.
https://drive.google.com/file/d/0B8FlFL ... sp=sharing

You can download the script to try it for yourself here: https://drive.google.com/open?id=0B8FlF ... m9WWUJqc0k
https://levifiction.wordpress.com/
User avatar
gbotes
Posts: 104
Joined: Wed Sep 30, 2015 11:31 am
operating_system: Windows 7 Professional
System_Drive: C
32bit or 64bit: 64 Bit
ram: 16GB
Hard_Drive_Capacity: 500Gb
Corel programs: Paint Shop Pro X8, Aftershot 2
Location: South Africa
Contact:

Re: Perlin Noise Generator

Post by gbotes »

This is VERY cool, LeviFiction! Thank you :D

it's something I was just starting to look for, too. Now I don't suppose you have a script that generates fractal lightning? :wink:
LeviFiction
Advisor
Posts: 6831
Joined: Thu Oct 02, 2008 1:07 pm
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: Alienware M17xR4
processor: Intel Core i7-3630QM CPU - 2_40GH
ram: 6 GB
Video Card: NVIDIA GeForce GTX 660M
sound_card: Sound Blaster Recon3Di
Hard_Drive_Capacity: 500GB
Corel programs: PSP: 8-2023
Location: USA

Re: Perlin Noise Generator

Post by LeviFiction »

In the end, the KPT plugins are the best option for both noise and lightning. Just wish they were 64-bit. Oh well.
https://levifiction.wordpress.com/
Post Reply