yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Development and Hacking General] Mollusk:
Ok, I'm off, quick video before I go !

http://www.palib.info/blog/flvplayer.swf?file=http://www.xflib.net/Files/Box2DAngle.flv

I added the possibility to change a static rectangle's angle... Quite important to do some nice stuff !

Still not releasing though, sorry :/ I'll probably release it tomorrow. I guess even if it's not using the fixed point version of Box2D yet, the performance is ok for quick testing/fooling around, for an alpha version... The only reason why I'm not releasing yet is that I very occasionaly get a Box2D error saying the rectangle dimensions aren't correct, and have no idea why :s I can't seem to reproduce it yet, quite strange. I'm 99% sure it's a problem on my side of the code though ^^

I checked out very quickly pocket physics code. I haven't used any of it yet (though I did kind of copy the buttons ^^). I'm getting familiar with Box2D (the doc is much better than I thought :p) and doing it my way, then I'll check out Pocket Physics to see what I missed and what can be enhanced, etc... I'll try to keep a similar format to have compatible environments, as a few 'puzzles'/scenes (or whatever you want to call them) already exist for pocket physics...

edit :

Well, Box2D allows it, so there's no reason. The code I need to do (like the current one) only does 2 things :

1. Create an object and send over to Box2D

2. Update the display according to what Box2D changed (angle, position...)

(and you could add like 1b for moving around/changing angle, but that's really minor stuff)
[Windows Mobile Development and Hacking General] flaviopac:
Wow!!!

YOU are incredible!!!

I can't wait for that!!!!!

:cool:
[Windows Mobile Development and Hacking General] daniel309:
mollusk, just wanted to let you know that there is a fixed point version of box2d out there that was tweaked by the original author of pocket physics. you can get it here:

http://tobw.net/ds/box2d_svn_r80_fixed.tgz

I dont know if this helps (or if this is any different to the fixed point version in the box2d svn), but maybe it doesnt have the problems you are having...

just trying to help to get you closer to a release :-)

daniel.
[Windows Mobile Development and Hacking General] nimodo:
so while waiting, you may play around with the Box2D TestBed, if you like :)

look here http://www.box2d.org/forum/viewtopic.php?f=5&t=395

only tested on htc touch cruise. you need to download ogles.zip and PocketTest.zip.

Extract and copy the 3 files in the same directory on your ppc

middle button: menu

mouse: move objects or scroll image

up/down or wheel: zoom

left/right/1/2: depending on the testexample

camera: launch bomb

.... no warranty,its only experimental.... :)

the pyramide sample is veeeery slooow
[Windows Mobile Development and Hacking General] orlandojumpoff:
i feel like i cheated on my gf cause those vids just gave me an orgasm
[Windows Mobile Development and Hacking General] TheChampJT:
Great work! Can't wait for full app, gonna be awesome
[Windows Mobile Development and Hacking General] Mollusk:
Yup, I know that ;) Haven't tested it yet as it feels better to use the latest and 'official' version.

Apparently they managed to get all the testbeds work perfectly with the fixed point version, so I'm pretty sure I missed something...
[Windows Mobile Development and Hacking General] Mollusk:
Nope, didn't get any time to check it out :/ Just managed to get a few minutes to add joints and a pause button (to make creating a bit easier) ^^

http://www.palib.info/blog/flvplayer.swf?file=http://www.xflib.net/Files/Box2DJoint.flv
[Windows Mobile Development and Hacking General] flaviopac:
Wow...

I can't wait! for that!! :D:D
[Windows Mobile Development and Hacking General] nimodo:
Hola Mollusk

I'm starting in graphical programing and i would appreciate if you could explain, how you draw - using the stylus - on the pocket screen and which graphic-libraries you are using.

Could you post some routine, or describe the concept ? That would be great !

thanx - nimodo
[Windows Mobile Development and Hacking General] MSanad:
Would like to get in on this too
[Windows Mobile Development and Hacking General] docnas:
PLZ PLZ PLZ let this work on my wizard.......
[Windows Mobile Development and Hacking General] Mollusk:
Well, I'm using the library I made for graphics : XFlib. There would be pretty much 3 solutions for drawing :

1. Have a blank bitmap, and plot pixels on it when you use the stylus, but this would be pretty slow in the long run

2. Use textures and rotate/zoom them. This would be the best-looking solution, but also the slowest, so I'm not doing this right now...

