* WalrusIRC

You need to have 5 posts and not be part of restricted usergroups in order to use the WalrusIRC embedded shoutbox. However, you can also access our IRC channel called #CodeWalrus via EFnet.

Author Topic: Direct access to the pixel buffer - C Sdk  (Read 631 times)

0 Members and 1 Guest are viewing this topic.

Offline kotu

  • Walrus Dehumidifier
  • Super User
  • Join Date: Aug 2016
  • Location: UK
  • Posts: 847
  • Post Rating Ratio: +6/-6
    • dj_kotu
    • @UCAy2ZF4hbc08iStnTn6jgxQ
    • rowanmedhurst
    • @djkotu
    • @romanov-psyco
    • View Profile
    • futurerave.uk
  • Gender: Male
Direct access to the pixel buffer - C Sdk
« on: August 30, 2016, 11:27:05 am »
Does anyone here have experience of writing directly to the pixel buffer with the C Sdk?

I can't seem to get it to work - indeed, it doesn't seem to be properly catered for, as far as I can see. Hmm!

(you want this for super-fast custom drawing functions)
« Last Edit: August 30, 2016, 11:29:42 am by kotu »


  • Calculators owned: TI 84+CE-T
  • Consoles, mobile devices and vintage computers owned: Sega Master System, Sony Playstation 3

Offline Snektron

  • Lvl 69 Russian Snake
  • CodeWalrus Staff
  • Super User
  • Topic Management
  • Join Date: Dec 2014
  • Location: Netherlands
  • Posts: 3151
  • Post Rating Ratio: +31/-0
  • SSSssssss.....
    • RobinDeWalvis
    • Kzyrox
    • RobinDeWalvis
    • View Profile
    • quantuminfinity
  • Gender: Male
Re: Direct access to the pixel buffer - C Sdk
« Reply #1 on: August 30, 2016, 12:00:04 pm »
You mean for CE developement? you can just write to the VRAM and it will show up. You can see how i did it in my ray marcher here: https://github.com/Snektron/CERM/blob/master/graphics.h (keep in mind this uses an old version of the SDK, and i didnt bother using the gfx library since i wanted to get the full color)
  • Calculators owned: TI-84+
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


Offline kotu

  • Walrus Dehumidifier
  • Super User
  • Join Date: Aug 2016
  • Location: UK
  • Posts: 847
  • Post Rating Ratio: +6/-6
    • dj_kotu
    • @UCAy2ZF4hbc08iStnTn6jgxQ
    • rowanmedhurst
    • @djkotu
    • @romanov-psyco
    • View Profile
    • futurerave.uk
  • Gender: Male
Re: Direct access to the pixel buffer - C Sdk
« Reply #2 on: August 30, 2016, 12:09:37 pm »
Ok - thanks - but looks like you are writing directly to the screen and not the back buffer. I want the back buffer.
  • Calculators owned: TI 84+CE-T
  • Consoles, mobile devices and vintage computers owned: Sega Master System, Sony Playstation 3

Online c4ooo

  • ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
  • Super User
  • CW Contest II Winner
  • *
  • Join Date: Aug 2015
  • Location: 127.0.0.1
  • Posts: 877
  • Post Rating Ratio: +7/-2
  • ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
    • View Profile
  • Gender: Male
Re: Direct access to the pixel buffer - C Sdk
« Reply #3 on: August 30, 2016, 12:58:15 pm »
The back buffer is just VRAM+320*240.
??? ??? ???
C'est une signature

Offline kotu

  • Walrus Dehumidifier
  • Super User
  • Join Date: Aug 2016
  • Location: UK
  • Posts: 847
  • Post Rating Ratio: +6/-6
    • dj_kotu
    • @UCAy2ZF4hbc08iStnTn6jgxQ
    • rowanmedhurst
    • @djkotu
    • @romanov-psyco
    • View Profile
    • futurerave.uk
  • Gender: Male
Re: Direct access to the pixel buffer - C Sdk
« Reply #4 on: August 30, 2016, 01:47:40 pm »
No problem, I got it now
  • Calculators owned: TI 84+CE-T
  • Consoles, mobile devices and vintage computers owned: Sega Master System, Sony Playstation 3

Offline MateoConLechuga

  • Full User
  • Join Date: Jan 2015
  • Location:
  • Posts: 208
  • Post Rating Ratio: +19/-1
    • View Profile
Re: Direct access to the pixel buffer - C Sdk
« Reply #5 on: August 30, 2016, 03:03:22 pm »
(you want this for super-fast custom drawing functions)
False; the functions available in the graphx library are going to be faster than anything people can come up with in C.

Offline kotu

  • Walrus Dehumidifier
  • Super User
  • Join Date: Aug 2016
  • Location: UK
  • Posts: 847
  • Post Rating Ratio: +6/-6
    • dj_kotu
    • @UCAy2ZF4hbc08iStnTn6jgxQ
    • rowanmedhurst
    • @djkotu
    • @romanov-psyco
    • View Profile
    • futurerave.uk
  • Gender: Male
Re: Direct access to the pixel buffer - C Sdk
« Reply #6 on: August 30, 2016, 04:14:39 pm »
Possibly some custom routines image processing for example which aren't provided in the SDK.

