BoxCAD - flash editor... .. and hours of endless fun

Well - this is premature. But I've never been the patient type. 😉

http://www.brainblitz.org/BoxCAD2/

This is very Alpha. As such, it would be helpful if any issues encountered were posted to this thread.

Current known major issues:
  • Groups do not save correctly
  • Do not use the string function (BC will likely crash)
  • Grid snaps do not scale with zooming.

Features not yet complete:
  • Code dump
  • Updated help file
  • Post-creation object edits (might postpone)
  • Joint integrity on shape drag while paused
  • Inclusion of global settings (i.e. zoom factor, gravity, etc) in file save
  • Strings and Chains
  • Full-Screen mode

Major new features:
  • Real physics scales
  • Parameters per tool (i.e. motor speed/torque settings)
  • State Save (who wants to set up dominos twice?)
  • URL file loading
  • Gravity Object (needs work, hard to use)
  • Particle Engine (needs work, hard to use)
  • Mutliple object selection/operation
  • Copy multiple objects

Features postponed till next minor release:
  • Motion blur
  • Lightweight, embeddable "publish" view
  • Soft bodies
  • Polar array (for creating gears/wheels/etc)
  • Bitmap caching for circle objects (mainly for particles)
  • Fast particles (no rotational forces, no joints)
  • XML export

That's all off the top of my head. I'm sure I left items out.

I will mention one feature regarding code dump that I'm very excited about - rather than dumping just a list of objects, it will provide an option to dump an entire, compilable script, with all global settings and key events mapped to objects. This means you could have an entire game/app framework, input handling and all, ready to paste and compile. That is a "next minor release" feature, however. I'm going to keep it simple for now.

Source code will be available, but not for some time. I need to remove some dependancies and modifications to box2d itself.

I'll try to post some demos later today. I have to fix group saving bugs first. : )
Fantastic work verso - the tool is looking awesome. I spent an hour playing with it a few days ago. I'll get some feedback over to you when I've got some time.
First demo...

This is a slightly simplified model of a tumbler-style lock.

http://www.brainblitz.org/BoxCAD2/?load=lock-62572

Press play, then pull the circle on the left. Then stick the key in, and try again.

It's so nicely modeled, in fact, that you might have to jiggle the key a little to get it in and out. 😉

[edit]
http://www.brainblitz.org/BoxCAD2/?load=gravity-82317
Gravity and particles baby! Unfortunately, there is a bug in saving the gravity setting, so you have to turn the global gravity up and back down to zero for this to work correctly.
[/edit]

I'm officially addicted.
It's just a bunch of controls loaded into a sprite loaded into a scrollpane loaded into a movieclip...

