Skip to main content

User login

What is OpenID?
  • Log in using OpenID
  • Cancel OpenID login
  • Create new account
  • Request new password
Register
  • Home
  • Browse
    • 2D Art
    • 3D Art
    • Concept Art
    • Textures
    • Music
    • Sound Effects
    • Documents
    • Featured Tutorials
  • Submit Art
  • Collect
    • My Collections
    • Art Collections
  • Forums
  • FAQ
  • Leaderboards
    • All Time
      • Total Points
      • Comments
      • Favorites (All)
      • Favorites (2D)
      • Favorites (3D)
      • Favorites (Concept Art)
      • Favorites (Music)
      • Favorites (Sound)
      • Favorites (Textures)
    • Weekly
      • Total Points
      • Comments
      • Favorites (All)
      • Favorites (2D)
      • Favorites (3D)
      • Favorites (Concept Art)
      • Favorites (Music)
      • Favorites (Sound)
      • Favorites (Textures)
  • ❤ Donate
Programming

Someone willig to update Insane Bump python gimp plugin?

Julius
Saturday, April 20, 2013 - 08:58
Julius's picture

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

  • Log in or register to post comments
vk
joined 12 years 3 months ago
Saturday, April 20, 2013 - 17:43

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

  • Log in or register to post comments
Julius
joined 15 years 7 months ago
Sunday, April 21, 2013 - 02:03
Julius's picture

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

  • Log in or register to post comments
messie
joined 12 years 1 week ago
Saturday, May 4, 2013 - 12:18

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!

  • Log in or register to post comments
Julius
joined 15 years 7 months ago
Sunday, May 5, 2013 - 01:08
Julius's picture

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

  • Log in or register to post comments
messie
joined 12 years 1 week ago
Sunday, May 5, 2013 - 01:20

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.

  • Log in or register to post comments
messie
joined 12 years 1 week ago
Sunday, May 5, 2013 - 01:20

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.

  • Log in or register to post comments
Julius
joined 15 years 7 months ago
Sunday, May 5, 2013 - 01:49
Julius's picture

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

  • Log in or register to post comments
messie
joined 12 years 1 week ago
Sunday, May 5, 2013 - 02:01

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.

  • Log in or register to post comments
messie
joined 12 years 1 week ago
Sunday, May 5, 2013 - 02:34

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.

  • Log in or register to post comments
Julius
joined 15 years 7 months ago
Sunday, May 5, 2013 - 03:27
Julius's picture

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

  • Log in or register to post comments
rburkey
joined 12 years 1 week ago
Monday, May 6, 2013 - 12:40

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.

 

  • Log in or register to post comments
messie
joined 12 years 1 week ago
Monday, May 6, 2013 - 14:06

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.

 

  • Log in or register to post comments
Julius
joined 15 years 7 months ago
Tuesday, May 7, 2013 - 12:30
Julius's picture

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

  • Log in or register to post comments
messie
joined 12 years 1 week ago
Thursday, May 9, 2013 - 03:46

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.

  • Log in or register to post comments
messie
joined 12 years 1 week ago
Saturday, May 11, 2013 - 01:31

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

  • Log in or register to post comments
Grefuntor
joined 12 years 4 months ago
Saturday, May 11, 2013 - 02:22

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

An error occurred running python-fu-InsaneBump

AttributeError: 'NoneType' object has no attribute 'replace'

Traceback (most recent call last):
  File "/usr/lib/gimp/2.0/python/gimpfu.py", line 699, in response
    dialog.res = run_script(params)
  File "/usr/lib/gimp/2.0/python/gimpfu.py", line 361, in run_script
    return apply(function, params)
  File "/home/name/.gimp-2.8/plug-ins/InsaneBump.py", line 208, in batchnr
    pdb.gimp_file_save(image, diffuse, getFilename(file_name,"_d"), getFilename(file_name,"_d"))
  File "/home/name/.gimp-2.8/plug-ins/InsaneBump.py", line 19, in getFilename
    filename = filename.replace(".",suffix+".")
AttributeError: 'NoneType' object has no attribute 'replace'

I am wondering if this is a python version error or something?

  • Log in or register to post comments
messie
joined 12 years 1 week ago
Saturday, May 11, 2013 - 04:23

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

  • Log in or register to post comments
Julius
joined 15 years 7 months ago
Saturday, May 11, 2013 - 10:58
Julius's picture

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

  • Log in or register to post comments
messie
joined 12 years 1 week ago
Saturday, May 11, 2013 - 11:34

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.

  • Log in or register to post comments
Julius
joined 15 years 7 months ago
Sunday, May 12, 2013 - 00:46
Julius's picture

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

  • Log in or register to post comments
messie
joined 12 years 1 week ago
Sunday, May 12, 2013 - 01:17

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!

  • Log in or register to post comments
Julius
joined 15 years 7 months ago
Monday, May 13, 2013 - 11:22
Julius's picture

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

  • Log in or register to post comments
messie
joined 12 years 1 week ago
Monday, May 13, 2013 - 11:21

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

  • Log in or register to post comments
