[RIC] Converting Images to NXT Picture Files (.ric)

Discussion specific to NXT-G, NXC, NBC, RobotC, Lejos, and more.
muntoo
Posts: 834
Joined: 01 Oct 2010, 02:54
Location: Your Worst Nightmare
Contact:

[RIC] Converting Images to NXT Picture Files (.ric)

Post by muntoo »

This tutorial describes how to convert a coloured image file to an .ric file.

Start:
  1. Download Paint.Net
  2. Install it. (Duh.)
  3. Open your image using Paint.Net (I'll call it PDN from now on)
  4. Go to Adjustments->Black and White
  5. Go to Image->Resize
    Change the Pixel size values. Make sure you check the "Maintain aspect ratio" box.
Now, choose either Method 1 (recommended), 2 (easy), or 3 (advanced).

Method 1 (My preferred method):
  • Go to Adjustments->Posterize
    Set it to the lowest value (which is 2).
  • Go to File->Save As
    Save is as a ".bmp" file (ONLY .bmp; this is important!)
  • Open NXTRicEdit (V1 will do)
  • Go to File->Import
    Import your file.
  • Save the .ric file
Method 2 (Easy method):
  • Go to File->Save As
    Save is as a ".bmp" file (ONLY .bmp; this is important!)
  • Open NXTRicEdit (V1 will do)
  • Go to File->Import
    Import your file. Adjust the contrast bar.
  • Save the .ric file
Method 3 (Advanced method):
  • Go to Adjustments->Curves
    Make sure it's set to Luminosity (not RGB).
    Place a point on the bottom.
    Place a point on the top.
    Bring those points together on the x-axis, but keep them touching the edge of the graph.
    When they're almost touching (only 1 away from each other) on the x-axis, the image should be black and white.
    Move the points around until it looks perfect. (Make sure you keep the points together, when you're done.)
  • Go to File->Save As
    Save is as a ".bmp" file (ONLY .bmp; this is important!)
  • Open NXTRicEdit (V1 will do)
  • Go to File->Import
    Import your file.
  • Save the .ric file
Congratulations! You now have converted your image to a NXT Picture File!
Last edited by muntoo on 20 Apr 2011, 00:31, edited 2 times in total.
Image

Commit to LEGO Mindstorms Robotics Stack Exchange:
bit.ly/MindstormsSE


Commit to LEGO Stack Exchange: bit.ly/Area51LEGOcommit
nxtboyiii
Posts: 366
Joined: 02 Oct 2010, 07:08
Location: Everywhere

Re: Converting Images to NXT Picture Files (.ric)

Post by nxtboyiii »

Or you could download Gimp from Gimp.org(Free), make or open the image, go to Mode-Image-Indexed, Click the "Use black and white(1-bit) palette", and click on the drop-down list and I recommend choosing "Floyd-Steinberg(normal)", and if there is any transparency, check the "Enable dithering of transparency" box. Then click Convert. Save the file and do the nxtricedit stuff, and your done!
Thanks, and have a nice day,
nxtboy III

programnxt.com
muntoo
Posts: 834
Joined: 01 Oct 2010, 02:54
Location: Your Worst Nightmare
Contact:

Re: Converting Images to NXT Picture Files (.ric)

Post by muntoo »

All I have to say is, the NXT-G 2.0 may be easier, but my method will probably produce better quality images. If you can call removing quality from the image and turning it monochrome "quality".
Image

Commit to LEGO Mindstorms Robotics Stack Exchange:
bit.ly/MindstormsSE


Commit to LEGO Stack Exchange: bit.ly/Area51LEGOcommit
linearactuator
Posts: 16
Joined: 06 Jan 2011, 06:28
Contact:

Re: Converting Images to NXT Picture Files (.ric)

Post by linearactuator »

I added the link just for reference later on!
h-g-t
Posts: 552
Joined: 07 Jan 2011, 08:59
Location: Albania

Re: [RIC] Converting Images to NXT Picture Files (.ric)

Post by h-g-t »

Looking for a bit of advice. I wanted some ric files using large type but the the NXT-G program only had one size of font so created a black and white file in Corel Paint and saved it in both png and bmp formats. The files were only 90x64 and 1 bit because I assumed that would fit into NXT-G with the minimum of modification.

However, when I imported them into NXT-G the screen remained blank. I tried using the zoom and slider but to no avail. Is there an undocumented restriction on the type of files NXT-G will accept or am I missing something obvious?
A sophistical rhetorician, inebriated with the exuberance of his own verbosity, and gifted with an egotistical imagination that can at all times command an interminable and inconsistent series of arguments to malign an opponent and to glorify himself.
timpattinson
Posts: 224
Joined: 30 Oct 2010, 04:10
Location: 127.0.0.1
Contact:

Re: [RIC] Converting Images to NXT Picture Files (.ric)

Post by timpattinson »

Try 90x63
Commit to Lego Mindstorms StackExchange Q&A http://area51.stackexchange.com/proposals/4105
Minboards IRC Channel #mindboards on Freenode
My blog: http://timpattinson.wordpress.com/
muntoo
Posts: 834
Joined: 01 Oct 2010, 02:54
Location: Your Worst Nightmare
Contact:

Re: [RIC] Converting Images to NXT Picture Files (.ric)

Post by muntoo »

timpattinson wrote:Try 90x63
Although I think that the clipping code works OK in the EF, you should try a smaller image (45x32) first, just in case.
Image

Commit to LEGO Mindstorms Robotics Stack Exchange:
bit.ly/MindstormsSE


Commit to LEGO Stack Exchange: bit.ly/Area51LEGOcommit
afanofosc
Site Admin
Posts: 1256
Joined: 26 Sep 2010, 19:36
Location: Nashville, TN
Contact:

Re: [RIC] Converting Images to NXT Picture Files (.ric)

Post by afanofosc »

You would be a lot better off using nxtRICedit v1 or nxtRICedit v2 to create RIC files than to use the tool that comes with the LEGO MINDSTORMS NXT software. imho.

John Hansen
Multi-platform LEGO MINDSTORMS programming
http://bricxcc.sourceforge.net/
h-g-t
Posts: 552
Joined: 07 Jan 2011, 08:59
Location: Albania

Re: [RIC] Converting Images to NXT Picture Files (.ric)

Post by h-g-t »

I have been trying to import pictures into riceditv2 to create a sprite but without success. I have tried different formats and colour modes but no pictures show up to be selected, just the directory tree. I had it working on my last computer but the new one is running Win 7 Home Premium 64 bit. Using the compatibility wizard and running it as administrator have not made any difference.

Is anyone else running it under Win 7?
A sophistical rhetorician, inebriated with the exuberance of his own verbosity, and gifted with an egotistical imagination that can at all times command an interminable and inconsistent series of arguments to malign an opponent and to glorify himself.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests