Someone willig to update Insane Bump python gimp plugin?
This: http://opengameart.org/content/ground-pavement-texture-pack
reminded me to look for a nice open-source & cross-platform Crazy-bump alternative again, for a convenient way to create normal and specularity maps out of a photo texture.
Now there is the still working normal-map plugin for GIMP:
http://code.google.com/p/gimp-normalmap/
Which is not bad by itself, however the result is only a normal-map and it doesn't have any advanced picture enhancing algorithms like crazy bump.
Now a bit for google searching found me this:
http://irrlicht.sourceforge.net/forum/viewtopic.php?f=18&t=30200&start=30
http://code.google.com/p/insanebump/
http://irrlichtirc.g0dsoft.com/omaremad/
Which is sadly terribly outdated and has not been further developed since 2009 or so, however the results it seems to create look very nice. See this PDF for example:
http://irrlichtirc.g0dsoft.com/omaremad/insane.pdf
The source-code for this python GIMP plugin is available under the GPLv3, so I was wondering if there is maybe someone around here that could get it running under GIMP 2.8 and make a nice new release of it?
Thx!
Edit: Here are some instructions to maybe get it running on gimp2.8: http://www.gimpchat.com/viewtopic.php?f=15&t=467
google code project svn doesn't contain any code. Actually it doesn't contain anything. I also couldn't find anything on http://irrlichtirc.g0dsoft.com/omaremad/. Src.zip was some irrlicht cpp code. Deb package contains a python file but it is just for controlling the plugin
Arg, I didn't notice that. Strange though that the .deb doesn't include all the python files needed. Hmm maybe we can contact the original author through the irrlich forums...
--
http://freegamedev.net
Hello, I d like to help with that but I have no idea ho to get the original files! I can't find them anywhere!
Thanks for offering.
I am not sure either where to get the source. I assumed that since it is a phython plugin for GIMP any distribution should include the scripted python code, but vk mentioned the .deb is not complete or something like that. Maybe install and check the windows version and see if the python code can be extracted.
Licensing is also not quite clear, but by the (empty) google code page I guess one can assume the authors intention was to have it under the GPLv3.
Maybe try to contact the original author via the irrlich forums?
--
http://freegamedev.net
Well that was my intention but I cannot get the windows version either. It seems there is something wrong with the link. My intention was to inspect the code and make a stand alone application for it, well if it was GPL3 truly.
Do you have the .exe? I cannot find anything at all that is connected to the software.
Well that was my intention but I cannot get the windows version either. It seems there is something wrong with the link. My intention was to inspect the code and make a stand alone application for it, well if it was GPL3 truly.
Do you have the .exe? I cannot find anything at all that is connected to the software.
Ahh, when I first posted this the: http://irrlichtirc.g0dsoft.com/omaremad/ link was still working. Seems like the domain expired 1st of May or so :(
I searched a bit on google and this might have a working file for windows:
http://download.swiborg.com/software/
but I am still downloading it to see.
I don't think you can really make it a standalone version as it seems to rely on GIMP heavily. But having a good and easy to install GIMP plugin would be equally nice, no?
--
http://freegamedev.net
That will go in my Virtual Machine :D
Well that remains to be seen. If the operations on the image are simple enough they can also be implemented in pure Python. Well making the plugin work in 2.8 will be easier task so that will have priority. First I ll have to see if I can get my hands on the original script.
Well that was easy, the .exe was a zip and it contained the pythonic script in the root. The operations are truly simple filters and color operations. I will try it in gimp 2.8 to see what happens. It remains to be seen if it can be released as a plugin, so we need permission from the author for that.
Ok that sounds great.
Yes we sould probably try and contact the original author, but if he can't be reached I would say that shouldn't hold us back as releasing it under the GPLv3 is a save bet according to the intentions of the original author.
--
http://freegamedev.net
I did the following (GIMP 2.6 on Ubuntu):
1. Downloaded from the link mentioned by Julius.
2. Unzipped the exe as suggested by messie.
3. Dragged insane.py into ~/.gimp-2.6/plug-ins.
4. Made the file executable.
5. Ran GIMP.
6. Use GIMP to convert your image from *.jpg or *.png or whatever to *.tga.
7. Using Filters/Python-fu/Test/insane pulls up an InsaneBump menu.
8. Enter the name of the *.tga file as the "File Pattern" and hit OK.
9. It cranks and generates lots of new files that are presumably the maps. I'm a noob, so I have no idea if they're good or bad.
Well the script with minor tweaks works with gimp 2.8. I have corrected it and removed dependency on imagemagick. I suppose it will be OK to share it here, giving credit to the original author of course.
Yes, please share it with the others too. GPLv3 should be fine, I am 100% sure the original author wouldn't object.
--
http://freegamedev.net
http://registry.gimp.org/node/28116
There you go. Please tell me your thoughts, if you find any bugs etc, if you think that more function can be added etc.
I will post the mapping generation procedure, so maybe we can discuss it and improve it. Any thoughts should help.
Sorry, this is the updated page
(had to change it because I registered it under plug-in insetead of script)
http://registry.gimp.org/node/28117
Now, as for the results:
the _n is the normal map,
the _s is the specular,
the _d is the diffusion (just the color)
the _a is the ambiend occlusion
the _h is the displacement (or height map)
You can test it on blender, this tutorial will help, just replace crazybump with insane bump :P
http://www.blenderguru.com/videos/the-secrets-of-realistic-texturing/
I think the results are pretty good
Hi there, I tested it on Xubuntu 13.04 running python 2.7.
It stops working when I press OK on the settings dialogue, giving the error
I am wondering if this is a python version error or something?
hmmm I guess it has to do sth with the drectory the original picture resides or the filename. Maybe it has any strange characters or spaces? I will have to fix that anyway
Hmm, I am still on Ubuntu 12.04 and that has only GIMP2.6 and the script doesn't seem to be compatible with that. Will try it on a windows machine later on though.
Thanks again for the cool update though!
--
http://freegamedev.net
hmm I don't think it would be a problem. What seems to be the error? try the latest one that I have uploaded and tell me the error that the scrt produces.
Ok was just stupid, seems to work more or less.
In my quick test it generated the maps (and by the looks of them quite well too) but had some trouble deleting the temporary files in the end:
Traceback (most recent call last):
File "/usr/lib/gimp/2.0/python/gimpfu.py", line 692, in response
dialog.res = run_script(params)
File "/usr/lib/gimp/2.0/python/gimpfu.py", line 353, in run_script
return apply(function, params)
File "/home/krischan/.gimp-2.6/plug-ins/InsaneBump.py", line 287, in batchnr
pdb.gimp_image_delete(image)
RuntimeError: Ausführungsfehler
--
http://freegamedev.net
OK this has remained from the original script. it tries to delete the active image although it does not have to. I will fix this too!
Hmm, not sure if it is a bug (and it could be a usefull feature too), but if I try to make normal-maps from the textures linked in the first post the _n .png file has a transparency added that removes the grass in between the bricks.
Well actually I just notices that it happens for the _d in the case of the second brick texture with the larger amount of grass too.
IMHO this kind of feature and transparency detection is a cool feature too, but for this specific case I would like to be able to turn it off ;)
Edit: it also adds a (this time not very usefull) transparency to the concrete pebble texture :(
Edit2: I am not sure how advanced that "make tileable" feature of this plugin is, but if you want to make it really awesome you should combine it with the Resynthesizer plugin: https://github.com/bootchk/resynthesizer
--
http://freegamedev.net
I have no idea why it does this. Try to convert the image in jpg first, see if that helps. The original author demanded that the images were tga, idk if it has anything to do with that
Ahh, yes that seems to make a difference (e.g. with jpg). I also tried converting to .tga first, but that one has the same transparency issues as .png. I don't really like the .jpg solution as that introduces compression artifacts, so it would be great if you could find out what is causing it.
However I still think the transparency could be a usefull feature too ;)
Oh and please note my second edit in the post above!
--
http://freegamedev.net
Well I guess I ll have to make a todo list... I can remove the alpha channel of the image before saving.
The resynthesizer looks cool, but you can always use it seperately, eg reynthesize first and then apply the map. The make tileable option simply uses the "Make Seamless" tool from filters/Map in order to create a seamless texture (not good if you ask me)
Found some time to iron-out the last rough edges?
--
http://freegamedev.net
I never have enough time but if you make a request I might be able to do it. :D
Hmm, did you try it with GIMP 2.8.4? Because I recently updated my GIMP to that version and when I try to use insanebump it seems to simply do nothing when pressing ok. The config window simply closes imidiatly.
--
http://freegamedev.net
It doesn't work under Gimp 2.8.6 either. If you don't have time to modify it yourself, can you point us at some instructions to do it ourselves?
Thank you in advance.
Ah this sucks, I have no way of being informed about comments on the script so I had no idea it ceased to work. I ll try to make it work today as soon as I figure what is wrong.
All done, I have uploaded the script, still does not work perfectly but I think functionality has been restored, it was a stupid mistake.
Any suggestions are welcome and I will try to find time to fulfil them :P
http://registry.gimp.org/node/28117
Great, works again now! Thanks for the quick repair.
--
http://freegamedev.net
Works perfectly! Thank you very much for the quick reply. If you want help with any other project let us know, we owe you one :)
well I was thinking of maybe adding a window with a preview in opengl maybe a sphere or a plane or sth. Any ideas or help with that would be awesome.
Why not take the code from an existing Filter with a preview window (and a sphere) and modify it, so it fits your likes.
I just started studying python so I can't really help you with the code yet.
Well, thing is that the apps that have embedded windows in them are written in c++ which is out of the question :P. Ah, never mind though food for thought anyway
A preview of every step you make would be nice, so you can see if the setting you chose is right for you, before generating and saving all those files, just to show you after, that it was not what you wanted.
OK I found one intuitive way to do it. Using panda3d engine seems easy enough. I managed substituting the textures of this example
http://www.panda3d.org/manual/index.php/Sample_Programs:_Normal_Mapping
with the ones generated by the script. The script just has to call the example. I ll try to implement it when I find some time.
Why don't you make an announcement of the app to other sites, so you can get more help? Like gimpusers or even blenderartists. From what I've seen so far a lot of people are looking for this app. And now that you made it work for gimp 2.8.6 a lot of people will want to help you with it, especially from the Blender and Gimp community.
I can do that if you want, start threads to several sites, to have the app update faster. And all of the threads will pinpoint to only one site of your choice.
I don't think you need Messie's permission for this ;) Would be cool if there was a group of people working on making this the best GIMP texturing plugin!
--
http://freegamedev.net
Sure, go ahead, no problem. The problem is that with python, there is no inherent 3d plugin for gimp. The 3d window that is shown for the normal map plugin of gimp is programmed in c++ and opengl (or was, it does not work any more). So it needs either some game engine to work with (panda3d for example) or programming with opengl for python.
Hello
I'm trying to use the script Insane Bump in Gimp 2.8.6 on windows 64-bit HP and when I try to run the script, after a few steps, the following message appears:
What should I do to be able to run the script properly?Any help will be very welcome.Thank you.
Try open the InsaneBump.py file with a text editor (like notepad) and change the "32" with "64" everywhere if its a path line, like this one :
C:\Program Files\GIMP 2\32\lib\gimp\2.0\python\gimpfu.py
change it to :
C:\Program Files\GIMP 2\64\lib\gimp\2.0\python\gimpfu.py
Also, what about other plugins? have you try running any other plugin? Because if I'm not mistaken to run python on windows you have to install something first, but I'm not sure about that yet.
From the output I am guessing that you don't have the normal map plug in that can be found in the plug in registry. Try installing the Gimp Plugin Registry.
S-Farantopoulos
I installed the NormalMap and it worked correctly. Not found in InsaneBump file no path, so did the modification suggested.
messie
Installed the Gimp Plugin Registry.
After that when the squeegee Gimp message (2 times) that lack the libtiff-3.dll dll and that I should install it. Then gives the error 0xc00007b asks to close the program, but it opens normally. Reinstalled the Gimp 2.8, but these error warnings continued. But he ends up running anyway.
Despite this, the InsaneBump does not run, saying that there is an error; that the script is trying to access an image that does not exit, and more!
Finally, I installed the InsaneBump_UK.py instead of InsaneBump.py and even with errors when I open the program, this script worked right.
Now I have this other problem which is this dll and how do I delete these error messages? Thank you all.
I am sorry, I cannot help with this as I am running gimp on linux, but my guess is uninstall then reinstall the latest versions for the registry and the gimp software
messie
Thanks a lot. I will try Linux.
Got this to work on windows 7 GIMP 2.8.6 64bit..
The problem for me was with the getFilename function on line 19.
Add this import to the top of the file:
import ntpath
and change the function to the following
def getFilename(filename, suffix):
head, tail = ntpath.split(filename)
tail = tail.replace(".", suffix + ".")
filename = head + "/" + tail
return filename
Then it works like a charm.. thanks for the script.
In the python documentation it says that ntpath is the same as os.path (just an observation).
Apparently this still is not a good solution in case you have dots (.) in the filename...
something like the following may be better:
I modified it a little bit: http://pastebin.com/4EmyxSKY
I tried to clean it But I might have messed up things.
suffixes used are:
['diffuse', '_d'], ['specular', '_s'], ['normal', '_n'], ['height', '_h'], ['ambient', '_a']
['highdetail', '_hn'], ['shaperecog', '_sn'], ['lowdetail', '_ln'], ['mediumdetail', '_mn'])
(no idea what shape recognition(shape recog) thing is)
Pages