![]() |
Forum Index : Microcontroller and PC projects : PicoMiteVGA does 3D
Author | Message | ||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10310 |
Coming soon |
||||
Grogster![]() Admin Group ![]() Joined: 31/12/2012 Location: New ZealandPosts: 9610 |
Very interesting! ![]() Smoke makes things work. When the smoke gets out, it stops! |
||||
Amnesie Guru ![]() Joined: 30/06/2020 Location: GermanyPosts: 671 |
Hi Peter, impressive how smooth this works! Before I clicked the video I thought it would be more like 2-3 frames per second. Just impressive! Greetings Daniel |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10310 |
The video is with CPUSPEED at 126MHz. At 252MHz it is doing 60FPS, i.e. it is limited by the VGA refresh rate |
||||
Bleep Guru ![]() Joined: 09/01/2022 Location: United KingdomPosts: 633 |
I can see I'm going to have to build a PicoMiteVGA; maybe I'll try Mixtel90, as he's in the UK, see if he's got any spare boards? :-) Edited 2022-05-22 19:37 by Bleep |
||||
Volhout Guru ![]() Joined: 05/03/2018 Location: NetherlandsPosts: 5089 |
Nice Peter! What subset of CMM2 have you ported? PicomiteVGA PETSCII ROBOTS |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10310 |
One more demo before I tidy the code Now with added layer Note the complete absence of flicker Edited 2022-05-22 21:24 by matherp |
||||
Mixtel90![]() Guru ![]() Joined: 05/10/2019 Location: United KingdomPosts: 7937 |
Both demos are very impressive! :) And that's on a PicoMite VGA? lol! It's not supposed to do that, Peter... @Bleep I'm sure we can find something.. (If you are too impatient to wait for the next version. :) ) Mick Zilog Inside! nascom.info for Nascom & Gemini Preliminary MMBasic docs & my PCB designs |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10310 |
Code for second demo ![]() For i=0 To MM.HRes-1 Step 10 Line i,0,i,MM.VRes-1 Next For i=0 To MM.VRes-1 Step 10 Line 0,i,MM.HRes-1,i Next FRAMEBUFFER create FRAMEBUFFER layer FRAMEBUFFER write f j=0 Do y=Sin(Rad(0+j))*MM.VRes\3+MM.VRes\2 For i=1 To MM.HRes-1 yp=Sin(Rad(i+j))*MM.VRes\3+MM.VRes\2 Line i,y,i,yp,1,RGB(green) y=yp Next Inc j FRAMEBUFFER copy f,l,b CLS Loop |
||||
thwill![]() Guru ![]() Joined: 16/09/2019 Location: United KingdomPosts: 4311 |
Wonderful programming, and I don't want to take anything away from Peter's achievements, but of course it can do it with sufficient firmware support. It's a 100+ MHz CPU, I remember X-Wing running on a 486 DX-33. Assuming you aren't loathe to use CSUBs and you don't mind the resolution and colour depth limitations then within the scope of programs manageable by a single developer the limiting factor on what can be achieved with the PicoMite VGA is the limited memory, and with fast storage even that is manageable ... the one exception (I think) being fully double-buffering the screen. YMMV. Best wishes, Tom MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures |
||||
thwill![]() Guru ![]() Joined: 16/09/2019 Location: United KingdomPosts: 4311 |
... OK, that looks like you've found enough memory to double-buffer the screen ? I'm assuming that's using 320 x 240 / 2 / 1024 = 37.5 K of the variable RAM. Or am I making a fool of myself ? Best wishes, Tom MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10310 |
![]() |
||||
phil99![]() Guru ![]() Joined: 11/02/2018 Location: AustraliaPosts: 2640 |
These are excellent enhancements. For the layers, I can imagine often only one colour might be needed per layer. So borrowing from the Mode 1 Tiles idea, could the option of assigning a single colour to each layer be available to save memory? Or is that pushing things too far? |
||||
Amnesie Guru ![]() Joined: 30/06/2020 Location: GermanyPosts: 671 |
Some time ago I read that there will be NO MMBASIC for the Raspberry Pi Pico and now we have gotten so far, thanks to everyone involved! This is so amazing! Greetings Daniel |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |