Omnimaga

Omnimaga => Our Projects => Ndless => Topic started by: tangrs on February 21, 2012, 04:57:52 am

Title: Retro TV effect for Nspire
Post by: tangrs on February 21, 2012, 04:57:52 am
Here is a small novelty I made over the past few days. It's a retro TV effect that works when you switch off your calculator.

Here's a Youtube video of it in action:



Unfortunately, at the moment it only works on the CX model running OS 3.1.

I'm still looking around for a better hooking address but apart from that it works okay-ish. More details in the README if anyone is interested in improving it.

Source and downloads (https://github.com/tangrs/RetroTVEffect4nspire)
Title: Re: Retro TV effect for Nspire
Post by: Jim Bauwens on February 21, 2012, 04:59:42 am
Very nice!
The hook information could be used for the password protector of Levak :)

Good job :)
Title: Re: Retro TV effect for Nspire
Post by: Adriweb on February 21, 2012, 06:43:34 am
awesome, great job :D
Title: Re: Retro TV effect for Nspire
Post by: ExtendeD on February 21, 2012, 08:10:11 am
Nice :)
You may be interested by Ndless's new builtin function nl_set_resident() (on the SVN trunk, to yet upload as a release): http://hackspire.unsads.com/wiki/index.php/Ndless_features_and_limitations#Resident_programs

I'm planning to extend the support for hooks by Ndless, any ideas are welcome. It would include:
 - Hook installation detection (something similar to your is_already_hooked())
 - Standard hook points, to avoid programs having to include themselves the hook adresses (switch on/switch off would be one of them)
 - Multiple hooks at this point
 - Hook uninstallation
Title: Re: Retro TV effect for Nspire
Post by: helder7 on February 21, 2012, 08:11:45 am
how, very nice effect :), i love it
Title: Re: Retro TV effect for Nspire
Post by: Spyro543 on February 21, 2012, 03:14:53 pm
This is in C, right? How did you edit memory values to add the hook?
Title: Re: Retro TV effect for Nspire
Post by: Juju on February 21, 2012, 03:17:58 pm
That looks pretty cool.
Title: Re: Retro TV effect for Nspire
Post by: DJ Omnimaga on February 21, 2012, 03:51:26 pm
Looks nice. What we need next is something that runs in real time on the TI-Nspire (except during games to avoid slowdowns) where there's a slight snow effect in the screen, like TV channels with rabbit ears antenna.
Title: Re: Retro TV effect for Nspire
Post by: tangrs on March 30, 2012, 09:19:42 pm
Nice :)
You may be interested by Ndless's new builtin function nl_set_resident() (on the SVN trunk, to yet upload as a release): http://hackspire.unsads.com/wiki/index.php/Ndless_features_and_limitations#Resident_programs

I'm planning to extend the support for hooks by Ndless, any ideas are welcome. It would include:
 - Hook installation detection (something similar to your is_already_hooked())
 - Standard hook points, to avoid programs having to include themselves the hook adresses (switch on/switch off would be one of them)
 - Multiple hooks at this point
 - Hook uninstallation

Thanks. I did have a look at it but it seems that the calculator crashes when it is called.

Otherwise, I'm very pleased to see a lot of new features in the newer Ndless releases!

On the hook points, I'm curious as to your method to finding hook addresses. My method was to create a custom emulator that enters debug mode when a certain register is written to (i.e. to turn off the screen), make a memory dump and backtrace it using IDA. It is hard to tell however, where is the best place to install the hook  - most of it comes down to trial and error.

Do you have a better way?

This is in C, right? How did you edit memory values to add the hook?

The source code is included if you want to poke around with it. However, I believe the hooking macros are all defined in common.h in the Ndless SDK. You can check out a copy of Ndless source code and look how it's implemented.
Title: Re: Retro TV effect for Nspire
Post by: leafy on March 31, 2012, 12:06:00 am
To make it look a bit cooler, you can try making the screen image fade to white while scaling down vertically, and at the last bit make it scale slower and stretch horizontally a little.
Title: Re: Retro TV effect for Nspire
Post by: Spenceboy98 on March 31, 2012, 12:14:48 am
Make it quit in a diamond shape instead of just a line.