The movie clip in this case happens to be an object derived from the FUI window system, the URL for which is in the About window (don't remember off the top of my head).
Ok, if one of these demos don't give someone inspiration for a game... I dunno. I'll be depressed.

WormWars
Gravity Vessel
Gravity Swarm
Gravity Fun

All loaded from "File", Demo Files, at http://www.brainblitz.org/BoxCAD/

I can sit and play with particle/gravity systems for hours, literally. It's so hard to stop... it's so pretty...
Ok, don't hate me because I continuously bump my own thread! But this is so freakin' awesome:
http://www.brainblitz.org/BoxCAD/?load= ... edme-38342

(If it doesn't load (firefox has troubles), just use the File dialog to load "feeeeeeedme-38342")

I mean, how come you never see stuff like this in games? There is so much room for creative use. Stuff that is mesmorizing just to watch, much less interact with. But here we are, pushing balls around and flailing rag dolls (that's not aimed at anyone specifically...).

There's so much more!

Anyway, you've got to play with the Radial Array tool. So many cool things to try...

As for me, I'm going to go feed my spider.

[edit]
Good lord... http://www.brainblitz.org/BoxCAD?load=SpiderBob-67204 - what a bit of anti-gravity can do. How creepy can it possibly get?!
[/edit]
Wow this is really awesome! the lock is really cool, and I love what how you've used forces to simulate gravity for each object!
While playing around with this neat little editor (that's SO fun 😀 ) I noticed some glitches here and there. I'm not sure whether to post them all here - where they will most likely get lost - or whether it wouldn't be more efficient to set up some bug tracking and feature request system as provided by sourceforge.

However... here are some more things I stumbled upon (in no particular order / preference):

  • when clicking the "Body Controllers" button, future use of SPACE-key would trigger "Body Controllers" (button lights up) instead of "Play / Pause"
  • DEL-key refuses to work sometimes (couldn't reproduce yet)
  • "Copy" should say "Duplicate". Instead of "Click and drag to specify offset" a simple click to the target location would drop the duplicate exactly there. This could be further improved by a gray blueprint dupe sticking to the mouse while moving around which then gets placed on click.
  • "State Snapshots" should be saved automagically when triggering "Play". Further shapes added while the simulation is running will not be added to the snapshot. Clicking a "Rewind / Restore" button right next to "Play" will restore the previously saved snapshot.
  • Allow for multiple snapshots to be saved (and selected via drop-down list)
  • Shape / joint buttons (Circle, Rect, ...) should be marked active / blue while using that tool (currently they turn gray)
  • Shape / joint buttons should stay active until ESCAPE-key is pressed or the respective button is clicked again.
  • Drawing shapes by click-drag-release instead of click-release-drag-click-release
  • Option to trigger "Show Grid" (maybe a further option to show grid as either lines or points only)
  • replacing the pulsing yellow rect with a small circle. The rect suggest resembling the current snap size - which it doesn't do
  • Currently shapes can be (accidentally) selected by hitting their axis aligned bounding box. Although the small red rotation square doesn't show up, shapes selected that way can be deleted.
  • "Dump Code" is grayed out by default. Press "Play (Controllers enabled)". Now Press ESCAPE-key. This will activate the whole menu again, including the "Dump Code" button.
  • Menu buttons in general seem broken (active state (blue) not showing, not grayed out although they should be ("Body Controllers", "Gravity Edit"))
  • "Play" button is (sometimes?) blue when paused... but should be blue when simulation is running.
  • "Play (Controllers enabled)" can't be stopped by clicking the button again (ESCAPE-key only)
  • If Controllers means those step and timer sliders at the bottom, I fail to recognise the difference between both "Play/Pause" and "Play (Contr. en.)" buttons. Read: dump the latter.
  • "Fullscreen" doesn't do anything. (However running BoxCAD by accessing the SWF directly gives me almost fullscreen, yay!)
  • Concave shapes seem to overlap in general (try drawing arrows or 4-legged stars) (ok, just seen the hint in the status bar now... well, that brings up another request: )
  • No concave shapes possible as things are now
  • Shapes built using the polygon tool simply disappear when consisting of more than 8 vertices (I know of that limit. Maybe auto-close the polygon when reaching 8 vertices instead)

Phew. Hope you find that useful. Maybe those can be sorted by priority later on...

Thanks so far!
Phew indeed! You have no idea how much I appreciate such a comprehensive list.

  • DEL-key refuses to work sometimes (couldn't reproduce yet)
  • I noticed that too - not sure why it happens (haven't really tried yet)
  • "Copy" should say "Duplicate". Instead of "Click and drag to specify offset" a simple click to the target location would drop the duplicate exactly there. This could be further improved by a gray blueprint dupe sticking to the mouse while moving around which then gets placed on click.
  • Ghosting I agree with. But the ability to specify the start point AND end point gives you more flexibility than just the end point. For example, if you have two objects, and you want a third object with the same spacing as between the first two, you can just copy the second object from the center of the first object to the center of the second object. Seems minor, but it comes in extremely handy fairly frequently.
  • "State Snapshots" should be saved automagically when triggering "Play". Further shapes added while the simulation is running will not be added to the snapshot.
  • There is a "Restore Previous Edits" button below "State Snapshots" that does just that!
  • Allow for multiple snapshots to be saved (and selected via drop-down list)
  • Will do!
  • Shape / joint buttons (Circle, Rect, ...) should be marked active / blue while using that tool (currently they turn gray)
    Shape / joint buttons should stay active until ESCAPE-key is pressed or the respective button is clicked again.
  • Feedback in general needs to be improved.
  • Drawing shapes by click-drag-release instead of click-release-drag-click-release
  • Yeah, it gets a little annoying having to click each point in; sometimes it's easier to control. I will probably add a mode toggle.
  • Option to trigger "Show Grid" (maybe a further option to show grid as either lines or points only)
  • Yes yes yes, that is a must.
  • Currently shapes can be (accidentally) selected by hitting their axis aligned bounding box. Although the small red rotation square doesn't show up, shapes selected that way can be deleted.
  • Yeah, that is annoying.
  • "Dump Code" is grayed out by default. Press "Play (Controllers enabled)". Now Press ESCAPE-key. This will activate the whole menu again, including the "Dump Code" button.
  • Nice catch.
  • "Play (Controllers enabled)" can't be stopped by clicking the button again (ESCAPE-key only)
  • Another feedback issue; controllers actually refers to mapping keys to forces on objects. Since any key needs to be available for mapping, all keyboard commands are turned off. All buttons are disabled; actually, the menu should just disappear, as this mode is kind of the "publish preview" mode.
  • "Fullscreen" doesn't do anything. (However running BoxCAD by accessing the SWF directly gives me almost fullscreen, yay!)
  • Uh oh. What browser/version are you using?
  • Concave shapes seem to overlap in general (try drawing arrows or 4-legged stars) (ok, just seen the hint in the status bar now... well, that brings up another request: )
    No concave shapes possible as things are now
  • Working on that right now.
  • Shapes built using the polygon tool simply disappear when consisting of more than 8 vertices (I know of that limit. Maybe auto-close the polygon when reaching 8 vertices instead)
  • Crap. I remember mentally noting that I need to fix that months ago, and completely forgot.

Overall, the main issues seem to stem from lack of gui feedback.

Thanks again for the feedback. I hereby dedicate the "Gravity Swarm - Trippy Version" to you. ; )
Duplicate start-end-point technique:
I hear what you're saying. Actually this sounds reasonable to me too... but on the other hand, when building with a grid all the time, I'd prefer the "simple dupe" technique. Mode toggle?

Restore Previous Edits / State Snapshot
Well, then I simply tend to mess things up. I've tried several times to understand the difference between "State Restore" and "Restore Previous Edits" and failed. While I know what they are supposed to do, what they really did didn't quite match my expectations. Weird feeling. On the other hand I'd prefer the automatic snapshot restore when ending the simulation for ease of use. Pressing SPACE over and over is the Play/Pause toggle... another button (or ESC key?) right next to "Play" button would STOP the simulation and resetting to the last saved snapshot. That's just a little more convenient I guess / hope / assume...

Play (Controllers enabled)
Ahhh, got it! Now that whole stuff makes sense 🙂

Fullscreen
Firefox 3.0.1 and Opera 9.51 on WinXP both fail. Flash player 9.0.124.0 installed.

=========================================================================

Well then, for the drawing mode (click-drag-release) and for the grid I can provide some code. My AS3 learning endeavours already took me that far 😀

Controls:
1 - smaller grid
2 - bigger grid
3 - toggle grid line/point view

Don't expect too much though, there are only rectangles available. While the yellow cursor snaps to the grid, drawn shapes do not (yet).

Feel free to use.

Original thread: https://box2d.org/forum/viewtopic.php?t=702