PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Particle Demo

Hi all,

I've been using PocketFrog for a few weeks now, and I ported over some old code I wrote years ago that used a VGA buffer... Anyway, the results were impressive.

I'm posting the code along with the entire project over here:
http://www.omnytex.com/pf/fileexchange/fileexchange.asp

hopefully, it will compile for you guys. Lst me know what you think.

Jason
is this built with PocketFrog plus? It won;t build in regular PF & uses a vga font so I guess the answer is yes. I will try to hack so it works with standard Frog.

Update:
Tried to build in eVC & VC6 with no luck. All sorts of new errors to do with language etc. Not all is lost however as I can see an example of using debug strings which I have never seen in action before.

I will include the source into a new project sometime & get it working
Great work!!!

Your algorithm is not very complex but it looks impressive!

To Canon:
Try to build this with the PocketFrog 0.7.0 and EVC.
The compile problem in VC6 comes from the unicode. If you want to build it in VC6, there are something you need to change:
* Check all the string, modify them like this:
L"..."
TEXT("...")
* Change wsprintf to _stprintf
Maybe it works this time, if I haven't missed anything I changed.
If you want, I can give you the VC6 compilable version.
No problem I can resolve myself. It would not build in either. I only tried in VC6 in case it worked first time. The only PF0.7 stuff seems to be the fonts & the overloaded fillrect.
fast_rx · 20 Jun 2003, 17:18 UTC — re:particle demo
Sorry about the bad coding of the strings. That's one aspect of c++ that I hate... Does anyone know of a good reference for differences between TCHAR, LPCSTR, etc, along with when to use each?

Anyway, back to the subject. This does require PF 0.7 since it uses the VGAText for a frames per second display.

Speaking of frames per second and performance... On a toshiba e740 (400 MHz X-scale), I only get 45 FPS whereas on a 200 MHz compaq arm device, I get 65. I know that's been discussed, but the thing that REALLY gets me is that the toshiba's frame rate drops to 25 FPS if you press the screen with the stylus. I do have code for a stylus down, but it doesn't affect the compaq hardly at all.

I've noticed the slow down on all the demos I've used on it.
If you want to know how to code strings to work between VC6 & eVC I can tell you as I went through this learning curve.
The bottom line is that if you use the TCHAR concept throughout then pretty much everything works, eg: _itoa or _ itow get replaced by _itot which is the TCHAR equivalent & works on both. With paths I just use #IFDEF _VC6 to determine if I'm on PC or not.
It does not take long to find a way to code everything to work & the only secret differences are things like stack size which is smaller on eVC.

update: Downloaded PF 0.7 and tried for 1 hour to get demo to build. Left with 5 linker errors which seem to be the new functions like suspend/resume??????? Will look at install docs for 0.7 when I get time