R2D2
holo
 Latest News
News       Downloads       Media       Wiki       Stats       Team       Forums    
WolfServers.com
Shattered Planet

 DEV DIARY #17 - MAGUS
26 Aug 2007 - 07:08 by xEROhOUR Developer Diary | comments (143)
Hi everybody!

My name’s John Mansir but round these parts they call me magus. I’m 18 and I live near London, and back in March I joined the First Strike team as a coder. I’ve just finished school and hopefully I’ll be going to university in a few months to study physics. I started modding nearly 4 years ago by joining the Battlefield 40000 team for battlefield 1942. It’s been an awesome journey and I’m really glad to have ended up here at First Strike. My job on the team now mostly involves coding vehicles and annoying Woodrow.

I know coding can be boring and you usually don’t hear much about it but I figure there must be at least one person out there who’s interested in
how we code vehicles! To that end in this dev diary I’ll show you how we created the B wing starfighter. Don’t worry, I won’t subject you to big boring
chunks of code, there will be lots of pretty pictures along the way!

Step 1: Get model & texture.

The first step in this process is to retrieve the art assets from the people who created them and load them into 3D Studio max. This time they were
kindly provided by my extremely skilled colleagues RedMonkey and Rybot:


bwingf

Here’s a shot of the model first loaded up in 3d studio. As you can see from the window on the left it’s in a mish mash of unorganised pieces! These need to be organised into a proper hierarchy so that the battlefield engine knows exactly what to do with all the bits.


src="http://www.fsmod.com/img/sshot1_sml_magus1.jpg" alt="magus1" width="200" height="150" border="0" />

Step 2: Plan out hierarchy and organise the pieces in max

Now that we have the vehicle in max, we have to plan out how the vehicle behaves. To do this we have to find out what the vehicle is like in the movies. I put out a request for background information on the B Wing, and my colleagues Talon and Dutch_Razor provided me with a whole slew of
stuff about weapon loadouts and special abilities that the B wing has. The B wing has 2 important features that will be important to our hierarchy;
firstly, it starts off in a horizontal position and folds out into a vertical flight position like so:


src="http://www.fsmod.com/img/sshot1_sml_BWINGCONFIG.jpg" alt="BWINGCONFIG" width="250" height="150" border="0" />

Secondly, according to background lore the cockpit is gyroscopic, meaning that it always faces up regardless of which way the rest of the ship is
facing. After some deliberation we decided that a ship like that would be almost impossible to fly; we came up with a compromise in that the cockpit
should only be gyroscopic when the craft is folding out into flight position. As you can see from the above picture, the cockpit is facing upwards in both
positions. Now we know what has to be done, we can plan out the hierarchy.

In the battlefield engine, each separate piece of a model (known as an object) has to have a certain object type. For example, you can set something to be a ‘PlayerControlObject’. These are the base of each vehicle. Each PlayerControlObject corresponds to one position on a vehicle, so in a jeep you would have one for the driver position, one for the passenger position, one for the gunner position and so on. There are many other object types, including ‘GenericFireArms’ (this is just a fancy name for any kind of vehicle mounted weapon), ‘Wings’ (These are invisible objects that generate lift to keep air vehicles flying), ‘RotationalBundles’ (Objects that rotate by player control are RotationalBundles, for example the steering wheel in the jeep), and ‘LandingGears’ (These are a special kind of Rotationalbundles that can rotate automatically when the vehicle reaches a certain speed/altitude, hence their usefulness as landing gears). Since we want the entire ship to rotate from horizontal to vertical automatically when it reaches a certain speed, we’re going to be using a lot of LandingGears!

Each vehicle must have a PlayerControlObject (PCO) as its base, and they can not rotate. Therefore our PCO will be invisible, and attached to the invisible PCO will be an invisible landing gear. All of the other objects will be attached to this invisible landing gear meaning the entire ship will rotate
from horizontal to vertical as we planned. The wings are also LandingGears; they will fold out and go from a position held at the side of the main hull to
a fully extended position as the rest of the ship folds out.