Julius
joined 15 years 7 months ago
Monday, May 13, 2013 - 11:29
Julius's picture

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

  • Log in or register to post comments
messie
joined 12 years 1 week ago
Monday, May 13, 2013 - 11:39

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)

  • Log in or register to post comments
Julius
joined 15 years 7 months ago
Monday, June 10, 2013 - 04:35
Julius's picture

Found some time to iron-out the last rough edges?

--

http://freegamedev.net

  • Log in or register to post comments
messie
joined 12 years 1 week ago
Monday, June 10, 2013 - 04:37

I never have enough time but if you make a request I might be able to do it. :D

  • Log in or register to post comments
Julius
joined 15 years 7 months ago
Saturday, June 29, 2013 - 11:00
Julius's picture

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

  • Log in or register to post comments
asdfzxc
joined 11 years 10 months ago
Sunday, June 30, 2013 - 02:03

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.

  • Log in or register to post comments
messie
joined 12 years 1 week ago
Sunday, June 30, 2013 - 03:01

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.

  • Log in or register to post comments
messie
joined 12 years 1 week ago
Sunday, June 30, 2013 - 03:27

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

  • Log in or register to post comments
Julius
joined 15 years 7 months ago
Sunday, June 30, 2013 - 04:26
Julius's picture

Great, works again now! Thanks for the quick repair.

--

http://freegamedev.net

  • Log in or register to post comments
asdfzxc
joined 11 years 10 months ago
Sunday, June 30, 2013 - 08:13

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 :)

  • Log in or register to post comments
messie
joined 12 years 1 week ago
Sunday, June 30, 2013 - 13:11

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.

  • Log in or register to post comments
asdfzxc
joined 11 years 10 months ago
Sunday, June 30, 2013 - 22:51

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.

  • Log in or register to post comments
messie
joined 12 years 1 week ago
Monday, July 1, 2013 - 01:36

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

  • Log in or register to post comments
Duion2
joined 6 years 1 month ago
Monday, July 1, 2013 - 04:50

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.

  • Log in or register to post comments
messie
joined 12 years 1 week ago
Monday, July 1, 2013 - 05:29

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.

  • Log in or register to post comments
asdfzxc
joined 11 years 10 months ago
Wednesday, July 3, 2013 - 01:58

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.

  • Log in or register to post comments
Julius
joined 15 years 7 months ago
Wednesday, July 3, 2013 - 02:24
Julius's picture

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

  • Log in or register to post comments
messie
joined 12 years 1 week ago
Wednesday, July 3, 2013 - 03:25

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.

 

 

  • Log in or register to post comments
joagostini
joined 11 years 10 months ago
Tuesday, July 9, 2013 - 13:31

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:

error: procedure not found

Traceback (most recent call last):

  File "C:\Program Files\GIMP 2\32\lib\gimp\2.0\python\gimpfu.py", line 699, in response  dialog.res = run_script(params)

  File "C:\Program Files\GIMP 2\32\lib\gimp\2.0\python\gimpfu.py", line 361, in run_script  return apply(function, params)

  File "C:\Program Files\GIMP 2\lib\gimp\2.0\plug-ins\InsaneBump.py", line 222, in batchnr  doBaseMap(image, diffuse, Depth, LargeDetails)

  File "C:\Program Files\GIMP 2\lib\gimp\2.0\plug-ins\InsaneBump.py", line 150, in doBaseMappdb.plug_in_normalmap(image, newlayer, 5, 0.0, Depth * ok, 0, 0, 0, 0, 0, 0, 1, 0, 0.0, newlayer) error: procedure not found

What should I do to be able to run the script properly?Any help will be very welcome.Thank you.

 

  • Log in or register to post comments
asdfzxc
joined 11 years 10 months ago
Tuesday, July 9, 2013 - 23:18

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.

  • Log in or register to post comments
messie
joined 12 years 1 week ago
Wednesday, July 10, 2013 - 00:24

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.

  • Log in or register to post comments
joagostini
joined 11 years 10 months ago
Wednesday, July 10, 2013 - 07:45

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.

  • Log in or register to post comments
messie
joined 12 years 1 week ago
Wednesday, July 10, 2013 - 08:10

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

 

  • Log in or register to post comments
joagostini
joined 11 years 10 months ago
Wednesday, July 10, 2013 - 09:32

messie

Thanks a lot. I will try Linux.

  • Log in or register to post comments
ctrauma
joined 11 years 8 months ago
Friday, August 23, 2013 - 20:24
ctrauma's picture

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.

 

 

  • Log in or register to post comments
messie
joined 12 years 1 week ago
Saturday, August 24, 2013 - 01:18

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:

(root, ext)=os.path.splitext(filename)

filename=root+suffix+ext

return filename

 

  • Log in or register to post comments
vk
joined 12 years 3 months ago
Saturday, August 24, 2013 - 05:58

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)

  • Log in or register to post comments

Pages

  • 1
  • 2
  • next ›
  • last »