Tuesday 30 October 2012

The Race Track is Ready

Well its end of term now and I am busily spending some of my time working on the Formula 1 OpenSim project. Having cleared down the Mars base project from last year I converted the terrain to a 1m high flat island that covers the sim just short of the boundary limits so that we can have plenty of room for those different race tracks. One reason that I chose to have a particularly flat terrain though is that although the vehicles (Formula 1 cars) will appear to be grounded on the tarmac, in reality the script will be sensing land, so keeping land at a constant height should make for a smooth ride.

Choice of materials has been an important consideration in this project. For instance, the wheels of vehicles do not actually have to turn, you simply simulate rotation through rotating textures, and so you need the wheels to be made of the lowest friction material available, and this is glass! I also found that the crash barrier are also very sensitive to material type, and after a few tests found that metal gave the best results. I have had a good numbers of test drives around the circuit, tweeking and evaluating settings of the vehicle script and am happy with performance so far, though how things will work out with all my students driving at the same time remains to be seen.

One feature of the project that I particularly wanted to implement is the ability to log data i.e. driver details etc to an external web database. I had my first attempt at this today and it seems to be working just fine; please see the screen shot from my phpMyADMIN Sql query. There is of course some ground still to cover, excuse the pun, but things are looking particularly promising for this years project right now, so please stay in touch for more updates.

Vega

Sunday 21 October 2012

A Day At The Races

Well it’s coming to that time of year again when I need to start thinking about the project for my Foundation Degree students who are studying Object Oriented Design. As a supplement their actual project, that will be written in Java, I like to make use of our OpenSim Virtual World Platform here at the College. If you have been following this blog, then you will know that last year we had a Mars sim, were students could experience a virtual field trip to the red planet and gather data on temperatures, atmospheric pressure, wind and solar energy for their Mars base environment control application. Earlier this week I had a discussion with my new group and they expressed a particular reference for a gaming element in their use OpenSim, and in the end we decided upon a motor racing theme. The core project will be to create a desktop application that will store and allocate pole positions, calculate race points along with various driver, team and vehicle details. The simulator part will be in the form of designing and creating racetracks for the various events, where they will get be become the actual drivers, sounds fun enough to me. As a bare minimum, I thought it would be reasonable for me to at least provide the group with some basic components and from the screen shot you can see a quarter circle and straight section of track that I made. The cars, I actually acquired from OpenSim Creations by Garry Beaumont, I though I have decided to include my own version of wheels for the vehicles. As anyone that has tried the physics engine in SecondLife and then attempted to apply the scripting solution to OpenSim will know, its not that straightforward, but having said this, I have downloaded a script from OpenSim.org by Kitto Flora and it runs OK, and I am working on some small modifications over the coming weeks. My next task is to clear down and prepare the simulator some time this week ready for the project, I will for sure be posting more updates as we move along, so please stay in touch


Bye for now Vega