ofp:modeling:brsseb_lesson7
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
ofp:modeling:brsseb_lesson7 [2008/05/04 07:59] – create brsseb_lesson7 initial page snakeman | ofp:modeling:brsseb_lesson7 [2024/07/31 15:50] (current) – links added. snakeman | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== OFP Brsseb 3D Modeling Tutorial ====== | ||
+ | |||
+ | [[https:// | ||
+ | |||
+ | **Operation Flashpoint (OFP)** aka ArmA: Cold War Assault (CWA) | ||
+ | |||
+ | |||
====== Lesson 7: Creating your first ARMED Airplane ====== | ====== Lesson 7: Creating your first ARMED Airplane ====== | ||
Line 5: | Line 12: | ||
Preparing for the lesson | Preparing for the lesson | ||
- | FInally | + | Finally |
* OFP (daahhh), O2 and Bulldozer | * OFP (daahhh), O2 and Bulldozer | ||
* Basic understanding of the O2 interface | * Basic understanding of the O2 interface | ||
- | * Having fully understud | + | * Having fully understood |
- | * Note that it says " | + | * Note that it says " |
* PBOTool and TexView or similar program | * PBOTool and TexView or similar program | ||
- | * We will be using stuff from tut6, so make sure you at least know what that one was all about. | + | * We will be using stuff from tut6, so make sure you at least know what that one was all about. |
Ok, people. I will tell you how to arm a vehicle in this tut, and for that we need a vehicle. Move to next page. | Ok, people. I will tell you how to arm a vehicle in this tut, and for that we need a vehicle. Move to next page. | ||
Line 18: | Line 25: | ||
====== The basic model ====== | ====== The basic model ====== | ||
- | We need a vehicle for this tutorial, and I have picked the plane from tutorial 6. Its basically the same model from the end of the tut, with all the planeish features (flaps, rotors, etc) working nicely. All its missing is some firepower and thats what we`ll take care of now. Note that this tutorial will be usefull | + | We need a vehicle for this tutorial, and I have picked the plane from tutorial 6. Its basically the same model from the end of the tut, with all the planeish features (flaps, rotors, etc) working nicely. All its missing is some firepower and that' |
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
//Our final plane from tutorial 6 in flight// | //Our final plane from tutorial 6 in flight// | ||
- | But lets get the model. Its the same, except I have changed the folder and p3d file name from " | + | But lets get the model. Its the same, except I have changed the folder and p3d file name from " |
- | Also, i have deleted the View Pilot and View Cargo LOD. We need to add stuff to the original LOD, " | + | Also, i have deleted the View Pilot and View Cargo LOD. We need to add stuff to the original LOD, " |
- | For simple reason i didnt change the passenger proxy to the gunner, so the pilot will be in charge of the guns all the time. Much more fun, i think ;). | + | For simple reason i didn' |
- | * Get the modified plane project | + | * Get the modified plane project Brsseb_lesson7_start.rar |
- | * As always, but the folder the zip containts | + | * As always, but the folder the zip contains |
Now move on to the first job. | Now move on to the first job. | ||
Line 36: | Line 43: | ||
====== Setting up the machinegun ====== | ====== Setting up the machinegun ====== | ||
- | First up is the common machinegun that most warplanes have. We will make some sort of gunbarrel pointing out of the plane near the nose (to make this tut simple, | + | First up is the common machinegun that most warplanes have. We will make some sort of gunbarrel pointing out of the plane near the nose (to make this tut simple, |
- | //NB: This lack of turret on planes has been a limit for very long time. But after patch 1.90, there was some features added that indicated that this could now be done. But since its very new info and still onthe experimental level for the time being, im gonna assume that moveable | + | //NB: This lack of turret on planes has been a limit for very long time. But after patch 1.90, there was some features added that indicated that this could now be done. But since its very new info and still onthe experimental level for the time being, im gonna assume that movable |
Argh, too much text and info to remember there. Lets go, go go go!: | Argh, too much text and info to remember there. Lets go, go go go!: | ||
* Go to " | * Go to " | ||
- | * Using your now (hopefully) | + | * Using your now (hopefully) |
* Here is how my gun looks like: | * Here is how my gun looks like: | ||
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
//The gun i made. Simple box with a cylinder structure sticking out of it. All textured with the " | //The gun i made. Simple box with a cylinder structure sticking out of it. All textured with the " | ||
- | Ok, the totally ultra-high-detailed (a little bit of irony there) machinegun model is in place. But as for all guns, we need a muzzleflash. You should be able to do this one in your sleep if you have dont tut 3. Its simple, just 3 flat structures (two planes, one circle), all doublesided | + | Ok, the totally ultra-high-detailed (a little bit of irony there) machinegun model is in place. But as for all guns, we need a muzzleflash. You should be able to do this one in your sleep if you have don' |
* In File-> | * In File-> | ||
- | * One problem is that the flash structure is inserted in ALL lods, and we only want it in the first one. So go trough all the other lods (Geomtry, Fire Geo, Memory, etc) and delete the flash from them (both the structure AND the selection name " | + | * One problem is that the flash structure is inserted in ALL lods, and we only want it in the first one. So go trough all the other lods (Geometry, Fire Geo, Memory, etc) and delete the flash from them (both the structure AND the selection name " |
- | * Finaly, back in " | + | * Finally, back in " |
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
Hmm, nothing really new yet, is it? Not if you have done lesson 3 or lesson 5. But it will come along eventually. Now lets head for Memory LOD. | Hmm, nothing really new yet, is it? Not if you have done lesson 3 or lesson 5. But it will come along eventually. Now lets head for Memory LOD. | ||
Line 61: | Line 68: | ||
* In Memory LOD, zoom in on the gun muzzle in left view and add a single vertex (insert) at the very end (front) of the barrel. Name this vertex " | * In Memory LOD, zoom in on the gun muzzle in left view and add a single vertex (insert) at the very end (front) of the barrel. Name this vertex " | ||
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
- | Tada, the machinegun is ready! WHAT you might say? Bhaw, humburg, what about all the other stuff we made on eariler | + | Tada, the machinegun is ready! WHAT you might say? Bhaw, humburg, what about all the other stuff we made on earlier |
- | The only usable selection we have left might be the nabojnicestart& | + | The only usable selection we have left might be the nabojnicestart& |
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
//Our plane with the new machinegun and flash// | //Our plane with the new machinegun and flash// | ||
Line 74: | Line 81: | ||
====== Rocket Pods with unguided rockets ====== | ====== Rocket Pods with unguided rockets ====== | ||
- | Ok, lets make our first rockets for the plane. We want two pods under each wing carrying a decent load of rockets on them, like many choppers in ofp do. Now the trick with ungided | + | Ok, lets make our first rockets for the plane. We want two pods under each wing carrying a decent load of rockets on them, like many choppers in ofp do. Now the trick with unguided |
- | So, first we need a pod for the rockets to fire from. We need two pods, but we`ll make one and copy it. As always in my tuts, this is done with minimal | + | So, first we need a pod for the rockets to fire from. We need two pods, but we`ll make one and copy it. As always in my tuts, this is done with minimal |
* Model a simple pod using a cylinder with a small box-structure on top acting as the attachment rail. I textured the box using the black texture, the main cylinder sides with the " | * Model a simple pod using a cylinder with a small box-structure on top acting as the attachment rail. I textured the box using the black texture, the main cylinder sides with the " | ||
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
* Then I selected the whole pod, copied it and placed one under each wing like this: | * Then I selected the whole pod, copied it and placed one under each wing like this: | ||
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
Now lets head for memory LOD: | Now lets head for memory LOD: | ||
- | * Go to memory lod and place down two vertices, one in each pod. Place the vertrices | + | * Go to memory lod and place down two vertices, one in each pod. Place the vertices |
* Name them "R strela" | * Name them "R strela" | ||
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
- | Ok, thats the basic setup. The only thing stopping us from firing rockets now is the configfile setup. In the configfile, we can select type of rockets to fire from the pods. Later, then. | + | Ok, thats the basic setup. The only thing stopping us from firing rockets now is the configfile setup. In the configfile, we can select type of rockets to fire from the pods. Later, then. |
- | Ok, now we got a machinegun for closeup | + | Ok, now we got a machinegun for closeup |
====== Making our AA-rocket ====== | ====== Making our AA-rocket ====== | ||
- | Ok, we got our machinegun for closeup | + | Ok, we got our machinegun for closeup |
- | This one will not be inside a pod, but we will have the actual rocket hanging under the wings, ready to launch at your command. To do that we must create our rocket in a seperate | + | This one will not be inside a pod, but we will have the actual rocket hanging under the wings, ready to launch at your command. To do that we must create our rocket in a separate |
Lets rock! | Lets rock! | ||
Line 112: | Line 119: | ||
* Check out the SW_Tex in the folder to see how the rocket we are gonna make looks like. You see its a pretty standard Sidewinder rocket (you can use your own texture and model if you like, but ill use this texture for my rocket. First, Load the texture and drag it (use correct aspect to get it right). The texture will be our blueprint for the left view: | * Check out the SW_Tex in the folder to see how the rocket we are gonna make looks like. You see its a pretty standard Sidewinder rocket (you can use your own texture and model if you like, but ill use this texture for my rocket. First, Load the texture and drag it (use correct aspect to get it right). The texture will be our blueprint for the left view: | ||
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
- | * Now model the rocket using a subdivided cylinder. In front view, press F8 to make cylinder, and enter 4 in the Segments Z field and hit ok. Now resize and spread the cylinder subdivisions along the side blueprint just like we did for the scope on the sniper rifle in lesson 3 (see there if you dont get this). | + | * Now model the rocket using a subdivided cylinder. In front view, press F8 to make cylinder, and enter 4 in the Segments Z field and hit ok. Now resize and spread the cylinder subdivisions along the side blueprint just like we did for the scope on the sniper rifle in lesson 3 (see there if you don' |
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
- | * Now for the small wings we make simple | + | * Now for the small wings we make simple |
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
- | Now select all structures and apply the texture to them. Check the result out in bulldozer. If you are happy with it (move some vertices and retexture if you arent) , create the remaining 6 wings by copying and rotating the two first onces. In the end it should look like this: | + | Now select all structures and apply the texture to them. Check the result out in bulldozer. If you are happy with it (move some vertices and retexture if you aren't) , create the remaining 6 wings by copying and rotating the two first onces. In the end it should look like this: |
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
- | //Maybe not the most perfect | + | //Maybe not the most perfect |
Ok, rockets only need two lods, " | Ok, rockets only need two lods, " | ||
Line 133: | Line 140: | ||
* Resize and move the cylinder so that it looks like below, covering most of the original rocket (except the wings). | * Resize and move the cylinder so that it looks like below, covering most of the original rocket (except the wings). | ||
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
- | * Name the cylinder " | + | * Name the cylinder " |
- | Finally, lets scale the rocket to a bit more real dimensions. If your model is very similar to mine, you have a like 10 meter rocket on your hands here ;); so abit big for an airplane then. Lets scale it down to about 1 meter, shall we? Scale down the whole model Points-> | + | Finally, lets scale the rocket to a bit more real dimensions. If your model is very similar to mine, you have a like 10 meter rocket on your hands here ;); so a bit big for an airplane then. Lets scale it down to about 1 meter, shall we? Scale down the whole model Points-> |
Ok, the rocket model is now done. Save it as " | Ok, the rocket model is now done. Save it as " | ||
Line 147: | Line 154: | ||
* Open your armedplane file and in " | * Open your armedplane file and in " | ||
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
- | * Rotate and position the missile proxy as you did with the soldier proxys in lesson 2. | + | * Rotate and position the missile proxy as you did with the soldier proxys in lesson 2. |
- | * Do the same thing 5 more times untill | + | * Do the same thing 5 more times until you have 3 rockets under each wing nicely lined up like this: |
- | {{http://tactical.nekromantix.com/images/wiki/ | + | {{https://pmc.editing.wiki/ |
* Also, you might want to create some small rails or something so it looks like they are actually attached to the plane somehow. I made 4 small black-textured boxes like in picture. | * Also, you might want to create some small rails or something so it looks like they are actually attached to the plane somehow. I made 4 small black-textured boxes like in picture. | ||
- | {{http://tactical.nekromantix.com/images/wiki/ | + | {{https://pmc.editing.wiki/ |
Ok, the rockets are in place where we want them and all I looking good, eh? Actually, there is only a few things left before we once again say hello to mister Configfile himself: | Ok, the rockets are in place where we want them and all I looking good, eh? Actually, there is only a few things left before we once again say hello to mister Configfile himself: | ||
- | * Check out the 6 seleciton | + | * Check out the 6 selection |
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
...to..: | ...to..: | ||
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
Now we wont be able to view them in Bulldozer anymore, but thats ok. We are done positioning them and now the game engine will get them working properly. Dont ask, its how its done ;). | Now we wont be able to view them in Bulldozer anymore, but thats ok. We are done positioning them and now the game engine will get them working properly. Dont ask, its how its done ;). | ||
Line 172: | Line 179: | ||
* Select the 0.00 LOD in the lod window, right click and duplicate it twice. Change the two new lods to View Pilot and View Cargo. | * Select the 0.00 LOD in the lod window, right click and duplicate it twice. Change the two new lods to View Pilot and View Cargo. | ||
- | Ok, set to go then. One thing i must tell you when trying to create your own rockets: You can only have ONE TYPE OF CUSTOM ROCKET PROXYS on your model at a time! I mean, you cant make some stingers and some hellfires and set them up like we did for our Sidewinder, it wont work. Its an engine limitation, sorry. If you must have lots or rocket types on your aircraft, only one can have rockets fitted the way we have now and all the other must go in pods (like we did for our unguided missiles). | + | Ok, set to go then. One thing i must tell you when trying to create your own rockets: You can only have ONE TYPE OF CUSTOM ROCKET PROXYS on your model at a time! I mean, you cant make some stingers and some hellfires and set them up like we did for our Sidewinder, it wont work. Its an engine limitation, sorry. If you must have lots or rocket types on your aircraft, only one can have rockets fitted the way we have now and all the other must go in pods (like we did for our unguided missiles). |
- | Ok, now the main plane model is done and.....(sudden thunder)..hey, | + | Ok, now the main plane model is done and.....(sudden thunder)..hey, |
====== All kneel for the Great Configfile! ====== | ====== All kneel for the Great Configfile! ====== | ||
- | ...OH DEAR LORD! Is it Death? Satan? George Bush??. NO, its FAR worse!! Its the evil and scary configfile!! Nooooooooooooo! The dreaded file that with its alien C++ nature eats n00bs as if they were Pringels! | + | ...OH DEAR LORD! Is it Death? Satan? George Bush??. NO, its FAR worse!! Its the evil and scary configfile!! Nooooooooooooo! The dreaded file that with its alien C++ nature eats n00bs as if they were Pringels! |
- | O my God, its nothing like I have ever seen before! We have done weapons, cars, planes and the likes. And it has kept getting bigger and meaner each time. But now we want an airplane, WITH a machinegun, and not one, but TWO different rocket types, one of them OUR OWN CUSTOM ROCKET!. We`re really asking for trouble here, and the Mighty one seems pretty pissed off at the moment. Jeezees, we are talking about several pages here! Maybe as hight as...(scary drumroll) TWO or THREE! pages of text! Noooooooo..... | + | O my God, its nothing like I have ever seen before! We have done weapons, cars, planes and the likes. And it has kept getting bigger and meaner each time. But now we want an airplane, WITH a machinegun, and not one, but TWO different rocket types, one of them OUR OWN CUSTOM ROCKET!. We`re really asking for trouble here, and the Mighty one seems pretty pissed off at the moment. Jeezees, we are talking about several pages here! Maybe as height |
- | Ok, lets cut the crap, shall we ;). As you can see, im getting bored writing this tut now so thank god we are nearly done! As always, I have done the configfile and we`ll walk trough it together with me highlighting some important issues. | + | OK, lets cut the crap, shall we ;). As you can see, im getting bored writing this tut now so thank god we are nearly done! As always, I have done the configfile and we`ll walk trough it together with me highlighting some important issues. |
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
//Part 1// | //Part 1// | ||
- | At the top is the usual stuff, just some standard declarations, | + | At the top is the usual stuff, just some standard declarations, |
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
//Part 2// | //Part 2// | ||
- | Next class up is CfgAmmo. In this class all the ammo we are gonna use is defined (remember rocket is an ammo). | + | Next class up is CfgAmmo. In this class all the ammo we are gonna use is defined (remember rocket is an ammo). |
- | The CfgWeapons class natuarally | + | The CfgWeapons class naturally |
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
//Part 3// | //Part 3// | ||
- | Here is the rest of the CfgWeapons class and here the sidewinder launcher is defined. Now, we could have put the the AA rocket in a tube, but we want them naked on the wings. But we still need to define a launcher, and in this case the launcher is using the same model as the ammo, " | + | Here is the rest of the CfgWeapons class and here the sidewinder launcher is defined. Now, we could have put the the AA rocket in a tube, but we want them naked on the wings. But we still need to define a launcher, and in this case the launcher is using the same model as the ammo, " |
- | There is also the class for the unguided missile launcher. It dont have a model, its just gonna fire its rockets out from the two points we defined in Memory LOD. The rockets being fired is the standard rockets fired from the OFP ZuniLauncher, | + | There is also the class for the unguided missile launcher. It don' |
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
//Part 4// | //Part 4// | ||
Then its the CfgVehicle class, which you have seen all over the tutorials so far so I wont go in detail here. Just note the two arrays Weapons[] and Magazines[] containing the weapon names we have defined earlier. | Then its the CfgVehicle class, which you have seen all over the tutorials so far so I wont go in detail here. Just note the two arrays Weapons[] and Magazines[] containing the weapon names we have defined earlier. | ||
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
//Part 5// | //Part 5// | ||
- | And last but not least, the all-important CfgNonAIVehicles that we need for all addons that have weapon and ammo classes in them. Notice we have the class names here with a added " | + | And last but not least, the all-important CfgNonAIVehicles that we need for all addons that have weapon and ammo classes in them. Notice we have the class names here with a added " |
So boring stuff all this, but at the same time so important! But I hope that this configfile will help you in your future projects. If you have questions, ask me or any other cpp-knowing fellow. But for now, lets compile and test!! | So boring stuff all this, but at the same time so important! But I hope that this configfile will help you in your future projects. If you have questions, ask me or any other cpp-knowing fellow. But for now, lets compile and test!! | ||
Line 218: | Line 225: | ||
====== Compile and test it! ====== | ====== Compile and test it! ====== | ||
- | We are nearly there now, just need to compile it and off we go. So open PBOTool, select Compress, select the folder armedplane, name it " | + | We are nearly there now, just need to compile it and off we go. So open PBOTool, select Compress, select the folder armedplane, name it " |
Check out the model ingame (Under West->My Armed plane) and make sure everything works as planned. Any trouble, look back at the tutorial and see if you missed out on something. You can also download the final PBO, open it and compare it to your project. | Check out the model ingame (Under West->My Armed plane) and make sure everything works as planned. Any trouble, look back at the tutorial and see if you missed out on something. You can also download the final PBO, open it and compare it to your project. | ||
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
//The result// | //The result// | ||
- | The the final PBO file [[http:// | + | The the final PBO file Brsseb_lesson7_done.rar |
- | Well, there you go. The long-awaited rocket tutorial. Hopefully you have learned something and can start adding weapons to your vehicles. Remember there is still much to learn and the OFP engine is often messing with you, so be carefull, take it nice and slowy, do only one change at a time. Never expect a model to work the first time, usually it takes a good few change-recompile-restartOFP | + | Well, there you go. The long-awaited rocket tutorial. Hopefully you have learned something and can start adding weapons to your vehicles. Remember there is still much to learn and the OFP engine is often messing with you, so be careful, take it nice and slowly, do only one change at a time. Never expect a model to work the first time, usually it takes a good few change-recompile-restart OFP before everything works. And most important |
As always, brsseb@hotmail.com for bug reports, questions, or simply good old "hate you/love you man" messages. | As always, brsseb@hotmail.com for bug reports, questions, or simply good old "hate you/love you man" messages. | ||
+ | |||
+ | **Download** OFP.Brsseb_Lesson/ | ||
+ | < | ||
+ | magnet:? | ||
+ | </ | ||
+ | |||
====== Notes ====== | ====== Notes ====== | ||
- | This tutorial was written by Brsseb in [[http:// | + | This tutorial was written by Brsseb in [[http:// |
ofp/modeling/brsseb_lesson7.1209887944.txt.gz · Last modified: 2008/05/04 07:59 by snakeman