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

Piworld

Started by 岩倉 澪, January 28, 2015, 08:43:25 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Dream of Omnimaga

The HP Prime doesn't have a GPU, but there are rumors that it has 2D hardware acceleration. It's a 400 MHz calc with about 32 MB of RAM, though.


Also Miotatsu good luck :D
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

Duke "Tape" Eiyeron

Yah, Prizm were once the subject of research about 2d accelerating chip somewhere, but this seemed to been dropped some weeks after. Let's hope that the Prime have some graphical chips to raise up to eleven its graphical epicness. (Mooode 7! :3)
  • Calculators owned: A lot.

Dream of Omnimaga

Mode 7 would need ASM/C IMHO. People simulated some rudimentary mode-7 like stuff before and at full resolution they got about 25 FPS even with no rotation. I think proper mode 7 would have serious speed issues in HP PPL unless you used the polygon command to draw the maps or something (which would only allow 1 color)
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

Duke "Tape" Eiyeron

Hmmm. On ASM/C it would be quite fast. Just check how fast we got it running on Prizm (~15FPS it seems). That would be a great tool to have in future games.
  • Calculators owned: A lot.

TheMachine02

Seing the chip there is inside, it does seems that there is a 2D accelerator, however it is only true for the dev version   <_< Idk wich chip is in the commercial version.
This accelerator allow fast pixel/line drawing, as well as per-pixel logic .... but I guess it is mainly accessible from asm... ASM guru anyone ?  :P

Snektron

I only do some Z80, but im guessing it would be some kind of 'out' equivalent (communicates with hardware devices).
  • Calculators owned: TI-84+
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


Dream of Omnimaga

#66
Quote from: TheMachine02 on February 23, 2015, 06:09:42 PM
Seing the chip there is inside, it does seems that there is a 2D accelerator, however it is only true for the dev version   <_< Idk wich chip is in the commercial version.
This accelerator allow fast pixel/line drawing, as well as per-pixel logic .... but I guess it is mainly accessible from asm... ASM guru anyone ?  :P
Do you mean the HP Prime? I am curious if Critor and others ever checked the internals of a commercial release to see if it might have 2D acceleration. All I know is that pixel/line/shape drawing is incredibly fast.


That said, if Piworld ever requires a quad core with 8 GB of RAM and a GPU with 512 TB of VRAM, then forget about anyone porting it to the HP Prime, let alone another calc model or smartphone. :P
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

岩倉 澪

As for progress: I'm getting the hang of how textures work in OpenGL, and have succesfully rendered a tile (without alpha though)


https://gist.github.com/miotatsu/177ec5ec06a9b830cfe7

Dream of Omnimaga

Looks good. Is that the full size or was the image scaled down?
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

岩倉 澪

scaled down, the sprite is 124x80, intended to be displayed on a 1920x1080 screen res, but that screen is 960x540

here is the sprite displayed with the logical screen size matching the actual screen size so that the image doesn't get scaled:

Dream of Omnimaga

Aaah I see now. This renders quite well actually so far. I wonder how it will look like at 4K resolution?
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

岩倉 澪

easy to test,
4K w/ linear interpolation:

4K w/ nearest neighbor:

Dream of Omnimaga

Aah I see now. I was unsure if it was some sort of vectorial or something. How does it look like in both cases if you put multiple blocks next to each others to form a floor, along with some stairs?
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

Snektron

I've always liked nearest neighbor more than linear interpollation though
  • Calculators owned: TI-84+
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


岩倉 澪

Quote from: DJ Omnimaga on February 24, 2015, 07:07:43 AM
Aah I see now. I was unsure if it was some sort of vectorial or something. How does it look like in both cases if you put multiple blocks next to each others to form a floor, along with some stairs?
Can't test that easily quite yet because of the alpha and the way I'm placing the tile right now is pretty primitive so it isn't easy to just plop in more tiles. It isn't vectorial, but the actual game tiles will be textured models (or I should say I want to experiment with that at least) whereas this is just the tile I made in gimp as a single texture being drawn over two triangles (2D style rendering)

Quote from: Cumred_Snektron on February 24, 2015, 07:23:47 AM
I've always liked nearest neighbor more than linear interpollation though
Yeah I'm liking the nearest neighbor as well

Powered by EzPortal