Author Topic: Retro TV effect for Nspire  (Read 8271 times)

0 Members and 1 Guest are viewing this topic.

Offline tangrs

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 229
  • Rating: +98/-0
    • View Profile
    • tangrs blog
Retro TV effect for Nspire
« 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

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: Retro TV effect for Nspire
« Reply #1 on: February 21, 2012, 04:59:42 am »
Very nice!
The hook information could be used for the password protector of Levak :)

Good job :)

Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: Retro TV effect for Nspire
« Reply #2 on: February 21, 2012, 06:43:34 am »
awesome, great job :D
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

Offline ExtendeD

  • Project Author
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: Retro TV effect for Nspire
« Reply #3 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
Ndless.me with the finest TI-Nspire programs

Offline helder7

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 185
  • Rating: +33/-1
    • View Profile
Re: Retro TV effect for Nspire
« Reply #4 on: February 21, 2012, 08:11:45 am »
how, very nice effect :), i love it

Offline Spyro543

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1189
  • Rating: +74/-3
    • View Profile
Re: Retro TV effect for Nspire
« Reply #5 on: February 21, 2012, 03:14:53 pm »
This is in C, right? How did you edit memory values to add the hook?

Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
Re: Retro TV effect for Nspire
« Reply #6 on: February 21, 2012, 03:17:58 pm »
That looks pretty cool.

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.

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: Retro TV effect for Nspire
« Reply #7 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.

Offline tangrs

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 229
  • Rating: +98/-0
    • View Profile
    • tangrs blog
Re: Retro TV effect for Nspire
« Reply #8 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.
« Last Edit: March 30, 2012, 09:24:24 pm by tangrs »

Offline leafy

  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1554
  • Rating: +475/-97
  • Seizon senryakuuuu!
    • View Profile
    • keff.me
Re: Retro TV effect for Nspire
« Reply #9 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.
In-progress: Graviter (...)

Offline Spenceboy98

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 547
  • Rating: +59/-2
    • View Profile
Re: Retro TV effect for Nspire
« Reply #10 on: March 31, 2012, 12:14:48 am »
Make it quit in a diamond shape instead of just a line.
I like milk.