Creating random procedural texture?

hi, i wanted to use NeoTexture api to influence the generated texture parameters so i can create a random texture dynamically when my application runs. I downloaded it from jmonkeyplatform-contributions trunk



i try this :

assetManager.registerLoader(com.jme3.material.plugins.NeoTextureMaterialLoader.class,“tgr”);

NeoTextureMaterialKey key = new NeoTextureMaterialKey(“NeoTexture/newexample_Lava.tgr”);

Material wall = assetManager.loadAsset(key);

wall.setFloat(“m_Shininess”,128);



Result :

WARNING: loading of param transformation failed.

WARNING: loading of param 1.0 failed.

WARNING: loading of param 0.0 failed.



SEVERE: Uncaught exception thrown in Thread[LWJGL Renderer Thread,5,main]

java.lang.IllegalArgumentException: Material parameter is not defined: lava_d

at com.jme3.material.Material.checkSetParam(Material.java:369)

at com.jme3.material.Material.setTextureParam(Material.java:471)

at com.jme3.material.Material.setTexture(Material.java:519)

at com.jme3.material.plugins.NeoTextureMaterialLoader.load(NeoTextureMaterialLoader.java:61)

at com.jme3.asset.DesktopAssetManager.loadAsset(DesktopAssetManager.java:240)





Can anyone make an example on how to use its api please ? If its not too much ask ofc. thank you.



Yes, i know i can use the editor to create static images but then the game wont be truly random.

ok i found this : usage example

now i can load the “.tgr file” correctly, but is there any way to change its parameters before its loaded ?

E.g changing perlin’s noise seed so they can be random.