Omnimaga: The Coders Of Tomorrow
Welcome, Guest. Please login or register.
 
Omnimaga: The Coders Of Tomorrow
25 May, 2013, 01:27:33 *
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 ... 10 11 [12] 13 14 ... 23   Go Down
  Print  
Author Topic: nSDL 1.1.1 Anniversary Edition—The Ultimate TI-Nspire Graphics Library! -  (Read 15343 times) Bookmark and Share
0 Members and 1 Guest are viewing this topic.
calc84maniac
Epic z80 roflpwner
Coder Of Tomorrow
LV11 Super Veteran (Next: 3000)
*
Offline Offline

Gender: Male
Last Login: Today at 00:39:28
Date Registered: 28 August, 2008, 05:09:05
Location: Right behind you.
Posts: 2735


Total Post Ratings: +373

View Profile
« Reply #165 on: 05 April, 2012, 23:52:26 »
0

Yes, the CX supports 65536 colors. In theory, the Prizm can support 4 times as many colors (18-bit) but I haven't confirmed it yet, plus it would waste a lot of memory.
Logged

"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman
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: Yesterday at 19:10:11
Date Registered: 25 August, 2008, 07:00:21
Location: Québec (Canada)
Posts: 50232


Total Post Ratings: +2615

View Profile WWW
« Reply #166 on: 06 April, 2012, 00:00:43 »
0

Thanks for the info, and I see. I think 256 for games on such small screen would be just fine enough anyway.

Also I just got a BSOD on my CX! shocked (well... not really, but the loading screen reminded me of one)
Logged

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

Follow me on Bandcamp|Facebook|Reverbnation|Youtube|Twitter|Myspace
hoffa
LV6 Super Member (Next: 500)
******
Offline Offline

Gender: Male
Last Login: Yesterday at 13:45:23
Date Registered: 28 May, 2011, 20:26:32
Posts: 302


Topic starter
Total Post Ratings: +115

View Profile
« Reply #167 on: 07 April, 2012, 20:09:09 »
0

I've now added hardware 8 bpp on both TC (i.e. Touchpad/Clickpad) and CX models. In fact I restructured the code and there are now 5 different bpp modes: CX SW16 HW16, CX SW8 HW16, CX SW8 HW8, TC SW8 HW8, TC SW8 HW4 (where SWx HWy is software x bpp, hardware y bpp display).

