Physics with bitmap images?

General Moho topics.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
benecosse
Posts: 165
Joined: Thu Apr 15, 2010 11:56 pm

Physics with bitmap images?

Post by benecosse »

In AS pro 7, does the new Physics engine work with bitmaps or is it just vectors?
ponysmasher
Posts: 370
Joined: Thu Aug 05, 2004 2:23 am
Location: Los Angeles
Contact:

Post by ponysmasher »

Just tried it and no, not with just a bitmap layer.
You'll have to bind it to bones, but then it won't react according to the shape of the bitmap, just the bone.
benecosse
Posts: 165
Joined: Thu Apr 15, 2010 11:56 pm

Post by benecosse »

:cry:
User avatar
ErikAtMapache
Posts: 94
Joined: Mon May 17, 2010 11:51 am

Post by ErikAtMapache »

I don't have ASP7 but physics was probably implemented without a limitation on opacity, so try adding a vector layer, tracing around your bitmap, and then setting the opacity to 0.
User avatar
heyvern
Posts: 7042
Joined: Fri Sep 02, 2005 4:49 am

Post by heyvern »

You can use an image texture in a vector shape and then, yes, images will work with physics.

-vern
jstuartj
Posts: 2
Joined: Wed Aug 23, 2006 4:37 am

Post by jstuartj »

I've been playing with this a bit over the weekend.

I wanted to take an illustration of a 50lb weight, and drop it on a see-saw type device with boxes on the other end. Now I could trace it, but I would looses the textures and the look I wanted.

I tried image textures, but had trouble lineing the up correctly and was unable to find a way to adjust the points with out distorting the contained texture.

What I ended up doing is, binding an image layer to a bone, and then binding a vector layer to that same bone as a bounding box, in ruffly the shape of my illustration. Then I simply turn off the bouding boxes visablity. Tada I could have my ACME style 50lb wieght drop on the See-saw, catapulting whatever I placed on the other end.

It's sort of a variation on the bonding box method used in games.

I haven't done much testing yet, but it appears to work best, if the bounding bone is small, pointing strait up and placed at the center of gravity of the bonding box.

J. Stuart J.
arthurbrute
Posts: 3
Joined: Mon Oct 04, 2010 11:00 am

Post by arthurbrute »

I think that Member States have the legal right to cover your ass and tell you to ensure the authorization obtained. If you find a license that says its OK to share with the entire font as a bitmap and you are good.
Post Reply