Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - hoffa

Pages: 1 ... 12 13 [14] 15 16 ... 22
196
Miscellaneous / Re: topic about yesterday
« on: March 05, 2012, 01:29:58 pm »
I hope that this community can be mature enough to handle such discussions in the future
I doubt it can. Those who discuss (and I'm talking about a real discussion here, not some monkey diarrhea-throwing competition) matters such as religion on a forum are not mature enough in the first place. That's the impression I have gotten, but I'm sure it's more than just an impression.

197
Miscellaneous / Re: topic about yesterday
« on: March 05, 2012, 10:57:51 am »
Religion has absolutely nothing to do with Omnimaga and should be completely and in every way left out of here. And that means no special privileges for anyone. I've been enough on the Internet to know any "discussion" or "debate" on religion eventually turns into a massive shitfest (my yesterday's flamebait quote was there to release the Kraken and end the vicious circle of retarded arguments and one-way thinking; it thankfully got locked quickly). It's like the YouTube comment section all over again when it comes to religion and the Internet. If something does not fit with one's beliefs on Omnimaga or any other nonreligious place, then he or she must turn away or leave.

198
nSDL / Re: SDL for the TI-Nspire
« on: March 04, 2012, 06:13:18 pm »
Nice, keep up the good work!  ;)

Also, will it be possible to port VisualBoyAdvance? It's SDL-based.  :D
Depends what exactly are the libraries used by VBA, but sure, with some trimming it shouldn't be too big of an issue.
EDIT: Reo, are you sure about it? I honestly don't have an idea, but VBA might be optimized quite a bit as it's already a robust and mature program.

199
nSDL / Re: SDL for the TI-Nspire
« on: March 04, 2012, 05:29:28 pm »
Actually this'll be the last update for today. On the previous screen you can see that gradient, but it only shows 7 colors and it doesn't seem to be consistent. That's because SDL's palette color mapper is crap (or not suited for 4-bit displays), so I decided to get completely rid of the palette and replace the color mapper code by a one-liner. It should be faster, much better, and should simplify and speed things up generally as all the bytes in the screen buffer are already within the 0-15 range. I'm not entirely sure that it won't cause any issues later (not sure how SDL deals with blitting surfaces with different formats etc.), but currently it seems to be working well, and here's the result (compare with the previous one, it's the same code for the gradient) (oh, also notice odd coordinates work well):



Here are the basic things I still need to do before we have a first beta version of SDL for the TI-Nspire:
- Get the BMP blitting to work
- Fix the events (it currently sends loads of them and at inappropriate moments; also some stuff with the joystick I need to fix)
- Implement the timers system fully
(- Add own function to blit images from array data)

Those are the most important things and the first things that come to my mind.

BTW, on my calculator performance-wise it seems quite fast, it's rather snappy and responsive although it's updating the whole screen every time and a lot more than it should (event system that needs working on). It's a very simple program but it's good to see it runs fast.

200
News / Re: OS 3.2 blocks Ndless
« on: March 04, 2012, 04:54:49 pm »

Don't be too fast at saying nDoom is not interesting for teachers.

Anybody wondering  how it works is going to find out very interesting trigonometry equations :)
And all kinds of weird hacks for lightning fast mathematical functions and whatnot.

201
nSDL / Re: SDL for the TI-Nspire
« on: March 04, 2012, 02:28:27 pm »
And last update today: I wrote a first version of the non-CX video code. It works poorly with anything odd (as opposed to even; doesn't handle single nibbles when copying data), but I have some results:



(Oh, and I got to try it on my own TI-Nspire, which is nice; seems to be working well with that primitive example)

202
nSDL / Re: SDL for the TI-Nspire
« on: March 04, 2012, 01:21:38 pm »
Oh boy finally I have some code that initializes and runs stably on both calculators. I eventually noticed there was an extremely annoying memory leak that caused completely unpredictable and inconsistent behavior only with non-CX code (in non-graphical parts). Just before I hung myself I magically managed to fix the issue by fixing another issue. It's so goddamn reliving to see this showing up in the console no matter how many times you run the program:


Feels good man.

It also now prevents you from launching any code not compiled for the current calculator:

203
nSDL / Re: SDL for the TI-Nspire
« on: March 03, 2012, 06:38:36 pm »
Seems like getting it working on the classical TI-Nspire has been more difficult than I thought. I can feel I'm pretty to close to getting it run, but those palettes, 4-bit pixels and whatnot have been a pain in the ass. This is the sort of thing I've been looking at for the last few hours:

Figuring out the cause of the issue is also always a major buttpain. Even more annoying is to go to sleep and leave it in its current state.

Anyway, on a side note, that whole Ndless-being-blocked-in-3.2 thing gave me quite a blow to the head. I have to admit I'm pretty fucking frustrated; I expected it but didn't think it'd come this quickly. Right now I feel like the work I'm doing is completely useless, and realistically speaking it is. It may take a month (or more) to have a first more or less stable version of SDL, from then on it takes time for people to learn the library/port programs. At that time 3.2 will be out, it'll be the shiny new thing and 3.1 will be outdated. Even I won't feel like staying on an "old" platform developing for a tiny minority. Even if I'd like to, I can't, as I'm getting my ass conscripted for about a year in the Finnish Army (yes I'm Finnish and we have conscription), and after that I'm moving to the UK for my university studies. There I will hardly ever use my TI-Nspire and will most probably develop on other platforms. I will try to finish this thing even for the sake of it (and to be able to add "ported SDL to a calculator" on my CV). Just realized it'll possibly be my last project on a calculator, but we'll see how it eventually turns out.