Unfortunately with this setup it means that the cockpit will also rotate and will be facing the wrong way when the ship has fully folded out. To counteract this, we’re going to attach another invisible LandingGear to the first one which rotates the opposite way. (Think of this as if you were
standing on top of a big spinning plate. If you spin the opposite way at the same speed as the plate then you will always face the same direction. We
are going to use this principle to keep the cockpit facing the same direction). Attached to this second invisible landing gear are the cockpit model and the player camera. Finally, we need to attach the GenericFireArm weapons, the Engine, and the ‘Wing’ flaps to the main hull object.

Now we translate all of this into 3d studio max and we end up with this (note red annotation is mine):


src="http://www.fsmod.com/img/sshot1_sml_MAGUS3.jpg" alt="MAGUS3" width="200" height="150" border="0" />

This is now ready for exporting into the battlefield editor.

Step 3: Tweak in the battlefield editor

Now that we’ve exported the vehicle from 3ds max into the battlefield editor we can start to change and tweak all of the object properties until they
work just as we want. Here’s a shot of the B wing in the editor, and in it you can see me tweaking the ‘GearDownSpeed’ property. Most properties are
self explanatory from their names, and as you might have realised this one controls the speed below which your vehicle has to be before a landing gear
will deploy itself.


src="http://www.fsmod.com/img/sshot1_sml_MAGUS4.jpg" alt="MAGUS4" width="200" height="150" border="0" />

There are many many properties to set and this is one of the most time consuming steps in the whole process. It takes an especially long time
because to tweak certain properties to their perfect value you have to boot up bf2142 again and again and again to test until you’re satisfied. It can get frustrating!

Step 4: Polishing off

After tweaking it in the editor the next step is to put it in an in-game environment and see if any changes need to be made. This is usually
lighting/sounds and other minor tweaks to handling. At this point I retrieved sounds made by Ulversial and added them to the weapons and engines on the B wing. Also at this stage we need to add any extra effects, for example engine glows and ‘damagestates’ (These are the smoke and fires that appear when your vehicle is damaged). Here’s a shot of me testing the weapon laser effects and the engine glows in-game:


src="http://www.fsmod.com/img/sshot1_sml_MAGUS5.jpg" alt="MAGUS5" width="200" height="150" border="0" />

Finally after I am satisfied that everything is complete I hand over the vehicle to Blitz and Woodrow for them to do any executive tweaks or add
anything that I might have forgotten. Once this is complete the vehicle is added to the game for our testing team to fly around in to ensure that it works properly. Any complaints from the testers are addressed and the vehicle may be further tweaked. As you can see, not including the testing team, coding this vehicle involved the work of 8 developers so it is very much a team effort to produce each vehicle. It’s an awesome thing to behold and I love seeing so many people’s work come together in the game.

Anyway I’m sure you’re bored by now and this is getting long so I’ll bid you farewell and see you on the battlefield!

Thanks,

John ‘Magus’ Mansir


Older News


Reactie's
Really nice developer diary! love it that someone tells that coding is just more then working write some lines and filling in numbers.
by Grompie @ 26 Aug 2007 - 14:08
Very nice. I love to read about coding stuff, but I'm just curious, with an actual B-Wing, the wings fold in to increase your speed and also disable the weaponry. From what I get from this, the wings will only fold in when you slow down and eventually land? Thats a bit disappointing, but I suppose the game has limits.
by DS Imperial @ 26 Aug 2007 - 21:08
That was as interesting as a post on coding can get :P The B-Wing looks really cool though, you guys are doing great. Even more, it's amazing how relatively young the team is. Half of you are younger than me.. (20).
by Geral @ 27 Aug 2007 - 18:08
Cool B-wing, nice work. :) Thanks for the detail description of the workflow, interesting read.
by MMad @ 28 Aug 2007 - 07:08
Grompie the S-foils opening closing relative to the weapons is only a game mechanic from the RS and perhaps X-Wing series, it is explained for the X-wing that only the earliest versions couldn't fire with the S-foils closed.

