Jump to content


[Software] Griddy - MOC Design Assisting Tool


  • Please log in to reply
21 replies to this topic

#1 Lasse D

Lasse D

  • Pink Poodle


    Posts: 933
    Joined: 24-December 06
    Member: 1144
    Country: Denmark

Posted 11 October 2010 - 03:30 PM

Griddy is a small program that lets you overlay pictures with a grid. The grid can show plates, bricks, tiles and you can add sub-grids of various colors and sizes if you prefer. This can help you when designing MOCs from reference pictures. For example, if you know how long a MOC has to be in bricks, you can use the grid to find all other measurements. It also comes with a simple measuring tool.

Posted Image

I started talking about Griddy back in this thread and made a little program to show what I was talking about. This program only had the most basic of functionality and I have now added the following features:

- File handling: You can now load .png, .jpg, .jpeg, .bmp and many other image files, save and load .griddy files (this is Griddy's own file format), export the current image with the grid on top and copy a screenshot of your current desktop (nifty when handling images from .pdf documents)
- Set up the grid to show plates from the side, bricks from the side, bricks from the top and have different colored grids overlaying the standard black grid (the red 10x10 grid is such a sub grid, see Edit-Grid Options).
- Measure distance between points. Click on the picture to play with this.
- Set up the grid without having to crop the picture beforehand by using the controls.
- Zooming and scrolling.

Download
Griddy is currently in "alpha" and can be downloaded as a .zip from the projects page here: http://c-mt.dk/software/
EDIT: link not working anymore, Griddy still available inside this zippack.
It does not have an installer yet and requires Java. You can start using the "run" file:
Windows: run.bat
Linux: run.sh
Mac and other OS'es: Find a way to issue the command "java -cp bin griddy.Griddy" from the BrickGraphics directory. (Please tell me if you know how to make something similar to the .sh or .bat files that works, as I have no MAC to test it on.)

Bugs and stuff to come
Griddy is still a young program, and a lot of stuff has to be done before it is officially released. The current list of features to be added is:

- Have the "draw contrasting" buttons actually do something...
- Installer.
- Stuff that you as a user might come up with.
- Automatically associate .griddy files with Griddy.
- Have a way to lock the measuring thingies (I still have to find the optimal way for the user to set up the grid)
- Have the "zoom fit" button work even when the scroll bars have not been seen (this annoys me)

License
Open source, free as in beer.

Edited by Lasse D, 09 January 2014 - 01:53 PM.

Posted Image Posted Image Posted Image
Posted Image Posted Image Posted Image

#2 Superkalle

Superkalle

    Posts: 5562
    Joined: 21-December 08
    Member: 4755
    Country: Sweden

Posted 11 October 2010 - 05:42 PM

I can only say one thing - thank you.
I've been using the grid method for years and have always wanted a supporting tool. And now here it is. Life is good  :classic:
Eurobricks Digital Design Forum - for all your LDD and Ldraw cravings

#3 Ralph_S

Ralph_S

  • Dwarf My Maersk!


    Posts: 1458
    Joined: 28-April 05
    Member: 309
    Country: The Netherlands

Posted 11 October 2010 - 05:42 PM

Excellent. :thumbup:  I've been using the older version ever since you released it, and so far it has resulted in two models. The most recent is my Toyota Prius.

Posted Image
prius grid
by Mad physicist, on Flickr

Anyway, here is the result
Posted Image
Toyota Prius (1)
by Mad physicist, on Flickr

I also used it for my VW Passat. I currently have very little time to do any building, but I am doing some design work for a few new projects and griddy is coming in very handy for those too. I shall definitely be downloading the new version!

Cheers,
Ralph
For LEGO jets, cars, and trucks, please check out:
http://www.flickr.co...os/madphysicist

#4 Lasse D

Lasse D

  • Pink Poodle


    Posts: 933
    Joined: 24-December 06
    Member: 1144
    Country: Denmark

Posted 11 October 2010 - 06:05 PM

I'm glad that you guys find it useful, and please don't withhold any suggestion that you might have. I am currently making a list of stuff to be done once I get time for this project again, but if you find any critical errors (the stuff that spams the console with debug output), then I will rush to fix those bugs ASAP.

And btw. The source code is in the .zip file. Feel free to browse/modify/improve all the undocumented spaghetti code :classic:
Posted Image Posted Image Posted Image
Posted Image Posted Image Posted Image

#5 Commander Red Hat

Commander Red Hat

  • Leader of the Redcoats!


    Posts: 5445
    Joined: 26-August 07
    Member: 1914
    Country: Netherlands

Posted 11 October 2010 - 07:01 PM

It's great to see a Beta version of something you've talked about for ages!
However it is not running for me, it gives a small line in my command screen and then closes even before I can read what it says.
I am using Vista....
Why do you need TLC to make sets for you, all you really need is parts...be creative!

The build a frigate tutorail!

New members please read the guidelines.
If you have any trouble in posting, deeplinking etc, please consult the
tutorials, or the help
section.
My Flickr

#6 Lasse D

Lasse D

  • Pink Poodle


    Posts: 933
    Joined: 24-December 06
    Member: 1144
    Country: Denmark

Posted 11 October 2010 - 07:53 PM

That's no good. I'm running on a Vista machine right now too.

Can you do this:
- start a prompt (Start->Programs->Accessories->Command Prompt) or simply type "cmd" from run (Start->Run).
- type java in the prompt. Now it has to say "Usage: java " and a lot of other things. If it doesn't, then there's a java problem (probably missing classpath).
- Now navigate to the BrickGraphics folder (using cd "C:\Program Files\BrickGraphics" or where you saved it) and then type "run".

If you get to the end, it should write some more info in the prompt that could help me diagnose the problem.
Posted Image Posted Image Posted Image
Posted Image Posted Image Posted Image

#7 Commander Red Hat

Commander Red Hat

  • Leader of the Redcoats!


    Posts: 5445
    Joined: 26-August 07
    Member: 1914
    Country: Netherlands

Posted 11 October 2010 - 08:11 PM

View PostLasse D, on 11 October 2010 - 07:53 PM, said:

That's no good. I'm running on a Vista machine right now too.

Can you do this:
- start a prompt (Start->Programs->Accessories->Command Prompt) or simply type "cmd" from run (Start->Run).
- type java in the prompt. Now it has to say "Usage: java " and a lot of other things. If it doesn't, then there's a java problem (probably missing classpath).
- Now navigate to the BrickGraphics folder (using cd "C:\Program Files\BrickGraphics" or where you saved it) and then type "run".

If you get to the end, it should write some more info in the prompt that could help me diagnose the problem.


Hmmzz, it says could not find the main class: griddy.griddy
Why do you need TLC to make sets for you, all you really need is parts...be creative!

The build a frigate tutorail!

New members please read the guidelines.
If you have any trouble in posting, deeplinking etc, please consult the
tutorials, or the help
section.
My Flickr

#8 Lasse D

Lasse D

  • Pink Poodle


    Posts: 933
    Joined: 24-December 06
    Member: 1144
    Country: Denmark

Posted 11 October 2010 - 08:45 PM

OK. Then java is working.

You should have the following:

- The folder BrickGraphics/ with run.bat and the folder bin/ (and other folders icons/ locale/ and src/ which aren't important right now)
- bin/ has the folder griddy/
- griddy/ should have a file named Griddy.class Right now java tells you that Griddy.class isn't there.

Is this true?
Posted Image Posted Image Posted Image
Posted Image Posted Image Posted Image

#9 Commander Red Hat

Commander Red Hat

  • Leader of the Redcoats!


    Posts: 5445
    Joined: 26-August 07
    Member: 1914
    Country: Netherlands

Posted 11 October 2010 - 08:49 PM

I see what happened now, got it to run, thanks!
Will give feedback as soon I've done some playing with it.  :wink:
Why do you need TLC to make sets for you, all you really need is parts...be creative!

The build a frigate tutorail!

New members please read the guidelines.
If you have any trouble in posting, deeplinking etc, please consult the
tutorials, or the help
section.
My Flickr

#10 Lasse D

Lasse D

  • Pink Poodle


    Posts: 933
    Joined: 24-December 06
    Member: 1144
    Country: Denmark

Posted 11 October 2010 - 09:02 PM

Great that it's running. Still wondering what went wrong though.
Posted Image Posted Image Posted Image
Posted Image Posted Image Posted Image

#11 Commander Red Hat

Commander Red Hat

  • Leader of the Redcoats!


    Posts: 5445
    Joined: 26-August 07
    Member: 1914
    Country: Netherlands

Posted 11 October 2010 - 09:03 PM

View PostLasse D, on 11 October 2010 - 09:02 PM, said:

Great that it's running. Still wondering what went wrong though.

I think I was trying to unpack while it wasn't on my HD yet, haven't used rar or zip in ages.  :laugh:
Why do you need TLC to make sets for you, all you really need is parts...be creative!

The build a frigate tutorail!

New members please read the guidelines.
If you have any trouble in posting, deeplinking etc, please consult the
tutorials, or the help
section.
My Flickr

#12 Randal

Randal

    Posts: 373
    Joined: 15-May 10
    Member: 10690
    Country: United States

Posted 12 October 2010 - 07:14 AM

Now I know how they make those 1/1 scale Lego cars and things. While those things are fun to look at, I don't think they'd be fun to build. That would drive me crazy.
A "Usually Safe For Work" webcomic created using Lego Digital Designer.
Posted Image Posted Image <--[ Brick can now be added to your facebook 'likes'...

#13 fred67

fred67

  • A builder, not a hoarder


    Posts: 2153
    Joined: 03-December 09
    Member: 8444
    Country: USA (GA)

Posted 12 October 2010 - 02:03 PM

I have mixed feelings about writing what I'm about to write... while "griddy" is a great idea, and having been a programming hobbyist in the past (since it became my profession I don't do it much as a hobby any more), I understand the attraction to rolling your own because it'll do exactly what you want, and if it doesn't, you can make it do it because you're the programmer...

But I hate to see what I consider wasted effort, too.

The GIMP is available for virtually every platform.  It's free.  It's extensible, programmable, and there are tons of plug-ins one can find for it to do any number of things... while it's not photoshop, it's a very mature and well rounded image manipulation program that includes the feature of having a definable overlay grid.  It has all the features of griddy - including measuring tools, zooming and panning, and includes so much more because it's a general purpose program - it supports many more image formats, layers, multiple windows...

The standard height to width of a 1x1 LEGO brick is 6:5, so all one needs to do is edit their preferences so that the grid has some multiple of those values... or 6:10 for a 2x brick, or 6:40 for a 4x brick... 2x5 for a plate....  I could probably hack up a quick plugin to let one select the brick size and automatically adjust the grid... but honestly, this is where some programming hobbyist should spend his effort, not on reinventing the wheel.  I could understand not wanting to write a plugin for proprietary software like photoshop, but not for the GIMP, which is freely available to pretty much everybody on every platform.

#14 Lasse D

Lasse D

  • Pink Poodle


    Posts: 933
    Joined: 24-December 06
    Member: 1144
    Country: Denmark

Posted 12 October 2010 - 08:08 PM

Or you could just have a transparent png with a grid and paste it onto a picture in a basic picture tool like MSPaint or Kolourpaint.
The same could be said about LEGO mosaic software. One could achieve the same as Pic2Brick by using filters in Gimp or Photoshop, but still people choose the former.

The philosophy behind Griddy is to have a small and fast dedicated piece of software without resorting to huge general purpose tools with plug-ins or similar.

(I just started Gimp on my machine. It took 30 seconds for the flash screen to load and another minute before the rest of the program showed up with a GUI with more buttons than the interior of an old Mercedes S-class. Gimp is full of great features and customizability, but a bit frightening if all I want to do is find out how high my windscreen should be if my car is 20 studs long)
Posted Image Posted Image Posted Image
Posted Image Posted Image Posted Image

#15 Raphy

Raphy

    Posts: 406
    Joined: 20-January 09
    Member: 5062

Posted 07 May 2012 - 01:39 PM

Is this still available? I tried looking at it but it gave me the 404.

#16 DLuders

DLuders

  • Technic Technician


    Posts: 5817
    Joined: 17-October 09
    Member: 7868
    Country: USA (WA State)

Posted 10 May 2012 - 01:26 AM

@ Raphy:  Griddy is still available for download from Lasse DeLeuran's software webpage.   :classic:   I just downloaded the 654-kB Brickgraphics ZIP file, and it unpacked fine on my computer.  

Posted Image  Posted Image

#17 legoboy3998

legoboy3998

    Posts: 187
    Joined: 30-August 09
    Member: 7237
    Country: USA

Posted 10 May 2012 - 01:51 AM

View PostCaptain Green Hair, on 11 October 2010 - 07:01 PM, said:

It's great to see a Beta version of something you've talked about for ages!
However it is not running for me, it gives a small line in my command screen and then closes even before I can read what it says.
I am using Vista....

I just downloaded Griddy, and am having a the same problem, however, I am running Windos 7 Home premium.  I tried opening command prompt and typing "Java" and got "Java is not recognized as an internal or external command, operable program or batch file."

Sal
WFB, WI

#18 Hey Joe

Hey Joe

    Posts: 870
    Joined: 18-June 12
    Member: 29259
    Country: USA

Posted 24 September 2012 - 10:51 AM

Hi, I'm trying to download Griddy from the link on the first page in this thread:
http://www.cs.au.dk/...iddy/griddy.zip

...but it's not working?

EDIT; Oh, sorry, I just read about the alternate site, I got it, thanks.

Edited by bjtpro, 24 September 2012 - 10:53 AM.

My family's collection on Brickset: http://www.brickset....?ownedBy=bjtpro

Check out my 1st review; 10250 Creator - Year of the Snake here

#19 Crist Clapper

Crist Clapper

    Posts: 14
    Joined: 02-January 13
    Member: 35298

Posted 08 January 2014 - 10:01 PM

View Postlegoboy3998, on 10 May 2012 - 01:51 AM, said:

I just downloaded Griddy, and am having a the same problem, however, I am running Windos 7 Home premium.  I tried opening command prompt and typing "Java" and got "Java is not recognized as an internal or external command, operable program or batch file."

Sal
WFB, WI

Did you get Giddy to work with Win-7?  No luck here so far!

#20 legoboy3998

legoboy3998

    Posts: 187
    Joined: 30-August 09
    Member: 7237
    Country: USA

Posted 08 January 2014 - 11:23 PM

No, Crist Clapper, I never did.  I never really tried any further.

Sal
WB, WI

#21 Crist Clapper

Crist Clapper

    Posts: 14
    Joined: 02-January 13
    Member: 35298

Posted 09 January 2014 - 03:08 AM

View Postlegoboy3998, on 08 January 2014 - 11:23 PM, said:

No, Crist Clapper, I never did.  I never really tried any further.

Sal
WB, WI

Sal, I loaded  “JDK (Java Development Kit)" ...  And it now works!  :-)

#22 legoboy3998

legoboy3998

    Posts: 187
    Joined: 30-August 09
    Member: 7237
    Country: USA

Posted 09 January 2014 - 05:23 PM

View PostCrist Clapper, on 09 January 2014 - 03:08 AM, said:



Sal, I loaded  “JDK (Java Development Kit)" ...  And it now works!  :-)

Thanks for the info.

Sal
WFB, WI




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users