I'm considering implementing double buffering and wondering if it's worth the trouble (in TC models it's unnecessary, no tearing thanks to the slow and shitty LCD). Also I need to fix some mouse issues and do some further fine-tuning before 0.2.0.
Logged
Lionel Debroux
LV10 31337 u53r (Next: 2000)
**********
Offline Offline

Gender: Male
Last Login: Yesterday at 22:19:32
Date Registered: 17 December, 2009, 09:37:25
Location: France
Posts: 1854

Total Post Ratings: +208

View Profile WWW
« Reply #168 on: 07 April, 2012, 21:26:27 »
0

Good, as usual Smiley
Logged

Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.
hoffa
LV6 Super Member (Next: 500)
******
Offline Offline

Gender: Male
Last Login: Yesterday at 13:45:23
Date Registered: 28 May, 2011, 20:26:32
Posts: 302


Topic starter
Total Post Ratings: +115

View Profile
« Reply #169 on: 13 April, 2012, 20:47:16 »
0

Could somebody with a CX do me a favor?

Could you grab the the attached file, send it to your calculator and just see if everything works. Move your finger around the touchpad to move the mouse, if you press it you should see "SDL_MOUSEBUTTONDOWN" showing up. It uses hardware 8 bpp and the touchpad, so I'd like to know if everything works nicely. Thanks for whoever helps me. Smiley

(0.2.0 is advancing nicely, there'll be a lot changes and a bigger "launch" than usually)

* sdl_test.tns (235.71 KB - downloaded 15 times.)
« Last Edit: 13 April, 2012, 20:52:58 by hoffa » Logged
atiatinini
LV1 Newcomer (Next: 20)
*
Offline Offline

Gender: Male
Last Login: 19 November, 2012, 01:04:19
Date Registered: 02 March, 2012, 20:49:13
Location: Portugal
Posts: 19

Total Post Ratings: 0

View Profile
« Reply #170 on: 14 April, 2012, 01:12:08 »
0

It works, but lags a lot. Sometimes the program completely freezes for a few seconds.
But is amazing, thanks!  Smiley
« Last Edit: 14 April, 2012, 01:12:24 by atiatinini » Logged
Nick
LV9 Veteran (Next: 1337)
*********
Offline Offline

Gender: Male
Last Login: Yesterday at 14:17:04
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 #171 on: 14 April, 2012, 02:37:48 »
0

I tried it on a CX CAS (don't know if there's anything different than a normal CX) and i have the same result. I shows up, shows the coordinates, shows the mousebuttondown and coordinates, but lags sometimes for a short while

edit: My calc did a reboot when i pressed [esc] ö i don't think that' normal.. i treid it 3 times, and everytime it did a reboot..
« Last Edit: 14 April, 2012, 02:52:39 by Nick » Logged

hoffa
LV6 Super Member (Next: 500)
******
Offline Offline

Gender: Male
Last Login: Yesterday at 13:45:23
Date Registered: 28 May, 2011, 20:26:32
Posts: 302


Topic starter
Total Post Ratings: +115

View Profile
« Reply #172 on: 14 April, 2012, 04:36:08 »
0

Thanks a lot you both.

Not sure about the rebooting issue, but I fear it has something to do with the mouse, I had the same problem at first but thought I had fixed it (on Touchpad it works). When it comes to mouse lag, it's very weird behavior, but I remember having something like it on my Touchpad at first, fixed it by moving the touchpad scanning function a bit. Could you try the attached program for me? It reads raw values from the touchpad, I'd like if to know if the "Velocity" still lags and updates rarely or if it's fast:
Spoiler for Hidden:
I can only bribe you with a thank you in the readme.

This is how the mouse works on my Touchpad:
<a href="http://www.youtube.com/watch?v=NcVKe_UsCcY" target="_blank">http://www.youtube.com/watch?v=NcVKe_UsCcY</a>

* sdl_test.tns (234.59 KB - downloaded 13 times.)
« Last Edit: 14 April, 2012, 04:41:54 by hoffa » Logged
atiatinini
LV1 Newcomer (Next: 20)
*
Offline Offline

Gender: Male
Last Login: 19 November, 2012, 01:04:19
Date Registered: 02 March, 2012, 20:49:13
Location: Portugal
Posts: 19

Total Post Ratings: 0

View Profile
« Reply #173 on: 14 April, 2012, 06:39:34 »
0

The values change when I use the touchpad but the mouse doesn't appear.  Sad
Logged
hoffa
LV6 Super Member (Next: 500)
******
Offline Offline

Gender: Male
Last Login: Yesterday at 13:45:23
Date Registered: 28 May, 2011, 20:26:32
Posts: 302


Topic starter
Total Post Ratings: +115

View Profile
« Reply #174 on: 14 April, 2012, 06:53:44 »
0

The values change when I use the touchpad but the mouse doesn't appear.  Sad
That's normal, I disabled the mouse so that I can only read raw values (no SDL involved except for the font drawing). So it seems it does update it normally. I think the problem might be similar to the one had some time ago. Thanks a lot, I'll look into it. Smiley
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: Yesterday at 19:10:11
Date Registered: 25 August, 2008, 07:00:21
Location: Québec (Canada)
Posts: 50232


Total Post Ratings: +2615

View Profile WWW
« Reply #175 on: 16 April, 2012, 05:08:53 »
0

I'll give it a try when I have some time, but I have a bug to report for the Plasma program: After a few times running it, when you press enter to run the file, nothing happens at all, even if you ran another Ndless program before. Once your calc rebooted, it seems to work again.
Logged

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

Follow me on Bandcamp|Facebook|Reverbnation|Youtube|Twitter|Myspace
hoffa
LV6 Super Member (Next: 500)
******
Offline Offline

Gender: Male
Last Login: Yesterday at 13:45:23
Date Registered: 28 May, 2011, 20:26:32
Posts: 302


Topic starter
Total Post Ratings: +115

View Profile
« Reply #176 on: 18 April, 2012, 23:01:37 »
0

Just to keep you guys updated, the mouse now works on CX models when using SDL_WaitEvent() (thanks atiatini for the testing), but it still "lags" (actually input lag) when using SDL_PollEvent(), so that among other things remains to be fixed.

Also meanwhile I've been working on an extremely simple image format for those who might prefer to include images in the executable (useful for small sprites and such), along with a converter:



Oh and I'll probably be a bit less active as I plunged into some more serious indie game development.
« Last Edit: 18 April, 2012, 23:08:48 by hoffa » Logged
atiatinini
LV1 Newcomer (Next: 20)
*
Offline Offline

Gender: Male
Last Login: 19 November, 2012, 01:04:19
Date Registered: 02 March, 2012, 20:49:13
Location: Portugal
Posts: 19

Total Post Ratings: 0

View Profile
« Reply #177 on: 19 April, 2012, 00:15:29 »
0

Nice, hopefully we will soon see awesome games (and emulators Smiley) being made with nSDL!  Cheesy

And yes, there is a bug in the plasma demo, I'll probably release an updated version soon. Wink

EDIT: Here it is:

CX:
http://www.mediafire.com/?huad2sed9i378t3
Touchpad/Clickpad:
http://www.mediafire.com/?p36ze746p0ot847
« Last Edit: 20 April, 2012, 20:23:06 by atiatinini » Logged
hoffa
LV6 Super Member (Next: 500)
******
Offline Offline

Gender: Male
Last Login: Yesterday at 13:45:23
Date Registered: 28 May, 2011, 20:26:32
Posts: 302


Topic starter
Total Post Ratings: +115

View Profile
« Reply #178 on: 21 April, 2012, 01:03:26 »
0

Some more updates...

I've added support for own extremely simple image format, and I added a SDL_nDrawStringInRect() function which draws a string within the boundaries of an SDL_Rect, as you could imagine. Here's a little screenshot showing off the NSP_FONT_AUTOSIZE feature (non-monospaced fonts), SDL_nDrawStringInRect() (the purple rectangle is only to show how it fits itself inside it, it's not part of the function), and an image included in the executable (everything is of course well integrated into SDL, the SDL_nLoadImage() function returns an SDL_Surface for example):



Here's also a more recent screenshot of the image converter that'll be included with nSDL 0.2.0:

« Last Edit: 21 April, 2012, 01:08:36 by hoffa » Logged
atiatinini
LV1 Newcomer (Next: 20)
*
Offline Offline

Gender: Male
Last Login: 19 November, 2012, 01:04:19
Date Registered: 02 March, 2012, 20:49:13
Location: Portugal
Posts: 19

Total Post Ratings: 0

View Profile
« Reply #179 on: 21 April, 2012, 01:38:58 »
0

Amazing!  Smiley
Just wondering, how's the performance of this compared to BMP blitting?
Logged
Pages: 1 ... 10 11 [12] 13 14 ... 23   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 1.001 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.