Author Topic: nSDL 1.1.1 Anniversary Edition—The Ultimate TI-Nspire Graphics Library  (Read 142918 times)

0 Members and 2 Guests are viewing this topic.

Offline SpiroH

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 729
  • Rating: +153/-23
    • View Profile
Re: nSDL 1.1.1 Anniversary Edition—The Ultimate TI-Nspire Graphics Library
« Reply #345 on: August 28, 2013, 09:40:48 am »
Thank you hoffa for the beautiful nSDL. I can perfectly understand your move, although I do not wholeheartedly believe it that much. Sooner rather than later you'll come back to Omnimaga. You're a popular guy around here. Also, i think TI-Nspire we'll very soon be a past toy, because its architecture and price is being overcome by way better alternatives. TI will probably have to change their PR with students/developers if they want to survive. I guess they're getting too old and greedy without realizing it. ;)

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: nSDL 1.1.1 Anniversary Edition—The Ultimate TI-Nspire Graphics Library
« Reply #346 on: August 28, 2013, 01:33:11 pm »
Yeah it sucks that you are planning to stop working on this and retiring from TI-Nspire dev, although I can understand why. You are not alone who stopped developing for the same reasons. I personally was kinda interested in Nspire development when ASM/C arrived, hoping that someone released nAxe or something and perhaps trying Lua, but with everything that TI did, I finally decided against it. It is hard to stay motivated to code for a platform, fully knowing that in one year, almost nobody will be able to use our programs anymore.

By the way have you ever considered developing for the Casio PRIZM, HP Prime or TI-84 Plus C Silver Edition instead? I know calcs becomes pretty much irrelevant after hi school, but look at KermMartian, BrandonW and Ranman, who still actively made calculator programs over a decade after finishing hi school. Ranman was 40 years old, yet, during his free time (limited due to having kids and work), he still worked on TI-89 clones of Commodore 64 games. I myself released new calc games 10 years after finishing hi school, although much less than before. IIRC, someone was working on pSDL for the PRIZM, but I don't know what happened to it. The HP Prime is not hacked yet, but its BASIC language is even faster than Nspire Lua (by far) and people are already working to hack the calc. As for the 84+CSE, it's much slower, but if you like old school platforms and pushing them to their limits that could be a nice alternative, plus it's incredibly popular (just see how many downloads per week a simple Frogger or Snake clone can get). All those three calcs are open to ASM development (especially the 84+CSE, which has an Asm() command), although the HP Prime isn't released yet.

PRIZM (FX cg20):
-Max 94.3 MHz SH4
-2 MB RAM (61 KB for BASIC coders)
-16 MB Flash
-384x216 color LCD supporting both 65536 and 8 color modes

TI-84 Plus C Silver Edition:
-15 MHz Z80
-128 KB RAM (21 KB for user)
-3.5 MB Flash
-Color LCD supporting both 320x240 and 160x240 resolution, along with 65536 and 8 color modes
-Built-in horizontal scrolling support

HP Prime:
-Max 400 MHz ARM processor (supposedly clocked at 266 MHz by default)
-32 MB RAM (16 used by the OS)
-256 MB Flash
-320x240 LCD supporting 65536 colors
-BASIC language supports sprites of any size, sprite scaling, decuple buffering (10 buffers, although I don't see much need for anything higher than double or triple buffering), rectangles and transparent text (7 different sizes) that is anti-aliased.
« Last Edit: August 28, 2013, 01:49:03 pm by DJ Omnimaga »

Offline ExtendeD

  • CoT Emeritus
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: nSDL 1.1.1 Anniversary Edition—The Ultimate TI-Nspire Graphics Library
« Reply #347 on: August 28, 2013, 03:19:09 pm »
hoffa, just to let you know, although this probably won't make you change your mind: I have been circumventing protections, patching, hacking, reversing, extending the TI-89, 92+, Voyage 200, TI-Nspire Clickpad and CX since 1997. Things were a bit more easy on the TI-68k but the page always was often rather white at the beginning and TI has never been cooperative.

I have had hundred reasons for quitting during these 16 years... but I'm still here, not as productive as I would like to be, not doing things always right, releasing things much less used that I'd like, or missing expectations. But the Ndless download stats and the kind words I sometimes receive from people around the world remind me I have at least been able to contribute to change things a little bit in a good way. And to take pleasure anyway.
Ndless.me with the finest TI-Nspire programs

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: nSDL 1.1.1 Anniversary Edition—The Ultimate TI-Nspire Graphics Library
« Reply #348 on: August 28, 2013, 03:39:10 pm »
Yeah I remember that with the 68K models, TI kept changing the hardware, causing most old programs to break. At one point in 2000 or so, most people thought that on HW2 grayscale would never be possible. Then came HW3 a few years later, which broke all ASM programs.

On the 84+, we had to deal with compatibility issues with TI-Graph Link-generated groups, then came the 2007 hardware change causing games using extra RAM to break. MP OSes also caused major problems and several of my older games don't work properly on them.

Casio calcs had their shares of issues as well, especially the FX 9860G hardware changes last year or so.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: nSDL 1.1.1 Anniversary Edition—The Ultimate TI-Nspire Graphics Library
« Reply #349 on: August 28, 2013, 04:19:28 pm »
I thought you already moved to university since the army stuff? ???

Offline TIfanx1999

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6173
  • Rating: +191/-9
    • View Profile
Re: nSDL 1.1.1 Anniversary Edition—The Ultimate TI-Nspire Graphics Library
« Reply #350 on: August 29, 2013, 08:44:58 am »
I know this is a bit off topic, but is there any reason in particular you are considering Korea? Also, life> than calculators. :)
« Last Edit: August 29, 2013, 08:45:29 am by Art_of_camelot »