The general opinion among the lore team is that the S-foils don't have anything to do with speed, but are intedted to have a better spread of the weapons fire.

Thx for all the positive comments btw.

by FsDev|Dutch_Razor @ 28 Aug 2007 - 08:08
Best Dev's diary so far! I loved the explanation on how to make the b-wing.
by Muffius @ 28 Aug 2007 - 16:08
This answers a whole lot of questions in my mind regarding the development process - really a professional document - nice work!
by SuperD @ 31 Aug 2007 - 05:08
Dont buy movies, get online bootleg movie downloads movies and watch them for free.
Earn money and work from home, with online forex, trade the forex market.
Get all sorts of iphone software for your new iphone mobile telephone.
by Zoran @ 28 Aug 2008 - 03:08
roulette system
play blackjack online
blackjack gambling
play video poker
poker guide
iphone ringtones
online horse racing
by zombo @ 06 Nov 2008 - 21:11
online glasses shop
online eyeglasses shop
online eye glasses shop
online eyewear shop
online reading glasses shop
online eyeglass frames shop
online prescription eyeglasses shop
online prescription glasses shop
online designer eyeglasses shop
online designer glasses shop
online eyeglasses online shop
online discount eyglasses shop
online cheap eyeglasses shop
by glassesshop @ 12 May 2009 - 20:05
You can click these sites
Replica Watches, Fake Watch, Swiss Replica Watches, Replicas Watches, Cheap Replica Watches
Replica Cartier, Cartier Watch Replica
Replica Watches, Cheap Watches, Cheap Replica Watches, Discount Watches and Cheap Handbags for more discount & cheap designer handbags, watches, belts, wallets and so on.
by joly @ 23 Jun 2009 - 22:06
What wow gold if wow gold God replica handbags, choosing lv handbags to louis vuitton show louis vuitton handbags his replica louis vuitton wrath.

by wow gold @ 08 Jul 2009 - 19:07
Whether you want traditional bridal trinkets or modern bridal jewelry or a combination of both, bridal jewelry stores and bridal

Links of London designers have what you are looking for, exacting bridal jewelry to match your gorgeous bridal

gown.Selecting the nuptial gown is the icing on the cake.
Whatever your marriage gown selection, choosing links of london jewellery that matches perfectly is important to cease off

your bridal earrings look. With more and more bridal earrings designers and bridal necklaces boutiques and companies, it is what finishes off your marriage charms