Faster than multiple calls to GetPixel/SetPixel (or whatever the equivalent functions are called) is what I meant. :)
« Last Edit: August 30, 2016, 04:22:01 pm by kotu »
  • Calculators owned: TI 84+CE-T
  • Consoles, mobile devices and vintage computers owned: Sega Master System, Sony Playstation 3

Offline Adriweb

  • Full User
  • CodeWalrus Supporter
  • *
  • Join Date: Jan 2015
  • Location: France & Canada
  • Posts: 397
  • Post Rating Ratio: +7/-0
    • Adriweb
    • @Adriweb
    • Adriweb
    • @UC-UIrbk5SuaUCvnV6SQvt-Q
    • /u/Adriweb
    • Adriweb
    • View Profile
    • TI-Planet.org
  • Gender: Male
Re: Direct access to the pixel buffer - C Sdk
« Reply #7 on: August 30, 2016, 06:59:09 pm »
You should take a look at the sprite functions, then :)

(BTW, the back buffer is only there/usable when you're in 8bpp, as this uses half the VRAM)
  • Calculators owned: TI-Nspire CX CAS, TI-Nspire CX, TI-Nspire CAS (x3), TI-Nspire (x2), TI-Nspire CM-C CAS, TI-Nspire CAS+, TI-80, TI-82 Stats.fr, TI-82 Plus, TI-83 Plus, TI-83 Plus.fr USB, TI-84+, TI-84+ Pocket SE, TI-84+ C Silver Edition, TI-84 Plus CE, TI-89 Titanium, TI-86, TI-Voyage 200, TI-Collège Plus, TI-Collège Plus Solaire, 3 HP, some Casios
Co-founder & co-administrator of TI-Planet and Inspired-Lua

Offline kotu

  • Walrus Dehumidifier
  • Super User
  • Join Date: Aug 2016
  • Location: UK
  • Posts: 847
  • Post Rating Ratio: +6/-6
    • dj_kotu
    • @UCAy2ZF4hbc08iStnTn6jgxQ
    • rowanmedhurst
    • @djkotu
    • @romanov-psyco
    • View Profile
    • futurerave.uk
  • Gender: Male
Re: Direct access to the pixel buffer - C Sdk
« Reply #8 on: August 30, 2016, 07:14:34 pm »
You should take a look at the sprite functions, then :)
For image processing?? lol, there is plenty of stuff in image processing thats complicated, trust me.

But also beyond computer vision there are plenty of graphic functions one might want to write which are not part of any SDK. Probably an infinite number  8)

(BTW, the back buffer is only there/usable when you're in 8bpp, as this uses half the VRAM)
Yes I know.
  • Calculators owned: TI 84+CE-T
  • Consoles, mobile devices and vintage computers owned: Sega Master System, Sony Playstation 3

Offline Adriweb

  • Full User
  • CodeWalrus Supporter
  • *
  • Join Date: Jan 2015
  • Location: France & Canada
  • Posts: 397
  • Post Rating Ratio: +7/-0
    • Adriweb
    • @Adriweb
    • Adriweb
    • @UC-UIrbk5SuaUCvnV6SQvt-Q
    • /u/Adriweb
    • Adriweb
    • View Profile
    • TI-Planet.org
  • Gender: Male
Re: Direct access to the pixel buffer - C Sdk
« Reply #9 on: August 30, 2016, 07:21:06 pm »
You should take a look at the sprite functions, then :)
For image processing?? lol, there is plenty of stuff in image processing thats complicated, trust me.
Well, I should know, my master thesis is about image processing ;)

But I believe at some point you were referring to handling things that I understand sprite functions would be helpful with.
But anyway, it's not going to be "feasible" to do complex things on this weak device :( (though it depends what you'd call complex - we've seen a 3d animations on the CE, running smoothly, for instance)
  • Calculators owned: TI-Nspire CX CAS, TI-Nspire CX, TI-Nspire CAS (x3), TI-Nspire (x2), TI-Nspire CM-C CAS, TI-Nspire CAS+, TI-80, TI-82 Stats.fr, TI-82 Plus, TI-83 Plus, TI-83 Plus.fr USB, TI-84+, TI-84+ Pocket SE, TI-84+ C Silver Edition, TI-84 Plus CE, TI-89 Titanium, TI-86, TI-Voyage 200, TI-Collège Plus, TI-Collège Plus Solaire, 3 HP, some Casios
Co-founder & co-administrator of TI-Planet and Inspired-Lua

Offline kotu

  • Walrus Dehumidifier
  • Super User
  • Join Date: Aug 2016
  • Location: UK
  • Posts: 847
  • Post Rating Ratio: +6/-6
    • dj_kotu
    • @UCAy2ZF4hbc08iStnTn6jgxQ
    • rowanmedhurst
    • @djkotu
    • @romanov-psyco
    • View Profile
    • futurerave.uk
  • Gender: Male
Re: Direct access to the pixel buffer - C Sdk
« Reply #10 on: August 30, 2016, 09:08:37 pm »
But I believe at some point you were referring to handling things that I understand sprite functions would be helpful with.

Are you sure you didn't see the sprites in my sig and get confused!!??? Lol  (-_(//));
  • Calculators owned: TI 84+CE-T
  • Consoles, mobile devices and vintage computers owned: Sega Master System, Sony Playstation 3

 


You can also use the following HTML or bulletin board code to share it on your page or forum signature!


Also do not forget to check our affiliates below.
Planet Casio TI-Planet Calc.news BroniesQC BosaikNet Velocity Games