Real World Sample
Check out a real world sample, James created this for a hotel. He talks about the issues involved with it and the process of creating it.
Video Transcript
00:00Ok, so what have I been doing with this? I'm doing, I'm kind of trying to build something
00:10to allow you to render things, to render floor plans in 3D. So we've got, here we go. This
00:23is my original little test. This isn't a Way3D 3.6, so this will be rendered into the flash
00:28display list. But all these walls here are just little 3D extrusions, and you've got a
00:37little guy here who's a loaded 3D model. The floor there, which is a slightly dark shade
00:45of grey, that's actually a sprite, and it's a sprite 3D, and this is all done in vectors,
00:50this is all drawn in flash vectors because we're on 3.6. We've moved on to Way3D4, we're
00:59actually using the GPU for everything. So what have we done here? Let's have a quick look
01:07at this one. So this is the hotel in London, which has a vast amount of event spaces available.
01:17So if we launch this, we'll fire up this little app here, and that's going to load up a whole
01:27load of data on how the hotel is built and everything. All the data's presented to the
01:33app in 2D, it just loads it up, builds all the floors out of flat plane objects, and
01:41builds all the walls out of extrusions. So I'll have a quick little tour around the
01:47first floor. So this is the first floor of the hotel here. Now all these signs here were
01:53originally part of stage 3D, and now they're not. By the way, I assume this is coming across
01:59on Connect. I don't know how stage 3 actually gets picked up, but I assume everyone can
02:04see this. So you can kind of zoom in. You can see all of these walls are built out of
02:13extrusions, and all these chairs here are just loaded, one loaded 3D model, clone,
02:18clone, clone, clone, clone. A lot of cloning going on. Tables are just primitives. They're
02:22all just cubes. I know it says cubes, but they're not. And you can kind of swap around
02:28and have a reception. Look, everyone's chatting to each other. La, la, la, la, la.
02:31And there's another event space here. And again, it looks extrude walls. So you can
02:37kind of put in your partition walls in the right way, and lay out different chairs.
02:45So here's just an idea of what can be done in a way 3D that isn't games. I mean,
02:52this is a purely a commercial application to allow people to plan parties in hotels,
02:57I suppose. But it was quite fun to build. So you've got these are extrusions.
03:02The floor, if we go back to, let's go back here and zoom out a little bit.
03:10The floor here is, it was originally a sprite. Because we can't put sprites into
03:16the display list here, you have to draw the sprite onto a bitmap data object,
03:23and then you pass the bitmap data object into a bitmap material, and then you have
03:27to do a lot of scaling and shuffling around, because the bitmap data has to be,
03:32it's 1024 by 1024, I think, but it's got to be a square and power of two.
03:36So there's a lot of scaling and shuffling around involved in doing this sort of thing.
03:40It's awkward. The signs are actually part of the display list. So that's, they're kind of
03:44rendered separately on top. And when I tried to put them into as kind of 3D objects into stage
03:533D, it just can't handle the text, because everything gets rendered as a bitmap
03:59material. It's just not ideal for that sort of stuff. Flash is brilliant at rendering text,
04:04as everyone knows. Stage 3D is not. So that's kind of sitting a layer on top.
04:10The background, you can't put a 2D background behind stage 3D. So
04:20Away3D provides a little background property, and you can pass it a sprite and get it to kind
04:25of draw a background in the background of stage 3D. So that's a quick tour of kind of what can be
04:34done. All right, I'm going to have to really hurry up. It does, time always does run away.
04:41Okay, right. Okay, we'll just deal with the big question. And here's the big problem.
04:48GPU acceleration and stage 3D depends entirely on having the right GPU available.
04:56And Adobe have had some issues getting older GPUs. It's mainly driver issues to respond.
05:04So if it can find a GPU, it'll give you stage 3D, and it'll give you
05:13massively fast rendering and everything you're after. Beautiful anti-aliasing,
05:17la la la, everything you want. If it can't, it drops into software mode, which is
05:24it's a simulation of a GPU written in software that they bought, I think, of a third party.
05:30It's much better than using kind of the usual Away3D 3.6, like pick a vision type stuff.
05:37It's very good, but it's probably 10% as fast as using a real GPU.
05:43You don't know what your users are going to get. Now, any drivers
05:51written before 2008 will not work. Now, I know Delta Strike, I know Delta Strike,
05:58it's an Away3D Facebook game. They ran a test, and they got 95% of their users
06:05running in hardware mode, which meant they got good performance. And Delta Strike is pretty much
06:11useless, I think, in software mode. 95% is good, but their audience is gamers.
06:16My audiences are people in offices. Now, I got 50% of my target audience running in hardware mode,
06:25which was a bit worrying. Now, part of this is due to the fact that a lot of people in
06:29our office use Dell Vostros, and they have an issue, I don't know what it is yet,
06:34with GPU acceleration. You should claim Adobe get about 80%, but you just don't know,
06:42and it depends on your target audience. So what we're having to do when we push this app out live,
06:47we're going to be collecting metrics on exactly how many of the users are getting proper full GPU
06:53mode and how many are getting a really quite reduced experience. And we're going to have to
06:58be tracking it, because we don't know whether we're going to be wrong-footed on this one,
07:03and we need some metrics on it quickly. Nobody else knows, there's just not enough information
07:07on it. That is, I think, the biggest thing anybody has to be aware of if they start to develop
07:14this, and it'll get better as computers get newer, as all these things, new technologies,
07:18old computers don't run it, but that's a real pitfall. So watch out for that one.
07:23Right, questions.
