Join us on Discord!
You can help CodeWalrus stay online by donating here.

Direct access to the pixel buffer - C Sdk

Started by kotu, August 30, 2016, 11:27:05 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

kotu

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)
  • Calculators owned: TI 84+CE-T
  • Consoles, mobile devices and vintage computers owned: Sega Master System, Sony PlayStation 3
SUBSCRIBE TO THE FUTURERAVE.UK MAILING LIST
http://futurerave.uk

Snektron

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...


kotu

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
SUBSCRIBE TO THE FUTURERAVE.UK MAILING LIST
http://futurerave.uk

c4ooo


kotu

  • Calculators owned: TI 84+CE-T
  • Consoles, mobile devices and vintage computers owned: Sega Master System, Sony PlayStation 3
SUBSCRIBE TO THE FUTURERAVE.UK MAILING LIST
http://futurerave.uk

MateoConLechuga

Quote from: kotu on August 30, 2016, 11:27:05 AM(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.

kotu

#6
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. :)
  • Calculators owned: TI 84+CE-T
  • Consoles, mobile devices and vintage computers owned: Sega Master System, Sony PlayStation 3
SUBSCRIBE TO THE FUTURERAVE.UK MAILING LIST
http://futurerave.uk

Adriweb

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

kotu

Quote from: Adriweb on August 30, 2016, 06:59:09 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)

Quote from: Adriweb on August 30, 2016, 06:59:09 PM
(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
SUBSCRIBE TO THE FUTURERAVE.UK MAILING LIST
http://futurerave.uk

Adriweb

Quote from: kotu on August 30, 2016, 07:14:34 PM
Quote from: Adriweb on August 30, 2016, 06:59:09 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

kotu

Quote from: Adriweb on August 30, 2016, 07:21:06 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
SUBSCRIBE TO THE FUTURERAVE.UK MAILING LIST
http://futurerave.uk

Powered by EzPortal