The shoutbox is currently out of service. Join us on Discord instead.
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.

DJ 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

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)

DJ 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)

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.

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).
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


DJ Omnimaga

February 23, 2015, 06:36:34 pm #66 Last Edit: February 23, 2015, 06:38:05 pm by DJ Omnimaga
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

岩倉 澪

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

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

DJ Omnimaga

Looks good. Is that the full size or was the image scaled down?

岩倉 澪

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:

DJ Omnimaga

Aaah I see now. This renders quite well actually so far. I wonder how it will look like at 4K resolution?

岩倉 澪

easy to test,
4K w/ linear interpolation:

4K w/ nearest neighbor:

DJ 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?

Snektron

I've always liked nearest neighbor more than linear interpollation though
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