Page 1 of 1
LuaImg -- an image processing tool
Posted: Sat Oct 26, 2013 5:36 am
by sparkprime
As a spinoff from Grit (my project that uses Ogre) I repurposed my custom Lua VM to form a commandline image processing tool. It's been in development on/off for about a year but I've decided to release an alpha now.
This tool is useful for creating special textures offline (e.g. noise textures with particular characteristics) and generally dealing with textures, so I thought this community would be interested. And, of course, I am interested to see what people think of it.
http://www.gritengine.com/luaimg/
Re: LuaImg -- an image processing tool
Posted: Sat Oct 26, 2013 6:33 am
by Kojack
(I moved it to General, since Development is mainly ogre related while General is any graphics stuff)
This looks great.
I have a similar but weaker lua based image system that basically is just a wrapper around PixelToaster (cross platform lib that gives a window with floating point colour pixel access). Handy for quick prototyping, but I have no image loading/saving, multiple images or vector support. So it's pretty limited.
LuaImg looks quite useful for scripted processing and generation.
Re: LuaImg -- an image processing tool
Posted: Sat Oct 26, 2013 11:19 am
by Transporter
I'll add an other option for dynamic image generation:
http://docs.ogreprocedural.org/textures.html
Re: LuaImg -- an image processing tool
Posted: Sat Oct 26, 2013 6:33 pm
by sparkprime
Kojack wrote:
I have a similar but weaker lua based image system that basically is just a wrapper around PixelToaster (cross platform lib that gives a window with floating point colour pixel access). Handy for quick prototyping, but I have no image loading/saving, multiple images or vector support. So it's pretty limited.
That's interesting.
It seems like the ability to be able to hack on images in the LuaImg interactive shell, while having a dynamically updated window to view the changes in real time (possibly even feed back mouse clicks) would be very useful.
Currently I open geeqie side-by-side and when I want to see a change, i write the image disk and wait for geeqie to refresh it. Using PIxelToaster ought to be much better.
Re: LuaImg -- an image processing tool
Posted: Sun Oct 27, 2013 12:39 am
by cybereality
Nice work.
Re: LuaImg -- an image processing tool
Posted: Tue Dec 17, 2013 10:58 am
by Daixiwen
It looks like an interesting tool to hack or edit textures. Are there any precompiled versions still available? The links on the page give 404 errors and I'm feeling a bit lazy to compile it all by myself
.
Thanks!
Re: LuaImg -- an image processing tool
Posted: Wed Dec 18, 2013 10:09 am
by Daixiwen
I decided I wouldn't be so lazy after all, but it's not that easy to compile! I needed to install Visual C++, and I needed to check out the whole repository (a huge 2.5Gb). Every attempt to compile a partial check out of the repo failed. I also needed to download and install ICU in the dependencies folder before I could compile luaimg.
I could share the executable here, but currently the zip file is over the upload size on the forum, and I have no experience with Visual C++ so I don't know how universal the executable is. I don't even know if I compiled a 32-bit or a 64-bit version...
Re: LuaImg -- an image processing tool
Posted: Fri Dec 27, 2013 10:10 am
by sparkprime
Apologies for the 404s, turned out I'd put the links in with filenames like luaimg-0.8.0.zip but uploaded the files as luaimg-0.8.zip
So I renamed the files on the webserver -- the links should work now.
It is a pain to compile I admit, but there's a lot of stuff going on there. ICU is needed since I added text rendering support. A new version coming soon will support DDS import/export including DXT1,3,5 and maybe the newer BCn formats.
Re: LuaImg -- an image processing tool
Posted: Fri Dec 27, 2013 10:22 am
by sparkprime
BTW I don't read these forums that frequently these days, so if you have a problem with luaimg feel free to email me directly on
sparkprime@gmail.com
Re: LuaImg -- an image processing tool
Posted: Sun Feb 02, 2014 12:30 am
by sparkprime
Quick update: Now supported (in version 0.9) is DDS export/import including BC1-5, mipmaps, cubemaps, and volumemaps.
Note that this makes it a great commandline tool for creating dds files on Linux.
I'd also like to support anigifs but not sure when I'll have time to do that.
Re: LuaImg -- an image processing tool
Posted: Sun Feb 02, 2014 1:32 pm
by PhilipLB
Are the volume maps compatible with the Volume Component?
Re: LuaImg -- an image processing tool
Posted: Tue Feb 04, 2014 6:08 am
by sparkprime
DDS is a standard so as long as my code (and Ogre) doesn't have any bugs it ought to be fine.