Omnimaga: The Coders Of Tomorrow
Welcome, Guest. Please login or register.
 
Omnimaga: The Coders Of Tomorrow
22 May, 2013, 19:06:16 *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   home   news downloads projects tutorials misc forums rules new posts irc about Login Register  
+-OmnomIRC

You must Register, be logged in and have at least 40 posts to use this shout-box! If it still doesn't show up afterward, it might be that OmnomIRC is disabled for your group or under maintenance.

Note: You can also use an IRC client like mIRC, X-Chat or Mibbit to connect to an EFnet server and #omnimaga.

Pages: [1] 2 3 4   Go Down
  Print  
Author Topic: [nRGBlib] W.I.P - Colorful librairy for Ndless 3.1 -  (Read 5187 times) Bookmark and Share
0 Members and 1 Guest are viewing this topic.
totorigolo
LV2 Member (Next: 40)
**
Offline Offline

Gender: Male
Last Login: 28 April, 2013, 02:07:00
Date Registered: 19 December, 2011, 00:19:11
Location: Bouches-du-Rhône
Posts: 24

Topic starter
Total Post Ratings: +9

View Profile
« on: 04 January, 2012, 23:00:48 »
+6

Hello everybody,

I'm coming from TI-Planet to inform you about the progression of nRGBlib, which is a Ndless colorful (but compatible with classic Nspire) library.
You can see the corresponding news :
And you can see the original topic on TI-Planet here (FR). Note that this topic, on Omnimaga, may be outdated because I'm French so...
------------------------------------------------------------------------------------------

Roadmap :

nRGBlib 0.1 : First stable version - available on request
  • Drawing pixel in color.
  • Clearing the screen in color.
  • Drawing an ordinary line in color.
  • Drawing rectangle, square or vertical and horizontal line in color.
  • Drawing circle and disc in color.
  • Drawing an empty triangle (only borders) in color.
  • Drawing 8x8 pixels tile (good definition, but in french) with possibility to resize them (only x2, x4,... for 0.1 version) in single color and multi colors mode.
  • Drawing a character with possibility to resize it (only x2, x4,... for 0.1 version) in color.
  • Drawing a string, with possibility to resize it (only x2, x4,... for 0.1 version) and possibility to enable / disable line wrap, in color.

nRGBlib 0.2 : Former stable version - public
  • Compile statically, like libndls, to alleviate the executable.
  • Organize the library to allow proper expansion in continuity.
  • Classic Nspire and CX compatibility, without re-building.
  • Reduce the number of arguments of the functions, to accelerate the execution → only colors for this version.
  • Mozilla Public License 2.0 added.
  • Version ready for Ndless 3  Wink
