The first thing I did was Easy 1. I blogged about it briefly in my last post, but I didn't really go in depth of how I did it. Well, it was pretty easy. Even when using my own framework, that question would be pretty straightforward, just make a bunch of lights using OpenGL and shaders, load in a model using an obj loader, and then make them rotate using math.
Here's the same picture from last week.
Well with Twoloc, you still need to make your lights and load in your objects, but Ogre wraps everything up for you. So like, three lines of code will make you a light. Another three lines gets you an object. And bam, you have everything. All you need to do now is make it rotate, which honestly is not hard at all. That's like basic trig.
So my first thoughts of that was that using an actual engine saves you a lot of time. I didn't have to worry about writing my own code or whatever, it was just already wrapped up and good to go. Pretty good. I also worked on the solar system question, but I found out that apparently it counts for a medium or an easy, not both.
The sun is black on purpose. Promise.
Obviously I'm going for the medium portion, but I haven't really started that yet. Above is essentially the requirements for the easy question, but I want the points for medium. Getting to this point didn't really take that much time either, just had to figure out how to texture, which is honestly just like one line of code and some linking. Again, not that hard to do.
Afterwards I worked on two other questions, one with dynamic textures and one with billboards and imposters. The dynamic texture one I'm not 100% sure if I did correctly, so I'm not going to talk about that one right now, but the billboard and imposter one is pretty cool.
It's also definite proof that I'm an amazing artist.
So that question requires us to make two trees. The first one is a billboard, and the second one is just a tree made from textured planes. I've done some stuff with imposters before in SHFTed so I know what they're all about, so that wasn't too bad. I was more worried about the billboards before I actually started this question, but again, apparently Ogre makes things easy and like three lines later I had a billboard.
The actual imposter took me more time since I was too lazy to figure out how to get rid of backface culling, so I ended up using four planes to make a two plane billboard. The other two planes I had to figure out how to rotate them and place them in the right position so that it would cover the back of the other two planes.
We also had to have other trees that were toggleable.
That actually took some time, but overall it was fairly straightforward to do. I honestly feel that the easy questions were designed more to acclimate us to using Twoloc and Ogre rather than to actually challenge us.
Overall though, I think that the engine itself was pretty ok to use. I'm still not 100% confident and comfortable using it, but my initial impressions were that it is a lot easier to use once you know how to use it. I'm excited to continue working on it, but I have a lot of other work to do unfortunately.