look. Mixing tradition with novel elegance and sophistication in marriage boutiques.
by a @ 30 Jul 2009 - 23:07
The network Gaia Gold layer - it will Dofus Kamas have to rely above, so Gaia Online Gold no need to trouble Kamas Dofus with the sockets. Use the top Kamas layer for your Buy Gaia Online Gold platform, even a library Acheter des Kamas full client-server. The graphics [url=http://www.mygaiagold.com]
by Gaia Gold @ 04 Aug 2009 - 03:08
my wow gold cheapest wow power leveling
by YJN @ 13 Aug 2009 - 02:08
Every one who walks in the Fashion front knows that Handbags are the symbol of Beauty. Also is

Jewelry including Gold. But you like to read Fashion News, maybe it's just because of your

Life Style. Enjoy your reading Happiness.
by keci @ 02 Sep 2009 - 02:09
Hello everyone.Designer handbags online store, you can purchase different designer handbags, and we offer free shipping now.
These are our brands luxury handbags on sale.
Brands:
discount Louis Vuitton handbags
discount chanel handbags
discount gucci handbags
discount prada handbags
discount miu miu handbags
discount hermes handbags
discount balenciaga handbags
discount fendi handbags
by dsafdsa @ 04 Sep 2009 - 08:09
one day i went shopping outside ,and in an tiffany store,I found some kinds of tiffany i love most。they are: Tiffany Sweetie Bracelets Cheap Tiffany bracelets silver Tiffany bracelets unique silver Tiffany bracelets watch Tiffany bracelets Tiffany bracelets online sterling silver Tiffany bracelets Tiffany bracelets gifts fine Tiffany bracelets charm Tiffany Bracelets
by longge @ 07 Sep 2009 - 01:09
ed hardy womens shoes ed hardy womens shoes
ed hardy shirts ed hardy hats
ed hardy hats ed hardy Sunglasses
ed hardy Sunglasses ed hardy Bags
ed hardy Bags ed hardy Socks
ed hardy Socks ed hardy Purse
ed hardy Purse ed hardy jeans
ed hardy jeans Ed hardy caps
Ed hardy caps Ed hardy abelts
Ed hardy abelts
by ed hardy sale @ 09 Sep 2009 - 19:09

Wow gold Wow gold
cheap wow gold buy wow gold
buy wow gold world of warcraft gold
world of warcraft gold wow gold guide
wow gold guide wow gold cheap
wow gold cheap wow gold farming
wow gold farming wow gold hack
wow gold hack wow gold reviews
wow gold reviews ow gold for sale
wow gold for sale ow gold usa
wow gold usa ow gold tips
by Wow gold @ 10 Sep 2009 - 01:09

This [url=http://www.eiluxury.com]louis vuitton outlet/url] is just come out this spring show, it’s a totally new style of louis vuitton outlet, worth to buy.

louis vuitton outlet
Anyone know louis vuitton outlet near by? I am looking for one but never get.

I just bought this bag from louis vuitton which located in New York city, it’s wonderful.
by xiaojuan @ 15 Sep 2009 - 11:09
Support of the Lou Zhu, Lou Zhu worked hard

Signature--------------------------------------------------------------------------------------------------------------------
Nothing is impossible for a willing heart.
ugg classic cardy

by hanyujoys @ 23 Sep 2009 - 01:09
<a href="http://www.dropshippingwatch.com/">Replica Watches</a>
<a href="http://www.dropshippingwatch.com/">Rolex Watches</a>
<a href="http://www.dropshippingwatch.com/">Replica Handbags</a>
<a href="http://www.dropshippingwatch.com/">Replica Omega Watches</a>
<a href="http://www.dropshippingwatch.com/">Cartier Replica Watches</a>
<a href="http://www.dropshippingwatch.com/">Replica LV Handbags</a>
by replia lv handbags @ 24 Sep 2009 - 03:09
I saw lots of tiffany jewelry on ebay are cheaper than tiffany jewelry outlet store, why is that?

You will find the newest tiffany jewellery fashion release on their official website.

I am planning to give my wife a big surprise with tiffany jewelry on sale as a birthday gift, but I don’t know which one to choose, any ideas?
by tiffany jewellery @ 27 Sep 2009 - 10:09
ed hardy sale ed hardy sale
ed hardy sales ed hardy on sale ed hardy sales
ed hardy sales ed hardy
ed hardy cheap ed hardy
cheap ed hardy ed hardy clothing
ed hardy clothing ed hardy london
ed hardy london ed hardy tattoos
ed hardy tattoos ed hardy online shopping
ed hardy online shopping
by ed hardy @ 28 Sep 2009 - 23:09

1-25 | 26-50 | 51-75 | 76-100 | 101-125 | 126-150 |

Add your comment...

Nickname: [Login (optional)]
E-mail:
Your comments...
Meer

HTML is OFF | BBCode is ON| Message length: 1020
Screenshot of the Week
Divider

Screenshot of the Week #20 
Submitted by: Twigs 
View Past SSotW 


Top Ranked Players
Divider

 

    

© FirstStrike 2006-2025  -  Disclaimer

trapp Design