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

0 Members and 4 Guests are viewing this topic.

Offline excale

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 103
  • Rating: +19/-1
    • View Profile
Re: nSDL 1.0.2—A very fast & robust graphics library
« Reply #285 on: January 06, 2013, 04:49:56 pm »
How is debugging property of EMI?
(maybe you were listening to some music during the debug session and youtube spotted them?)

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.0.2—A very fast & robust graphics library
« Reply #286 on: January 06, 2013, 04:55:48 pm »
@Hoffa what bugs are you encountering in fact ? Today I tried to port only the gif loading, and I didn't get any error other than "This file type is not supported" always. I just compiled SDL_image.h, IMG.c and IMG_gif.c (and removed all dependencies like constants and strings relatives to other formats). I just gave up after a few hours ;D but maybe I can help you debugging.

@Excale in fact it's "Cette vidéo n'est pas disponible dans votre pays" but I don't know how to say it properly in English :P

Offline hoffa

  • Project Author
  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 322
  • Rating: +131/-13
    • View Profile
Re: nSDL 1.0.2—A very fast & robust graphics library
« Reply #287 on: January 06, 2013, 05:03:06 pm »
(new page, can't raise awareness like this)
Everybody! Look at this! This violates all international humanitarian laws: http://ourl.ca/14975/333020

How is debugging property of EMI?
(maybe you were listening to some music during the debug session and youtube spotted them?)
Probably because I used "Don't Worry, Be Happy" as the background music.

@Hoffa what bugs are you encountering in fact ? Today I tried to port only the gif loading, and I didn't get any error other than "This file type is not supported" always. I just compiled SDL_image.h, IMG.c and IMG_gif.c (and removed all dependencies like constants and strings relatives to other formats). I just gave up after a few hours ;D but maybe I can help you debugging.
Yeah you have to define LOAD_GIF for it to even compile anything (otherwise it just compiles virtually empty functions, that's why you got the error). I have no idea what the issue nor do I want to think about it. It's some mix of relocation issues with ndless and pure magic. The behavior was irregular and completely illogical to even the most experienced human mind. Shit breaks down when it feels like it, next build doesn't, works with while but not for, reads one string but not the other, doesthefuckdoiknowwhat, etc.
It's worse than writing Brainfuck or Java, or trying to solve a Rubik's cube.

EDIT: Offtopic, but I got out of the Finnish Army this Friday. No more conscription. No more shaved head or asshole sergeants using you as a puppet. No more waking up at 6 AM, no more spending two weeks in the forest. No more 30-hour-long 70-km marches with 60 kg "camping" equipment on your back. No more APILAS, no more RK62, no more M72, no more TM 65 77, no more NSV. Feels great to back in normal life!

« Last Edit: January 06, 2013, 05:59:23 pm by hoffa »

Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: nSDL 1.0.2—A very fast & robust graphics library
« Reply #288 on: January 06, 2013, 06:38:38 pm »
This worked for me : http://www.proxfree.com/youtube-proxy.php

Anyway, love your video x)

GL/HF :D
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

Offline Levak

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1002
  • Rating: +208/-39
    • View Profile
    • My website
Re: nSDL 1.0.2—A very fast & robust graphics library
« Reply #289 on: January 06, 2013, 06:38:40 pm »
(new page, can't raise awareness like this)
Everybody! Look at this! This violates all international humanitarian laws: http://ourl.ca/14975/333020

How is debugging property of EMI?
(maybe you were listening to some music during the debug session and youtube spotted them?)
Probably because I used "Don't Worry, Be Happy" as the background music.
Maybe because you raged like hell on paint with some words some people might be shocked ? :o
« Last Edit: January 06, 2013, 06:39:26 pm by Levak »
I do not get mad at people, I just want them to learn the way I learnt.
My website - TI-Planet - iNspired-Lua

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.0.2—A very fast & robust graphics library
« Reply #290 on: January 06, 2013, 11:48:59 pm »
At least it wasn't copyrighted by Sony Music Entertainment. If that was the case, your video would look suspicious, since a SME copyright block/warning is a very huge sign of rickroll. ;D

Anyway yeah debugging is annoying, and in my case I found it annoying with just TI-BASIC. I can't imagine how bad it must be with lower level languages. >.<

Offline hoffa

  • Project Author
  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 322
  • Rating: +131/-13
    • View Profile
Re: nSDL 1.0.2—A very fast & robust graphics library
« Reply #291 on: January 07, 2013, 04:35:23 pm »
Done!

I finally managed to port SDL_image. The relocation issues were so frustrating I today decided to hardcode the cancerous part. Here's nSDL drawing the OpenBSD fish loaded from a GIF file:



Using the freshly ported SDL_image (which can be downloaded, as usual, here), you can now load images of the following formats: GIF, LBM, PCX, PNM, TGA and XCF.

You should now be able to use much less memory to store those pictures as opposed to using BMP (or the in-code NTI format). GIF images are usually at least 4 times smaller than their BMP counterpart.
« Last Edit: January 08, 2013, 09:36:59 am by hoffa »

Offline fb39ca4

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1749
  • Rating: +60/-3
    • View Profile
Re: nSDL 1.0.2—A very fast & robust graphics library
« Reply #292 on: January 07, 2013, 06:31:04 pm »
Is nDraw part of nSDL or is it a separate project?

Offline hoffa

  • Project Author
  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 322
  • Rating: +131/-13
    • View Profile
Re: nSDL 1.0.2—A very fast & robust graphics library
« Reply #293 on: January 07, 2013, 06:33:35 pm »
There's no such thing as nDraw. Blitting (or "drawing" as I referred it to) is all part of standard SDL.

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.0.2—A very fast & robust graphics library
« Reply #294 on: January 07, 2013, 07:50:07 pm »
Great news! Hopefully this makes Matrefeytontias' F-Zero clone much smaller :P (currently, just one race track is 1 MB large)
« Last Edit: January 07, 2013, 07:51:19 pm by DJ_O »

Offline fb39ca4

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1749
  • Rating: +60/-3
    • View Profile
Re: nSDL 1.0.2—A very fast & robust graphics library
« Reply #295 on: January 07, 2013, 07:57:24 pm »
There's no such thing as nDraw. Blitting (or "drawing" as I referred it to) is all part of standard SDL.
So the picture on the first page no longer applies then.

Offline hoffa

  • Project Author
  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 322
  • Rating: +131/-13
    • View Profile
Re: nSDL 1.0.2—A very fast & robust graphics library
« Reply #296 on: January 07, 2013, 08:22:11 pm »
Nope. Oh wow, that was nearly a year ago. ;D

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.0.2—A very fast & robust graphics library
« Reply #297 on: January 08, 2013, 12:58:29 am »
Yay, awesome :D thanks a lot for it, I'll make a great use of it (especially with F-Zero yeah ;D )

Offline ExtendeD

  • CoT Emeritus
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: nSDL 1.0.2—A very fast & robust graphics library
« Reply #298 on: January 08, 2013, 03:55:00 am »
ExtendeD I really would like you to fix the relocation issues, it's unbelievably horrible (but I suppose you know more than well enough the feeling I'm feeling right now, so no hurry).

Sorry about that. I really need tangrs to debug the issue with the bFLT loader and nSDL.
Ndless.me with the finest TI-Nspire programs

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.0.2—A very fast & robust graphics library
« Reply #299 on: January 08, 2013, 01:20:07 pm »
Here's nSDL drawing the OpenBSD fish loaded from a GIF file:

How did you make it to have the right colours from a gif file ? I'm loading a gif image from /documents/Examples/map.gif and it doesn't have the right colours at all ... Have I to save it as a gif with 16-bits colours ? If so, how can you do it with Gimp ?