3. I just use the Stylus position and send them over to a set of 'vectorial' functions I use in XFlib. So basically, for a circle, I just read the center and radius, and XFlib does the drawing. Same thing for the boxes, I send over the 4 corners and the vector part draws the lines.

Concerning code, I'll release the sources with the first release (which I really hope to have soon... Haven't been able to reproduce the bug yet, and I gave the exe to a friend, let's see if he complains ^^). (reminds me I forgot to release the sources for perpetual, anyone interested ?)

The line and circle algorithms are based on Bresenham's algorithms, I just added a quick (and sloppy/slow) cropping routine to it to avoid crashes and drawing off-screen. For the lines, I usually use Wu Lines as they look better, but when I tested for this Physics demo it just didn't look any good :/

If you have any hints/advice as to what the final graphics should look like, I'd love to know !

Plans for today when I come back from work :

1. Add non-centered joints (I was tired yesterday, so it was faster to auto-center...)

2. See if I get a solution for the fixed point version (I might as well release as alpha without it as it works 'ok')

3. Add auto-delete of shapes moving out of the screen (kind of stupid, forgot to do that part !)

4. Save/Load if I have time (will be sloppy and most likely not compatible with anything existing, and probably not compatible with later versions of this thing, but just for testing purpose)

Oh, and any name idea ? Pocket Physics would have been the best, but I guess it's already taken by the NDS version :s
[Windows Mobile Development and Hacking General] xPreSiDenT:
omfg i cant believe my eyes \o/ at last... i was also workin on this with xflib n pocketphysics source as a guide but who better to create this than the creator of xflib himself(if im not mistaken :P) n besides my undergrad final year project leaves me little to no time for anything else :S so i guess i'll discontinue... do lemme know if you need any extra hands workin on the thing... would be glad to help. cant wait for the first release :cool:
[Windows Mobile Development and Hacking General] mugglesquop:
for the name, what about "uPhysics" :p
[Windows Mobile Development and Hacking General] nicus:
ooh cant wait for release :D
[Windows Mobile Development and Hacking General] mrmrmrmr:
omg !

this is coming to something real nice.

waiting for the release...
[Windows Mobile Development and Hacking General] Mollusk:
Yup :D

Would be glad to have some help, whatever it's for (ideas, hints, actual code, etc...). I'll release the sources (really really crappy though, I just did as fast as possible for the first release) so you can take a look ;)
[Windows Mobile Development and Hacking General] daniel309:
why not setting up a sourceforge project for this? this way we would have a public svn making it easy for more people to contribute...

unfortunately, ill be away the next 2 weeks without access to a computer. but if you like the idea and nobody else did it when im back, I can take care of that.

daniel.
[Windows Mobile Development and Hacking General] nimodo:
thx for the explications...

what about PocketBox(2D), PocketWorld, PocketNewton, NewtonsApple ;), TinyWorld, FallingThings,TinyPlanet......
[Windows Mobile Development and Hacking General] Mollusk:
We could. Just that from my experience, it never led anywhere when I set up SVN on demand ^^ In the end, the only times I got actually contributions were function codes posted in forums and me integrating in the code and releasing :s

When I release the first alpha, it could be time to do a TODO list of where we're going. I could then organize the code to have different people possibly work on different parts, possibly with a sort of common framework (I just wrapped the Box2D inits with custom functions that take care of the graphs to...)
[Windows Mobile Development and Hacking General] eMpTy3000:
Hey Mollusk! I love XFlib games! You do amazing work! When can we expect the alpha version?

Thanks for all your work!
[Windows Mobile Development and Hacking General] Mollusk:
Expect it soon... Waiting for my girlfriend to wake up to access my code :/

I just opened a page here : http://www.xflib.net/wiki/doku.php?id=box2d

Feel free to edit/change/add stuff, as I have NO idea where we're going with the current project...
[Windows Mobile Development and Hacking General] Deder5:
Nice. very good job
[Windows Mobile Development and Hacking General] sercio:
What about inserting a "Animate" function...? Animate means that you can select a movement/rotation of a mesh in a timeframe. That would bring such nice possibilitys like creating a engine ala rube goldberg^^ :D
[Windows Mobile Development and Hacking General] orlandojumpoff:
How about PocketGravity
[Windows Mobile Development and Hacking General] M.A.S.:
Two suggestions:

1. Create a goal (objective), Example: throw the ball at a specific target, using lever, large balls, etc..

2. Name: xPhysicx

Thanks a lot and regards.

