Noise Generator

Forum for OctaneRender Lua scripting examples, discussion and support.
Post Reply
User avatar
stratified
OctaneRender Team
Posts: 945
Joined: Wed Aug 15, 2012 6:32 am
Location: Auckland, New Zealand

Hi,

I spent some of my (free) time creating a noise generator for Octane. The idea is to create an application where it's really easy to add new noise patterns based on the existing functionality. You don't have to worry about creating the user interface, that's all done automatically.

Right now I've only implemented Perlin noise, Wood rings (based on Perlin noise) and cellular noise. Perlin noise and cellular noise are excellent base functions for noise and more noise can be added quickly.

If you'd like to extend the script yourself have a look at noise-generator/materials.lua.

Here's a screenshot of the script:
noise generator
noise generator
Perlin noise
Perlin noise
Worley noise (a.k.a. Cellular Noise)
Worley noise (a.k.a. Cellular Noise)
And here's the code, it should work with OctaneRender 1.55 and 2.04:
Octane_noise_generator_0_11.zip
(8.67 KiB) Downloaded 840 times
To install, unzip the archive into your OctaneRender Lua scripting directory (The directory configured via File > Preferences > Application Tab > Script Directory). You should have a file noise-generator.lua and a directory noise-generator in this directory.

cheers,
Thomas
Tugpsx
Licensed Customer
Posts: 1150
Joined: Thu Feb 04, 2010 8:04 pm
Location: Chicago, IL
Contact:

Sweet, thanks
Win 11 64GB | NVIDIA RTX3060 12GB
domusbiro
Licensed Customer
Posts: 19
Joined: Fri Mar 04, 2011 7:48 am
Contact:

Hi,

I have 0 knowledge about scripting :oops: I've tried adding NoiseGenerator.lua in the Octane standalone script editor but it doesn't open the script window. Could you please provide install instructions?

Thx

N
mate
Licensed Customer
Posts: 136
Joined: Fri Mar 19, 2010 2:51 pm
Location: Berlin
Contact:

Sweet! is it possible to access LUA scripts from within the Plugins (C4D)?
SEHSUCHT Berlin - 22x GTX 780
tchoa
Licensed Customer
Posts: 189
Joined: Thu Jul 01, 2010 12:33 pm
Location: Montpellier

Nice script :)
But doesn't work in OctaneRender 2.03
line 272 > info.preview:setPixel(x, y, t2d:get(x, y))
...\noise-generator/materials.lua:272: attempt to call method 'setPixel' (a nil value)

Stratified could you help to fix that?
Thanks!
Win XP x64 | Q6600 2.40GHz | 8Go | GTX470 1.28Go // Win 7 x64 | I7 Q740 1.73Ghz | 6Go | GTX460m 1.5Go
User avatar
stratified
OctaneRender Team
Posts: 945
Joined: Wed Aug 15, 2012 6:32 am
Location: Auckland, New Zealand

mate wrote:Sweet! is it possible to access LUA scripts from within the Plugins (C4D)?
No, plugins can't use the Lua scripts.
domusbiro wrote:Hi,

I have 0 knowledge about scripting :oops: I've tried adding NoiseGenerator.lua in the Octane standalone script editor but it doesn't open the script window. Could you please provide install instructions?

Thx

N
I'll have a look at it soon.

cheers,
Thomas
User avatar
stratified
OctaneRender Team
Posts: 945
Joined: Wed Aug 15, 2012 6:32 am
Location: Auckland, New Zealand

I've updated the code attached to the first post. The new version is 0.11 and it should work with OctaneRender 1.55 and 2.04.

cheers,
Thomas
tchoa
Licensed Customer
Posts: 189
Joined: Thu Jul 01, 2010 12:33 pm
Location: Montpellier

Thanks Thomas!
Win XP x64 | Q6600 2.40GHz | 8Go | GTX470 1.28Go // Win 7 x64 | I7 Q740 1.73Ghz | 6Go | GTX460m 1.5Go
riggles
Licensed Customer
Posts: 493
Joined: Mon Feb 17, 2014 3:34 pm
Location: CT, USA

stratified wrote:No, plugins can't use the Lua scripts.
Why is that?
Post Reply

Return to “Lua Scripting”