Offline ElementCoder

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 611
  • Rating: +42/-2
    • View Profile
Re: nSDL 1.1.1 Anniversary Edition—The Ultimate TI-Nspire Graphics Library
« Reply #351 on: August 29, 2013, 10:02:58 am »
I wish I could do that kind of traveling, how was Australia? I hope the spark returns someday, but for now it seems your future is great and I wish you the best of luck with your study and other things :)

Some people need a high five in the face... with a chair.
~EC

Offline Legimet

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +29/-0
    • View Profile
Re: nSDL 1.1.1 Anniversary Edition—The Ultimate TI-Nspire Graphics Library
« Reply #352 on: August 29, 2013, 12:06:55 pm »
Good luck in university, and I hope you continue developing nSDL! :)

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: nSDL 1.1.1 Anniversary Edition—The Ultimate TI-Nspire Graphics Library
« Reply #353 on: August 29, 2013, 04:38:13 pm »
The main issue for me when it comes to traveling is money and work schedule. Since I often work on weekends and rarely have two days off in a row, traveling very far is next to impossible unless it's during one of my vacation weeks. Then come the money issue: If I decide to travel somewhere that costs $2000 total, then it will take me one year to save. Also I always was concerned that traveling alone was not a good idea (although I could just avoid going out at night), but traveling with a friend or family member would be even harder, due to conflicting work/school schedules and possible money issues on his side.

In Eiyeron's case, though, I think there is also the issue about him not even being 18+ yet, meaning that parents might not want him to travel far nor pay for the trip.

Offline SpiroH

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 729
  • Rating: +153/-23
    • View Profile
Re: nSDL 1.1.1 Anniversary Edition—The Ultimate TI-Nspire Graphics Library
« Reply #354 on: August 29, 2013, 06:28:59 pm »
Now that this is going all the way off-topic, i might just say that you can always start off with short distances travels (to a neighbouring country, for instance) to get a feel, and later decide what you should do next. As already said by DJ, it's not a very good idea to go very far to start with and specially to travel alone when you are very young < 18 years. But do learn to take risks when you're young, it will certainly be very useful, funny and sometimes troublesome as well. :)

Offline Matrefeytontias

  • Axe roxxor (kinda)
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1982
  • Rating: +310/-12
  • Axe roxxor
    • View Profile
    • RMV Pixel Engineers
Re: nSDL 1.1.1 Anniversary Edition—The Ultimate TI-Nspire Graphics Library
« Reply #355 on: December 01, 2013, 05:17:14 am »
Epic necro bump, that unfortunately is a bug report,

I found out that nSDL_GetPixel(SDL_Surface*, int, int) is incompatible with surfaces loaded with SDL_LoadBMP(char*) :/ it works with images loaded by IMG_Load(char*) though.

Offline Levak

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1002
  • Rating: +208/-39
    • View Profile
    • My website
Re: nSDL 1.1.1 Anniversary Edition—The Ultimate TI-Nspire Graphics Library
« Reply #356 on: December 01, 2013, 07:04:28 am »
I found out that nSDL_GetPixel(SDL_Surface*, int, int) is incompatible with surfaces loaded with SDL_LoadBMP(char*) :/ it works with images loaded by IMG_Load(char*) though.

Hmmmm, that's interesting, because I knew about a same bug in the OCaml SDL binding where grayscale images (bmp here) were incompatible with set/get pixel.

Is your bmp a grayscale image by any chance ?
I do not get mad at people, I just want them to learn the way I learnt.
My website - TI-Planet - iNspired-Lua

Offline Matrefeytontias

  • Axe roxxor (kinda)
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1982
  • Rating: +310/-12
  • Axe roxxor
    • View Profile
    • RMV Pixel Engineers
Re: nSDL 1.1.1 Anniversary Edition—The Ultimate TI-Nspire Graphics Library
« Reply #357 on: December 01, 2013, 07:07:57 am »
No, it's a classical 24-bits bitmap.

Offline hoffa

  • Project Author
  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 304
  • Rating: +131/-13
    • View Profile
Re: nSDL 1.1.1 Anniversary Edition—The Ultimate TI-Nspire Graphics Library
« Reply #358 on: December 01, 2013, 09:06:04 am »
No, it's a classical 24-bits bitmap.

From the nSDL wiki:
Quote
Returns the pixel's color at (x, y). Assumes the surface has been locked. Does no clipping. Supports 8-, 16- and 32-bit surfaces.

I intentionally did not want to support 24-bit surfaces as they require a few extra operations, and I wanted to keep the pixel manipulation functions as fast as possible.

I just looked at the pixel manipulation code in nSDL, and apparently it should call SDL_Unsupported(), which I think IIRC calls SDL_SetError(). Did you try doing SDL_GetError() after the pixel thing?

Also you shouldn't be handling 24-bit images in speed critical code, as neither of the machines use that as their native display bit depth. You'll lose a lot of performance if you start blitting 24-bit stuff on 16-bit surfaces etc. as the conversion is done on the fly. Convert the surface as you load them.

TL;DR it's not supposed to work
« Last Edit: December 01, 2013, 09:08:37 am by hoffa »

Offline Matrefeytontias

  • Axe roxxor (kinda)
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1982
  • Rating: +310/-12
  • Axe roxxor
    • View Profile
    • RMV Pixel Engineers
Re: nSDL 1.1.1 Anniversary Edition—The Ultimate TI-Nspire Graphics Library
« Reply #359 on: December 01, 2013, 09:21:41 am »
Okay then it would better to throw an error when loading 24-bits bitmaps, because it took me several hours to understand where that "nSDL : Unknown error" came from x.x