;)

(sorry my bad english)
[Windows Mobile Development and Hacking General] docnas:
*Waiting eagerly in anticipation*

As for a name how about "Physics ontheFly"

as for ideas

1) Goals in each level ( such as in the crayon physics game)

2)Maybe some way to create your own levels ( on the computer or maybe on phone itself ) and also able to send / download new levels

3)A sandbox so a person can play and do whatever he wants

4) That animate idea givin before is a nice one.

5) PLEASE PLEASE PLEASE optimize the code so it can work on a cheap phone like my wizard ( it only has a 200 mhz processor )

Hm thats all i can ask for now hope i can help in anyway , im not a programmer so cant help there but i would help in beta testing.
[Windows Mobile Development and Hacking General] Mollusk:
I'm currently testing Chipmunk a little. It seems to be a little less feature-rich than Box2D, but faster, so that might be a good trade-off. Example : http://www.youtube.com/watch?v=sTHoWaTNJiA&feature=related

I have a first demo using it (well, actually the 7 demos that come with it), and it works well when you don't have too many objects. It has been ported on iPhone and works great, so I did a little searching and the iPhone can actually do floating point, so that's why physics stuff run so fast.

I'll try doing a quick fixed point version and see how it goes :/
[Windows Mobile Development and Hacking General] nimodo:
btw,

how to you produce the nice videos ?

and where do i find the edit button on your wiki
[Windows Mobile Development and Hacking General] Mollusk:
I use the emulator and ZD Soft Screen recorder (a bit expensive, but worth it :p)

For the edit button, you might need to register on xflib.net first, not sure.
[Windows Mobile Development and Hacking General] grandpareza:
so whats the point of this? you sit and use your finger to hit boxes and circles that you draw...sounds pretty pointless.
[Windows Mobile Development and Hacking General] ~J~:
Sounds it, but it's actually quite relaxing.
[Windows Mobile Development and Hacking General] nimodo:
it might be pointless if you dont like or understand physics.

if you like physics and try to understand whats all running behind these easy looking things,it is just great having a visualisation :)
[Windows Mobile Development and Hacking General] sercio:
do you see any possebility that your physics app can do this?

http://www.youtube.com/watch?v=Cx5GBMybxXw&feature=related
[Windows Mobile Development and Hacking General] Mollusk:
I have that demo on the Chipmunk port I tested, but... Even with only a few dominos it's slow :/ There's no way to get that many to work ^^
[Windows Mobile Development and Hacking General] ~J~:
I doubt our phones could produce anything like that in real time at the moment.

That's gonna take a hell of alot of processing power.
[Windows Mobile Development and Hacking General] docnas:
http://www.phun.at/

Did anyone see this project ?? To be honest it really is "phun" using it . Im hoping something like this would be the ultimate goal of the project going on here.
[Windows Mobile Development and Hacking General] mr_deimos:
Great to see you on this project, Mollusk :)

I added some suggestions to the wiki at XFlib site, but i'll post them here too:

Feature proposals/requests

* customizable gravity

* customizable weight, bounciness and friction for each object

* multiple item selection for editing properties

* drawing custom shapes (at least polygons consisting of a few straight lines - if freehand-drawn shapes would be too CPU-intensive)

And for the graphics:

* colorful, filled vector shapes, preferably with customizable colors (but even random colors should look nice) - something like in phun

And about phun - i mentioned it back on page 8 of this tread ;)
[Windows Mobile Development and Hacking General] mrmrmrmr:
and when will the first release come ?

we are all waiting...
[Windows Mobile Development and Hacking General] orlandojumpoff:
wow the phun app is awesome.. cant wait for a ppc version of a physics app. hopefully it can compete on some level with the phun app.
[Windows Mobile Development and Hacking General] flaviopac:
Any news about this app?

When the first release will come?

Thank you!!
[Windows Mobile Development and Hacking General] docnas:
*patiently waits in line*
[Windows Mobile Development and Hacking General] Mollusk:
Ok, here's some feedback...

I've meant to release the first alpha for the past few days, but I was stuck with a bug when throwing objects off the screen. I was using Box2D's automatic functions for cleaning up but apparently there's a bug when using joints... Anyways, I changed the way I did it, and now it works well.

I was about to release, doing a last trailer video, and... The simulation crashed at the end :/ Here's the video, and I'll just nail this last bug down before I release. Don't expect too much though, it's still crap...