204
News / Re: OS 3.2 blocks Ndless
« on: March 03, 2012, 01:26:21 pm »
Two major differences and disadvantages compared to iOS jailbreaking for instance is that the userbase is a lot smaller (i.e. less people hacking around) and a calculator is a lot less complex than a mobile phone with a full-fledged operating system (i.e. less vulnerabilities). I have to admit this is quite demotivating as far as the SDL port I'm working on is concerned.

205
nSDL / Re: SDL for the TI-Nspire
« on: March 02, 2012, 07:00:14 pm »
It shouldn't, no. Weird, works very well on the emulator.
It's still some early code though, I haven't thoroughly tested it (and more generally, the tinspire_test.tns on github doesn't necessarily have to work; I just push the changes when I feel like it). I think I'll write the video driver for non-CX first so that I have a better idea of the behavior on both machines.
Thanks again anyway, I'll look into it more tomorrow.

EDIT: It does try to load a BMP, but I don't think it should stop it from running, as it just returns NULL and moves on. It's normal that it doesn't work when holding the key, that's how events work in SDL. SDL_EnableKeyRepeat() should enable that behavior though, but I'm not entirely sure if it works currently as I haven't fully implemented the timers system (in fact there's only SDL_Delay()).

206
nSDL / Re: SDL for the TI-Nspire
« on: March 02, 2012, 04:29:33 pm »
Thanks for the information! I think the freezes and clock icon appearing might be caused by some issues with the input code that sends a gazillion events (and needs fixing), or then by the main loop that runs too fast (or, in the worst case, too slow). Seems like I'll have to slowly start writing the non-CX graphics code so I can myself try it on my Touchpad so as to see how it runs.

Anyway, I added "classical" SDL events (those SDLK_* things for instance) which took quite a bit of time for the keymaps and whatnot, but again it behaves a bit weird with SDL_PollEvent.

EDIT: SDL doesn't seem to handle 4-bit color at all, which is a bit trickier. I think I'll have to pretend it's an 8 BPP display and just before copying to the framebuffer pack it in 4 bits or something.

207
nSDL / Re: SDL for the TI-Nspire
« on: March 02, 2012, 01:17:11 am »
You're trying it on the classical TI-Nspire I suppose (and hope)? I forgot to mention it but I'm only working on the CX right now (the classical one is another story because of its annoying 4-bit pixels, which requires some special care), and as such it should only work on that calculator (which, funnily enough, I do not own; relying fully on the emulator).

EDIT: I'd appreciate it if somebody could check if the TNS works as it should on their physical CX. :)

208
nSDL / Re: SDL for the TI-Nspire
« on: March 01, 2012, 02:15:12 pm »
I wrote an early version of the joystick input driver (i.e. the TI-Nspire's keypad works as a SDL "joystick"). I behaves a bit weird with SDL_PollEvent (endless events once the first one is fired), but with SDL_WaitEvent it seems to be behaving as it should. It has two axes obviously (left/right and up/down) and 24 buttons (only the most used ones are currently included). No hats, but the touchpad could be used as a joystick trackball though. Anyway if you want to try it out yourself grab the tinspire_test/tinspire_test.tns on github, you should be able to paint the screen using the arrow keys and exit using esc. Check the tinspire_test.c file if you want to see what the code looks like (it's a big SDL hell though, I just quickly add code to test it).



BTW, should the joystick fire events as long as an arrow key is pressed or should it just fire the very first one? The former seems more logical to me when it's about joysticks.

209
nSDL / Re: SDL for the TI-Nspire
« on: February 28, 2012, 04:28:31 pm »
1) None currently, but it's sometimes a bit of a mystery to know whether or not a certain issue is caused by global variables (e.g. I'm currently unable to blit BMPs although reading and loading seems to be working; it takes quite a bit of time to go through the code always having in mind the problem might not be caused by the code itself).

2) Video, events, timers and input (i.e. "joystick") are the main things I'm planning to implement. I haven't looked at audio, but it's not impossible that it'll also be included. EDIT: SDL_image and SDL_gfx shouldn't be too difficult to port.

SDL_DisplayFormat is a practically platform-independent function, so it should already work.

210
nSDL / Re: SDL for the TI-Nspire
« on: February 28, 2012, 11:38:09 am »
Alrighty back from the mountains, I can resume the work. It seems that the current code works well when it comes to drawing rectangles and updating specific parts of the screen, which is great. This might mean drawing sprites (and more generally, BMP images) will work without having to do too much work.


Pages: 1 ... 12 13 [14] 15 16 ... 22