As an extension of my 3D town, I’ve created a 3D forest with 200 trees created from 7 distinct tree images placed in random positions and with random sizes. Codea handles the animation pretty well
You should be wondering why, as I walk around the forest, you never see the images side on, because, after all, they are just flat 2D images. The answer is that I rotate the images - all 200 of them - so they are always facing the viewer.
There is another problem with 3D rendering, which is that if you draw objects in front before those behind, you get bad results. You should always try to draw objects in order, from furthest to nearest. So what I have done is sort the table holding the trees, in order of distance from the viewer. I only do this once a second, so as not to hammer the FPS too much. And what is my FPS? With just the buildings (see previous post), I’m up around 60 FPS, but the trees take it down to about 30.
This is the whole map, 2000 x 3000 pixels
(and yes, that is a full size castle with battlements tucked away in the far right corner).
Now all I need is a couple of zombies, and I have an FPS 8-X