I still haven't switched to fixed point, so it's using floats at 30fps, but seems to run ok up to now ^^

http://www.palib.info/blog/flvplayer.swf?file=http://www.xflib.net/Files/Box2DAlpha.flv
[Windows Mobile Development and Hacking General] xPreSiDenT:
simply brilliant! cant wait to try. by the way heres a suggestion. how about having an extended area of drawing which can be scrolled or zoomed in n out? cant tell if it already has that from the vids... n to extend it even further one could assign the focus to an object or objects to follow when played... would make for some interesting setups.
[Windows Mobile Development and Hacking General] Mollusk:
Yeah, scrolling/zoomig was planned for later versions as it's pretty much nothing add ^^
[Windows Mobile Development and Hacking General] mrmrmrmr:
Hi Mollusk,

You are really doing great ! We are all impatient to try it ourselves.

I understand that you are a perfectionist, but can't you just release it for beta testing ?

Maybe you can release with a big warning :)
[Windows Mobile Development and Hacking General] rockfshr:
That looks great.good job,cant wait to try it out.:D
[Windows Mobile Development and Hacking General] flaviopac:
I'm waiting for it!!

Everyday I wake up hoping this app has been released.....:D:D:D

:eek:
[Windows Mobile Development and Hacking General] uzzy:
Same!!!!!

The prog looks awesome so far, keep up the good work mollusk (and release the alpha version as soon as you can - we're all dying to try it out:D )

Thanks, Uzzy
[Windows Mobile Development and Hacking General] Mollusk:
As long as there's a known bug that crashes and hids your start menu, meaning you have to reboot to get it back... No ^^
[Windows Mobile Development and Hacking General] mr_deimos:
Actually, that's not entirely true ;)

I had some crashes when playing around with XFlib and it turned out that i can show the start menu by running ToggleTodayIIAlpha after setting it to display the menu:

http://xdaforums.com/showthread.php?t=320349

Definitely faster than a reboot :D
[Windows Mobile Development and Hacking General] mrmrmrmr:
understood well.
[Windows Mobile Development and Hacking General] Mollusk:
Looks like the bug is fixed (still testing, I'll send over a demo to 1 or 2 people (already chosen ;) ) ) so that they can confirm it runs 'ok' ^^

Just added object cloning :) Will have to change the interface a little to have it be a little more intuitive...

http://www.palib.info/blog/flvplayer.swf?file=http://www.xflib.net/Files/Box2DCloning.flv
[Windows Mobile Development and Hacking General] eMpTy3000:
Alright! This is exciting!

Thanks Mollusk!
[Windows Mobile Development and Hacking General] tft:
if the iphone can do it, can't the htc touch do it? last i remember the touch was way more capable in terms of power than the iphone. then again the touch might have cpu power but does it have the graphic processing power.
[Windows Mobile Development and Hacking General] mr_deimos:
Looking forward to the release :)

