PV3D: Accessing Cube Materials & MovieMaterials

Two snippets for people who want to handle PV3D primitives like cubes, planes or spheres. The solutions are quite basic, but badly documented and hard to find.

Change a cube’s materials:

    cube.replaceMaterialByName(material, "top");

Access (play, stop, gotoAndPlay, etc.) the MovieClip inside of a MovieAssetMaterial / MovieMaterial


Good to know.

Agency Website

In the meantime we’ve relaunched the website of the agency I currently work for. Looking back, it feels as if it was more difficult to convince people to do things this way or that way, than it was to actually build it (which is me, exaggerating (though only a bit)).

I like that we’ve managed to get different disciplines work together – flash, 3d and motion – which definitely made the website a lot better than any of us could have done it alone. But that having more people leads to better results should be true for almost anything. Well, as long as there’s either a common goal or someone to take the lead, though I don’t want to get too philosophic here :p

This is, by the way, not the first try: There was a version before that, which suffered from the same problemsI described earlier and hence never saw the light of day. It was nice and all, but it lacked spirit. Things really can’t be good if you only make them big and abundant. Having a distinctive look and story really made things a whole lot better.

I wonder if it’s good enough to become a sotd, but probably not the way it is right now. There’s still quite a few rough edges and there were too many political decisions involved for me to be totally convinced. Things could have been crisper and overall better and more well-rounded than they are right now… I might convince my guys and girls to produce an english version of it, one of these days, with a little more creative freedom and more attention to the little, yet important details…

Papervision3D vs. Away3D – Part 2: Well, maybe not.

Meh, I gave up on my idea of switching to Away 3D, mainly because it’s stupid. While it would certainly make sense considering how papervision is most likely dead, Away3D is probably not that much more productive and better.

Considering how hard it has already been to figure out things like 2D/3D projection, dynamic materials and the insanely god damn uber-annoying animated dae models – besides countless mathematical problems – it would be a ton of wasted effort. I suppose there are solutions for of those most problems, but finding them is probably even more of a royal pain than it was to find them for Papervision3D. I don’t really understand why, but in general there seems to be a bit less blogs and tutorials around and since Away3D uses an archaic mailing list, there’s tons of hardly usable duplicates of every thread. And reaching dead ends means that you have to ask the question yourself, possibly waiting for several days before you get an answer.

While it would certainly make sense on the long run, the idea of having to figure all of these things out AGAIN, before I can continue with even the most basic tasks, completely killed my mood for months. So I’ll better continue with what I have, keep up the speed and maybe consider changing engines once I’m done. Which would probably be best, because molehill is at the horizon and will most likely change everything anyway…

Snippets (AS3): MouseEvent targets nested child objects

Annoying. If you have objects with child objects and put addEventListener(MouseEvent.CLICK, mouseClickEvent); on it,

function mouseClickEvent(e:MouseEvent):void

will trace the child objects instead of the parent. I’m not exactly sure why that happens, but putting MovieClip.mouseEnabled = false; on every child object helps (which was OK in my case).

Found here: http://www.communitymx.com/blog/index.cfm?newsid=895

Away3D: First steps

After a day or so, Away3D turns out to be quite a bit harder to get into than Papervision3D, mainly due to the lack of proper documentation.

The support forums are more of a mailing-list, with a bad searching function and very hard to navigate. Google also only seldomly gives proper results for Away3D problems, one reason being that the mailing-list is mirrored several times by different services, which kinda spams the search results.

And often enough, even if you find tutorials, they’re hopelessly outdated. The strong part of Away3D, its frequent updates, is also one of its larger problems, as methods are replaced frequently with no one documenting their use properly (or at all). Whatever problems you’ve managed to solve when using Papervision3D, Away3D has new ones in store for you…

What’s comparable is the fact that they have a book, in this case “The Essential Guide to 3D in Flash” (quite snotty compared to PV3D’s “Papervision3D Essentials”, haha). I’ll look into it.