[dead] netbeans image editor plug-in

This project won’t be developed any further



In the jmp thread i saw a request for an image editor. I’m writing that.



Update, 23. July 2010: Now available on SourceForge:

http://jpspj.svn.sourceforge.net/viewvc/jpspj/pixelhead/







The base is done, i’m testing it, here’s the nbm i you want to try it.



pixelhead.zip (33kb)



The nbm is inside the zip



If it works (and it should) it’s just a matter of finding the features that better suite the need of JMP.

Teach me how to bend time… excellent stuff man, we're gonna make our presence known in the netbeans platform plugin repository in no time!



PS, Ruth aka 'Zathras' worked really hard for the NetBeans 6.9 release; don't get caught running legacy software again! :stuck_out_tongue:

<3 pgi!!

Added support for editing tools, the well know foreground-background color box, a color picker and a cutter.







What kind of operations could be useful considering the texture-oriented nature of the plug-in?

What kind of operations could be useful considering the texture-oriented nature of the plug-in?

Create normalmap from image, load DDS/TGA files, and compress images.

Bump to normal map conversion, theres a Gimp plugin imitating the Nvidia tool for it, the conversion code is actually pretty overseeable.

I've found the TGA spec, i'm writing an ImageIO plugin to read/write tga files. Right now it supports no color map, uncompressed true color 32/24 bit per pixel images (load/write). I'll slowly add the rest (i hate file formats :D).



I can't find the DDS file format specification.



As per bump, the "bump" filter generates a normal map, according to an algorithm i found on mathematics for 3d game programming & computer graphics.

You don't need to write your own importers… Just use jME TGALoader and DDSLoader, then convert them to AWT images using ImageToAwt utility class.

For DXT compressed images (inside DDS), you'll need to write your own decoder, since DXT compression is only supported by GPUs.

Here's some example code for decompressing DXT: http://www.glassechidna.com.au/2009/devblogs/s3tc-dxt1dxt5-texture-decompression/

The DDS format left me speechless (well, actually I'm laughing as a maniac but it's the same). The DX10 compression type alone has 100 variants (in 4 flavors). Not to mention the 21 "legacy" formats (that I was able to find but, c'mon, just 21? AH AH).

You don't really have to write it from scratch. The DDSLoader in jME3 supports all the legacy formats as well as some relevant formats from those 100 DX10 ones. You can write an interface for ImageIO that uses jME3 classes to load the image and then convert it to a compatible AWT image.

I have uploaded the code to sourceforge



http://jpspj.svn.sourceforge.net/viewvc/jpspj/pixelhead/



As a side note, the icons are from the well known crystal icon pack (i don't remember if i've added a mention to it in the project, currently i'm busy trying to make a game with the absolutely lovable JME3)

pgi said:

I have uploaded the code to sourceforge
http://jpspj.svn.sourceforge.net/viewvc/jpspj/pixelhead/
As a side note, the icons are from the well known crystal icon pack (i don't remember if i've added a mention to it in the project, currently i'm busy trying to make a game with the absolutely lovable JME3)

Two times yay!! We want jme3 games! ;)
Whats the license of the image editor? Any dependencies with licenses more complicated than lgpl? I'd like to add this to the jMP core if you don't mind.

Cheers,
Normen

Edit: answered by PM

I think the sourceforge project reports MIT but the license is really the well known "do whatever you want with the source and/or the program, there are no credits/copyrights/fees/claims or anything like that to give".

Cool, added to the jMP core. But the tga importer is missing atm, I could not find it?

TGA is supported via the TGAImagePlugin wrapped jar (IOModule.java uses it). The jar should be included in the pixelhead repository, the netbeans project is at:



https://jpspj.svn.sourceforge.net/svnroot/jpspj/TGAImagePlugin

Added a button to edit the image with an external program. Press the button, type the name of the executable of the external program and voil

pgi said:

Added a button to edit the image with an external program. Press the button, type the name of the executable of the external program and voil

I'll post the patches in case. It is useful to me but i don't know how much useful could be in general.