And in the meantime - how about adding some bounciness to the objects (from what i see in box2D manual it's defined as Restitution). Even something about 0.1 should make the simulation look much more realistic. Or does enabling it slow the simulation down?

And for making the UI more intuitive - how about making the button press open a menu with all its available functions instead of cycling trough functions? Or even better - the menu stays open as long as the button is pressed - like accessing options in pocketCM (by holding the "phone onscreen button) or in pocketCM keyboard (by holding "enter" key).
[Windows Mobile Development and Hacking General] mrmrmrmr:
Mollusk,

I have some free time to make tests if you are interested.

And believe me, I am a good tester :)
[Windows Mobile Development and Hacking General] clonmult:
Jeeze, I saw a post on here, thought maybe there'd been a release .... the bump lulled me into a false feeling of joyousness!

The guys here will release as and when they're ready. Not a moment before!
[Windows Mobile Development and Hacking General] flaviopac:
Do you think the development of a kind of app like this is so simple??

If so... Why you don't do it yourself?...
[Windows Mobile Development and Hacking General] eMpTy3000:
He probably feels like it is ready because of the demo videos. On the demo videos it looks pretty good, but we all know that building applications and games is very difficult and a lot of bugs have to be worked out.
[Windows Mobile Development and Hacking General] flaviopac:
I don't think that the best way to support someone, who is developting something for us, is to share pic like that....

The app hasn't ready yet, there are some issue that must be fixed...

So, please, be patient, it will be ready soon!

:rolleyes:

Bye......
[Windows Mobile Development and Hacking General] Mollusk:
Well, I have had close to no time lately, so the development has been drastically slowed down since those videos :s

:( I was hoping it was close to being ready :/ ;)
[Windows Mobile Development and Hacking General] uzzy:
By bumping this topic i intended not to cause any offense to mollusk (who's doing a great job), but to simply keep it on the first page so more people can read it and learn about this awesome new project.

Also, the thread hadn't been posted in for a couple of days and so i naturally wondered where everyone was since this topic had been live for so long.

In short, sorry for causing offense/pressuring mollusk (if i did).

And to everyone else, mollusk can speak for himself - i don't think he needs to be spoken for.

What just happened reminds me of the situation in primary schools; there's one kid who can beat everyone else up, and he has followers. His followers basically do what ever he wants and even more (sometimes speaking for him / doing his dirty work for him etc) as long as they get what ever they want (i.e. protection).

Here, mollusk is the one who has the power, and people like clonmult and flaviopac are his followers who do everything for him and sometimes stand up for him when there's no need just because they want the app he's developing.
[Windows Mobile Development and Hacking General] Mollusk:
HAHAHA ! No ;)

Don't worry, no pressure :p
[Windows Mobile Development and Hacking General] Mollusk:
mr_deimos made a few videos using one of the latest WIP versions :p

http://www.palib.info/blog/flvplayer.swf?file=http://www.xflib.net/Files/Box2D/box01.flv

http://www.palib.info/blog/flvplayer.swf?file=http://www.xflib.net/Files/Box2D/box02.flv

http://www.palib.info/blog/flvplayer.swf?file=http://www.xflib.net/Files/Box2D/box03.flv
[Windows Mobile Development and Hacking General] Mautana:
that looks real smooth! :D
[Windows Mobile Development and Hacking General] pauldgroot:
good to see you guys making progress!

but is there any chance for a public beta?
[Windows Mobile Development and Hacking General] Mollusk:
Technically, the first release will be the public beta/alpha ^^
[Windows Mobile Development and Hacking General] Deder5:
wawooo very nice. it's realy a good project ;)
[Windows Mobile Development and Hacking General] Mollusk:
Still working ^^

Latest version has seen lots of improvements joint-wise :

http://www.palib.info/blog/flvplayer.swf?file=http://www.xflib.net/Files/Box2D/PG_Joints.flv
[Windows Mobile Development and Hacking General] uzzy:
WOW! Its looking even awesomer than before!!!!

Keep up the excellent work!

(Now I'm craving for it even more lol)

Edit: Just noticed you changed the name to Pocket Gravity (sounds cool).

Also, just an idea but would be able to add rotational forces to objects (like in phun) so you could create a motor etc?
[Windows Mobile Development and Hacking General] Mollusk:
Yes, Box2D already manages forces, so it can be added. I'm working mostly on having a consistent interface currently, rather than adding tons of features, because if I end up having to change everything in a few days I'll really get pissed ^^
[Windows Mobile Development and Hacking General] mrmrmrmr:
This is really great !!!

Thanks to Mollusk for creating such a nice Physics application to WM devices.
[Windows Mobile Development and Hacking General] me_:
I've been following this thread - keep up the good work Mollusk.
[Windows Mobile Development and Hacking General] flaviopac:
First release will come very soon....

There are only a few things to fix.....
[Windows Mobile Development and Hacking General] Mollusk:
Anyone want to apply for the next alpha WIP ?
[Windows Mobile Development and Hacking General] uzzy:
yes me please I'd love to test it out for you...i'd constantly test it out meaning if there are any bugs, i'll probably find them.

I have an artemis (200MHz standard, but i overclock to 286MHz to smooth things out if i need to). It's running WM 6.1.

I also have extensive experience with Phun so i could try and build some demanding/interesting simulations and see how the program reacts as the programs are similar.
[Windows Mobile Development and Hacking General] me_:
me me me me plz. i'll try and test as thoroughly as possible.

HTC Artemis - 200 mHz, so will be able to see how it runs on a device with a slower processer.
[Windows Mobile Development and Hacking General] flaviopac:
I'm already a tester.... :D
[Windows Mobile Development and Hacking General] marcelvanblankers:
i would like to test the alpha if possible.

using a htc tytn II with WM6.1

Pm me if you still seek testers

greetings

Marcel van Blankers
[Windows Mobile Development and Hacking General] JudgeDredd67:
Sign me up please, I have been following this thread since birth and I must say that you guys are amazing.