Basic Procedural Texture (source + Win + Mac + Linux)

so i’m fiddling with procedural textures and before i even got a chance to implement any of the cool ideas that have been brewing in my mind, the generator started taking on a life of it’s own as i introduced a little bit of chaotic “spice” in the parameters used to generate. i use the PaintableTexture class that maxxer contributed, but toss in a handful of additional methods. the ones that work the magic are the drunken walk and blur algortihms. also, there is a little bit of what is eventually going to be my ‘procedural color schemes generator’ for Myrena.



…continuing the spirit of contribution, here is the code in case anyone can learn from and/or improve anything. my part is public domain, see maxxer’s requirements for his stuff.



i’m very interested to see screenshots of the different outcomes of tweaking the input parameters as it generated the textures. for those of you who don’t want to build from code and just want to play around with it: Windows, Linux, and Mac(!!! Untested on Mac and Linux as of this writing !!! interested to know if it runs or not…). important keys: WASD, Q, E/Z, LMB, Esc, F13



i’ll post a video of it in action soon. feel free to post your own videos and screenshots, especially if you tweak the parameters and come up with something cool…

3 Likes

(whoops, meant to edit this into original post)



here’s a screenshot:

http://www.catalytium.com/assets/Uploads/steve/example.jpg



…here’s a video of it in action in Myrena (no background music):

http://youtu.be/-AwW7MsesAk



...here's a video of it in action in Myrena (with infinitely awesome background music):
http://youtu.be/_aESJMUayh0
2 Likes

Nice. You might want to look at http://hub.jmonkeyengine.org/groups/graphics/forum/topic/adding-getpixel-in-image/?topic_page=1&num=15



I’m still tweaking it a bit at the moment but it’s a full image painting solution with ability to set/get pixels in a range of image formats. Could be useful for you.

this is so cool !!!

i will definitely use it in my game,

i will see what i can do with in for the jme beta video.

or use music that youtube provides



and looking good! thanks for sharing

Please don’t use music in your videos… They’re always blocked here in Germany because of acquisitiveness of rights exploiters (and I’m too lazy to use a proxy service^^)



But what I can see looks well :wink:

@enum said:
Please don't use music in your videos... They're always blocked here in Germany because of acquisitiveness of rights exploiters (and I'm too lazy to use a proxy service^^)


damn. i made the same mistake last time i posted a video. i uploaded a copy of the same video, but without sound (see second post).

@zarch said:
Nice. You might want to look at http://hub.jmonkeyengine.org/groups/graphics/forum/topic/adding-getpixel-in-image/?topic_page=1&num=15

I'm still tweaking it a bit at the moment but it's a full image painting solution with ability to set/get pixels in a range of image formats. Could be useful for you.


i've been keeping an eye on your progress with that. i may actually switch over to it at some point, rather than rolling all my own equivalent functions.