nRGBlib 0.3 : Last stable version - public
  • Images support. The images' format is a custom one. However, an exporter is provided and is capable to export all popular formats (bmp, dds, jpg, png, tga, psd (thanks to SFML  Smiley ) ).
    The images' weight is smaller than BMP, but heavier than PNG : 320x240 image => BMP = 225Ko, PNG = 6.19Ko et CUSTOM = 151Ko.
    Images are saved outside of the program, unlike tiles.
    Currently, 4bpp calculators can't draw images which have uneven width, so 240x245 is bad → 240x244.
  • Sub-images support, ie drawing only a part of an image.
  • Buffering support. Possibility to use several screen buffers and to make a screen shot (but can't save it yet).
  • Boost of the drawBox() function, which is used by several others. The former version, slower, is still available : drawBoxSl().

------------------------------------------------------------------------------------------

Features:

nRGBlib is composed of several packages to perfectly suit your needs.

  • nCOMMON:
    • Color, RGB <-> BW conversion, precomputed colors.
    • Screen buffer, creation, drawing, screen shootinh, clearing.
    • setPixel(), clearScreen().
  • nGEO:
    • Shapes: Discus, Circle, Line, Rectangle, Square, Triangle.
    • Display functions of these shapes.
  • nTILE:
    • Tile 8x8 in one color or in multicolors.
    • Display functions of tiles.
    • → Tiles are saved INSIDE of the program.
  • nIMAGE:
    • Image, initializing, loading, drawing, getPixel().
    • Sub-image, initializing, loading, drawing, getPixel().
    • → Images are saved OUTSIDE of the program.
  • nGUI:
    • Structures: Letter, Text.
    • Display functions of these structures.
  • nMATHS:
    • rand() and randMinMax() functions.
------------------------------------------------------------------------------------------

Medias :

GeometriCX v0.1


nRGBlib v0.1 with CXSnake and GeometriCX
<a href="http://www.youtube.com/watch?v=zvKaYNq4UL8" target="_blank">http://www.youtube.com/watch?v=zvKaYNq4UL8</a>

nRGBlib v0.2dev with HelloRGB, CXSnake and GeometriCX (Thanks to Goplat for his emulator)
<a href="http://www.youtube.com/watch?v=R5gHYONwilg" target="_blank">http://www.youtube.com/watch?v=R5gHYONwilg</a>

nRGBlib v0.3 indev : RPG + map editor
<a href="http://www.youtube.com/watch?v=J_d_rJuedQc" target="_blank">http://www.youtube.com/watch?v=J_d_rJuedQc</a>
4bpp drawing has been accelered a lot since v0.3, but the video was taken before the optimization.

------------------------------------------------------------------------------------------

Downloads:
Here is my Bitbucket (Mercurial) repository. Go in "Downloads" section :
https://bitbucket.org/totorigolo/nrgblib/overview
  • Tags → v0.* → zip to get source.
  • "samples-v0.*.zip" to get only the samples.
------------------------------------------------------------------------------------------
If you have any question or suggestion about this library, please feel free  Smiley

totorigolo
« Last Edit: 12 September, 2012, 11:53:29 by totorigolo » Logged

nRGBlib - A portable graphic library for Nspire !
Jim Bauwens
Lua! Nspire! Linux!
Editor
LV10 31337 u53r (Next: 2000)
*
Offline Offline

Gender: Male
Last Login: Today at 16:03:12
Date Registered: 28 February, 2011, 22:32:12
Location: Belgium
Posts: 1733


Total Post Ratings: +180

View Profile WWW
« Reply #1 on: 04 January, 2012, 23:03:02 »
0

Very nice totorigolo Smiley
I've been looking into my copy, and it looks very straitforward to use. I haven't done anything with it yet, but I definitly will Cheesy
« Last Edit: 04 January, 2012, 23:03:22 by jimbauwens » Logged

totorigolo
LV2 Member (Next: 40)
**
Offline Offline

Gender: Male
Last Login: 28 April, 2013, 02:07:00
Date Registered: 19 December, 2011, 00:19:11
Location: Bouches-du-Rhône
Posts: 24

Topic starter
Total Post Ratings: +9

View Profile
« Reply #2 on: 04 January, 2012, 23:06:08 »
0

The 0.1 version is in only one file, and I didn't pay attention about organization. In the future version, the code will be more structured  Wink
Logged

nRGBlib - A portable graphic library for Nspire !
adriweb
Editor
LV9 Veteran (Next: 1337)
*
Offline Offline

Gender: Male
Last Login: 20 May, 2013, 00:38:33
Date Registered: 13 April, 2011, 18:42:59
Location: South of France
Posts: 1196


Total Post Ratings: +185

View Profile WWW
« Reply #3 on: 04 January, 2012, 23:07:36 »
0

This lib is awesome Smiley

You should post a screenshot/video Wink
Logged


TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation
epic7
Chopin!
LV11 Super Veteran (Next: 3000)
***********
Online Online

Gender: Male
Last Login: Today at 18:55:25
Date Registered: 22 October, 2011, 01:45:43
Location: Northeast US
Posts: 2169


Total Post Ratings: +119

View Profile
« Reply #4 on: 04 January, 2012, 23:25:11 »
0

This looks useful!
I can't wait for ndless 3 to come out Smiley

 
Logged



Current Projects:
TitleLanguageProgressStatus
DrillMiner    C (ndless)   35%         Active
?     C (ndless)   0%        Unconfirmed

Spoiler for Programming languages I currently know:
Java (Learning in AP Comp Sci)
C (Specifically Ndless)
Unity JavaScript
LabView (For FIRST robotics)
z80 ASM (Just a little bit Tongue)
totorigolo
LV2 Member (Next: 40)
**
Offline Offline

Gender: Male
Last Login: 28 April, 2013, 02:07:00
Date Registered: 19 December, 2011, 00:19:11
Location: Bouches-du-Rhône
Posts: 24

Topic starter
Total Post Ratings: +9

View Profile
« Reply #5 on: 04 January, 2012, 23:27:03 »
0

Adriweb: Done ! I used the same images than jimbauwens.

epic7: Thanks you !
« Last Edit: 04 January, 2012, 23:28:08 by totorigolo » Logged

nRGBlib - A portable graphic library for Nspire !
Nick
LV9 Veteran (Next: 1337)
*********
Offline Offline

Gender: Male
Last Login: 20 May, 2013, 20:44:19
Date Registered: 05 June, 2011, 20:01:07
Location: 51° 12′ 34″ N, 3° 13′ 31″ E
Posts: 1178


Total Post Ratings: +158

View Profile WWW
« Reply #6 on: 04 January, 2012, 23:50:53 »
0

when watching that video, it looks like you're gonna be burried below a bunch of colored circles, since they seem to come closer xp

but it's really great, this will be a big help in game development.. congratz
Logged

DJ Omnimaga
Retired Omnimaga founder (Site issues must be PM'ed to Netham45, Eeems, Shmibs, Deep Thought and AngelFish, not me.)
Editor
LV15 Omnimagician (Next: --)
*
Offline Offline

Gender: Male
Last Login: Today at 15:15:35
Date Registered: 25 August, 2008, 07:00:21
Location: Québec (Canada)
Posts: 50216


Total Post Ratings: +2615

View Profile WWW
« Reply #7 on: 05 January, 2012, 01:25:31 »
0

Looks very nice, any demo will be available soon? Smiley

Keep us updated when you can Smiley
Logged

Retired 83+ coder, Omnimaga/TIMGUL founder. Now doing power metal music (formerly did electronica)

Follow me on Bandcamp|Facebook|Reverbnation|Youtube|Twitter|Myspace
totorigolo
LV2 Member (Next: 40)
**
Offline Offline

Gender: Male
Last Login: 28 April, 2013, 02:07:00
Date Registered: 19 December, 2011, 00:19:11
Location: Bouches-du-Rhône
Posts: 24

Topic starter
Total Post Ratings: +9

View Profile
« Reply #8 on: 05 January, 2012, 20:53:46 »
0

What do you mean when you say "demo" ? Ndless 3 isn't yet public. Currently, there are CXSnake and GeometriCX. (Perhaps CXSnake screen shots ?  Grin)
Logged

nRGBlib - A portable graphic library for Nspire !
DJ Omnimaga
Retired Omnimaga founder (Site issues must be PM'ed to Netham45, Eeems, Shmibs, Deep Thought and AngelFish, not me.)
Editor
LV15 Omnimagician (Next: --)
*
Offline Offline

Gender: Male
Last Login: Today at 15:15:35
Date Registered: 25 August, 2008, 07:00:21
Location: Québec (Canada)
Posts: 50216


Total Post Ratings: +2615

View Profile WWW
« Reply #9 on: 05 January, 2012, 21:27:41 »
0

Oh I meant so we can test it, but yeah you're right about Ndless x.x. Maybe more animated screenshots?
« Last Edit: 05 January, 2012, 21:28:04 by DJ_O » Logged

Retired 83+ coder, Omnimaga/TIMGUL founder. Now doing power metal music (formerly did electronica)

Follow me on Bandcamp|Facebook|Reverbnation|Youtube|Twitter|Myspace
totorigolo
LV2 Member (Next: 40)
**
Offline Offline

Gender: Male
Last Login: 28 April, 2013, 02:07:00
Date Registered: 19 December, 2011, 00:19:11
Location: Bouches-du-Rhône
Posts: 24

Topic starter
Total Post Ratings: +9

View Profile
« Reply #10 on: 05 January, 2012, 23:11:20 »
0

New video on the presentation topic, about compatibility between Nspire CX / Nspire Touchpad/Clickpad.

<a href="http://www.youtube.com/watch?v=R5gHYONwilg" target="_blank">http://www.youtube.com/watch?v=R5gHYONwilg</a>

I did this compatibility with the following formula : color = ((R + G + B) / 3) / 16; and then I use the Ndless 2.1 setPixel(); function.
I have also edited my Color structure to be able to do this :


1
2
3
4
5
6
7
8
9
    //...
    Color appleCol; // Red for CX and Black for Classic
        appleCol.R = 255; // |
        appleCol.G = 0;   // |-> Red
        appleCol.B = 0;   // |
        appleCol.BW = 0; // Black

    drawSthColor(x, y, appleCol);
    //...
Logged

nRGBlib - A portable graphic library for Nspire !
apcalc
The Game
Coder Of Tomorrow
LV10 31337 u53r (Next: 2000)
*
Offline Offline

Gender: Male
Last Login: 19 May, 2013, 16:59:33
Date Registered: 20 March, 2010, 16:31:47
Location: 2003 UB313
Posts: 1393


Total Post Ratings: +118

View Profile
« Reply #11 on: 11 January, 2012, 22:25:30 »
0

Nice video and great work! Wink
Logged


totorigolo
LV2 Member (Next: 40)
**
Offline Offline

Gender: Male
Last Login: 28 April, 2013, 02:07:00
Date Registered: 19 December, 2011, 00:19:11
Location: Bouches-du-Rhône
Posts: 24

Topic starter
Total Post Ratings: +9

View Profile
« Reply #12 on: 16 January, 2012, 23:26:42 »
+1

Here it is ! The new nRGBlib v0.2 Smiley. It will be available soon to Download...  Wink
« Last Edit: 17 January, 2012, 00:42:02 by totorigolo » Logged

nRGBlib - A portable graphic library for Nspire !
Jim Bauwens
Lua! Nspire! Linux!
Editor
LV10 31337 u53r (Next: 2000)
*
Offline Offline

Gender: Male
Last Login: Today at 16:03:12
Date Registered: 28 February, 2011, 22:32:12
Location: Belgium
Posts: 1733


Total Post Ratings: +180

View Profile WWW
« Reply #13 on: 17 January, 2012, 10:11:48 »
0

Very nice !
I'll soon take a look at it Cheesy
Logged

DJ Omnimaga
Retired Omnimaga founder (Site issues must be PM'ed to Netham45, Eeems, Shmibs, Deep Thought and AngelFish, not me.)
Editor
LV15 Omnimagician (Next: --)
*
Offline Offline

Gender: Male
Last Login: Today at 15:15:35
Date Registered: 25 August, 2008, 07:00:21
Location: Québec (Canada)
Posts: 50216


Total Post Ratings: +2615

View Profile WWW
« Reply #14 on: 17 January, 2012, 10:42:39 »
0

Pretty good so far Smiley
Logged

Retired 83+ coder, Omnimaga/TIMGUL founder. Now doing power metal music (formerly did electronica)

Follow me on Bandcamp|Facebook|Reverbnation|Youtube|Twitter|Myspace
Pages: [1] 2 3 4   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Powered by MySQL Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Powered by PHP
Page created in 0.36 seconds with 31 queries.
Skin by DJ Omnimaga edited from SMF default theme with the help of tr1p1ea.
All programs, games and songs avaliable on this website are property of their respective owners.
Best viewed in Opera, Firefox, Chrome and Safari with a resolution of 1024x768 or above.