User Tools

Site Tools


ofp:modeling:brsseb_lesson7

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
ofp:modeling:brsseb_lesson7 [2008-10-06 07:59]
snakeman fixed typos.
ofp:modeling:brsseb_lesson7 [2024-03-19 06:53] (current)
snakeman download link torrent magnet updated.
Line 20: Line 20:
 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's what we`ll take care of now. Note that this tutorial will be useful for not just planes, but helicopters and most other vehicles in the game. Also, if you combine parts of this tutorial with tutorial 3 (the sniper rifle), you can do stuff like Rocket launchers for soldiers and the likes. 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's what we`ll take care of now. Note that this tutorial will be useful for not just planes, but helicopters and most other vehicles in the game. Also, if you combine parts of this tutorial with tutorial 3 (the sniper rifle), you can do stuff like Rocket launchers for soldiers and the likes.
  
-{{ http://tactical.nekromantix.com/images/wiki/​Brsseb/​Brsseb_lesson7_a_1.jpg }}+{{ https://pmc.editing.wiki/​images/​Brsseb/​Brsseb_lesson7_a_1.jpg }}
 //Our final plane from tutorial 6 in flight// //Our final plane from tutorial 6 in flight//
  
Line 29: Line 29:
 For simple reason i didn't 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't 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 ;). 
  
-  * Get the modified plane project ​[[http://​tactical.nekromantix.com/​ofp/​downloads/​Brsseb_lesson7_start.rar|here]].+  * Get the modified plane project Brsseb_lesson7_start.rar ​from bottom of this page.
   * As always, but the folder the zip contains in your bulldozer dir and start o2 with bulldozer   * As always, but the folder the zip contains in your bulldozer dir and start o2 with bulldozer
  
Line 46: Line 46:
   * Here is how my gun looks like:   * Here is how my gun looks like:
  
-{{ http://tactical.nekromantix.com/images/wiki/​Brsseb/​Brsseb_lesson7_c_1.jpg }}+{{ https://pmc.editing.wiki/​images/​Brsseb/​Brsseb_lesson7_c_1.jpg }}
 //The gun i made. Simple box with a cylinder structure sticking out of it. All textured with the "​black"​ texture.// //The gun i made. Simple box with a cylinder structure sticking out of it. All textured with the "​black"​ texture.//
  
Line 55: Line 55:
   * Finally, back in "​0.00"​ LOD, select the flash and move it so that it sits nicely at the end of the gun barrel like in the picture below:   * Finally, back in "​0.00"​ LOD, select the flash and move it so that it sits nicely at the end of the gun barrel like in the picture below:
  
-{{ http://tactical.nekromantix.com/images/wiki/​Brsseb/​Brsseb_lesson7_c_2.jpg }}+{{ https://pmc.editing.wiki/​images/​Brsseb/​Brsseb_lesson7_c_2.jpg }}
  
 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 61:
   * 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 "​kulomet"​.   * 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 "​kulomet"​.
  
-{{ http://tactical.nekromantix.com/images/wiki/​Brsseb/​Brsseb_lesson7_c_3.jpg }}+{{ https://pmc.editing.wiki/​images/​Brsseb/​Brsseb_lesson7_c_3.jpg }}
  
 Tada, the machinegun is ready! WHAT you might say? Bhaw, humburg, what about all the other stuff we made on earlier gun models, all the crazy stuff about "​osaVeze",​ "Konec Hlavne",​ and all that crazy czech gibberish? Well, remember the thing about us not being able to do movable turrets on planes? Yep, with a fixed gun position all the selection stuff before is not needed. We need just a muzzleflash in model lod and a single vertex in mem to indicate where we want the bullet to start from. It will always go in the plane direction. ​ Tada, the machinegun is ready! WHAT you might say? Bhaw, humburg, what about all the other stuff we made on earlier gun models, all the crazy stuff about "​osaVeze",​ "Konec Hlavne",​ and all that crazy czech gibberish? Well, remember the thing about us not being able to do movable turrets on planes? Yep, with a fixed gun position all the selection stuff before is not needed. We need just a muzzleflash in model lod and a single vertex in mem to indicate where we want the bullet to start from. It will always go in the plane direction. ​
Line 67: Line 67:
 The only usable selection we have left might be the nabojnicestart&​end (indicate where the empty cartridges are shot out from), but I don't want out plane to shoot them out of the body and maybe risk getting one in the propeller or something like that. The only usable selection we have left might be the nabojnicestart&​end (indicate where the empty cartridges are shot out from), but I don't want out plane to shoot them out of the body and maybe risk getting one in the propeller or something like that.
  
-{{ http://tactical.nekromantix.com/images/wiki/​Brsseb/​Brsseb_lesson7_c_4.jpg }}+{{ https://pmc.editing.wiki/​images/​Brsseb/​Brsseb_lesson7_c_4.jpg }}
 //Our plane with the new machinegun and flash// //Our plane with the new machinegun and flash//
  
Line 80: Line 80:
   * 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 "​t_cement"​-texture and the front and rear of the cylinder using the black again.   * 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 "​t_cement"​-texture and the front and rear of the cylinder using the black again.
  
-{{ http://tactical.nekromantix.com/images/wiki/​Brsseb/​Brsseb_lesson7_d_1.jpg }}+{{ https://pmc.editing.wiki/​images/​Brsseb/​Brsseb_lesson7_d_1.jpg }}
  
-{{ http://tactical.nekromantix.com/images/wiki/​Brsseb/​Brsseb_lesson7_d_2.jpg }}+{{ https://pmc.editing.wiki/​images/​Brsseb/​Brsseb_lesson7_d_2.jpg }}
  
   * 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/​Brsseb/​Brsseb_lesson7_d_3.jpg }}+{{ https://pmc.editing.wiki/​images/​Brsseb/​Brsseb_lesson7_d_3.jpg }}
  
-{{ http://tactical.nekromantix.com/images/wiki/​Brsseb/​Brsseb_lesson7_d_4.jpg }}+{{ https://pmc.editing.wiki/​images/​Brsseb/​Brsseb_lesson7_d_4.jpg }}
  
 Now lets head for memory LOD: Now lets head for memory LOD:
Line 95: Line 95:
   * Name them "R strela"​ and "L strela"​.   * Name them "R strela"​ and "L strela"​.
  
-{{ http://tactical.nekromantix.com/images/wiki/​Brsseb/​Brsseb_lesson7_d_5.jpg }}+{{ https://pmc.editing.wiki/​images/​Brsseb/​Brsseb_lesson7_d_5.jpg }}
  
 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. 
Line 112: Line 112:
   * 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/​Brsseb/​Brsseb_lesson7_e_1.jpg }}+{{ https://pmc.editing.wiki/​images/​Brsseb/​Brsseb_lesson7_e_1.jpg }}
  
   * 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't 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't get this).
  
-{{ http://tactical.nekromantix.com/images/wiki/​Brsseb/​Brsseb_lesson7_e_2.jpg }}+{{ https://pmc.editing.wiki/​images/​Brsseb/​Brsseb_lesson7_e_2.jpg }}
  
   * Now for the small wings we make simple double sided faces. We have two wing types, front and rear. Trace the shape of the wing, select all 4 vertices and hit F6 twice. Same goes for the rear wing. Again trace, select all 4 and double hit F6. You now have the basic cylinder shape and a sample of both wing types like this:   * Now for the small wings we make simple double sided faces. We have two wing types, front and rear. Trace the shape of the wing, select all 4 vertices and hit F6 twice. Same goes for the rear wing. Again trace, select all 4 and double hit F6. You now have the basic cylinder shape and a sample of both wing types like this:
  
-{{ http://tactical.nekromantix.com/images/wiki/​Brsseb/​Brsseb_lesson7_e_3.jpg }}+{{ https://pmc.editing.wiki/​images/​Brsseb/​Brsseb_lesson7_e_3.jpg }}
  
 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: 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/​Brsseb/​Brsseb_lesson7_e_4.jpg }}+{{ https://pmc.editing.wiki/​images/​Brsseb/​Brsseb_lesson7_e_4.jpg }}
 //Maybe not the most perfect paint job ever, but it looks nice for a tutorial-quality model, eh?// //Maybe not the most perfect paint job ever, but it looks nice for a tutorial-quality model, eh?//
  
Line 133: Line 133:
   * 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/​Brsseb/​Brsseb_lesson7_e_5.jpg }}+{{ https://pmc.editing.wiki/​images/​Brsseb/​Brsseb_lesson7_e_5.jpg }}
  
   * Name the cylinder "​Component01",​ select all (CTRL-A) and add, say 15-20 to weight (total mass)   * Name the cylinder "​Component01",​ select all (CTRL-A) and add, say 15-20 to weight (total mass)
Line 147: Line 147:
   * Open your armedplane file and in "​0.000"​ lod, select Create->​Proxy from the menu. Write this and hit ok:   * Open your armedplane file and in "​0.000"​ lod, select Create->​Proxy from the menu. Write this and hit ok:
  
-{{ http://tactical.nekromantix.com/images/wiki/​Brsseb/​Brsseb_lesson7_f_1.jpg }}+{{ https://pmc.editing.wiki/​images/​Brsseb/​Brsseb_lesson7_f_1.jpg }}
  
   * 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 until you have 3 rockets under each wing nicely lined up like this:   * 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/​Brsseb/​Brsseb_lesson7_f_2.jpg}} {{http://tactical.nekromantix.com/images/wiki/​Brsseb/​Brsseb_lesson7_f_3.jpg}}+{{https://pmc.editing.wiki/​images/​Brsseb/​Brsseb_lesson7_f_2.jpg}} {{https://pmc.editing.wiki/​images/​Brsseb/​Brsseb_lesson7_f_3.jpg}}
  
   * 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/​Brsseb/​Brsseb_lesson7_f_4.jpg}} {{http://tactical.nekromantix.com/images/wiki/​Brsseb/​Brsseb_lesson7_f_5.jpg}}+{{https://pmc.editing.wiki/​images/​Brsseb/​Brsseb_lesson7_f_4.jpg}} {{https://pmc.editing.wiki/​images/​Brsseb/​Brsseb_lesson7_f_5.jpg}}
  
 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:
Line 162: Line 162:
   * Check out the 6 selection names for the rocket proxys. Change all of them from:   * Check out the 6 selection names for the rocket proxys. Change all of them from:
  
-{{ http://tactical.nekromantix.com/images/wiki/​Brsseb/​Brsseb_lesson7_f_6.jpg }}+{{ https://pmc.editing.wiki/​images/​Brsseb/​Brsseb_lesson7_f_6.jpg }}
  
 ...to..: ...to..:
  
-{{ http://tactical.nekromantix.com/images/wiki/​Brsseb/​Brsseb_lesson7_f_7.jpg }}+{{ https://pmc.editing.wiki/​images/​Brsseb/​Brsseb_lesson7_f_7.jpg }}
  
 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 185: Line 185:
 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. I'm not doing a tutorial on configfiles,​ for that you need to get a C++ Programming tut. Lets go! 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. I'm not doing a tutorial on configfiles,​ for that you need to get a C++ Programming tut. Lets go!
  
-{{ http://tactical.nekromantix.com/images/wiki/​Brsseb/​Brsseb_lesson7_g_1.jpg }}+{{ https://pmc.editing.wiki/​images/​Brsseb/​Brsseb_lesson7_g_1.jpg }}
 //Part 1// //Part 1//
  
 At the top is the usual stuff, just some standard declarations,​ the CfgPatches class where we introduce our planemodel. Note that we don't list the weapons we have since we aren't gonna use them in other PBOs (aka not export the weapons for use on other vehicles). Then its CfgModels, where we define out airplane class and the custom proxy weapon we are gonna use. Note that when we have our own custom made rocket, we must mention it in this class. And, whenever we have proxys, its crucial that the rocket class name match the actual rocket filename! (class sidewinder, sidewinder.p3d). At the top is the usual stuff, just some standard declarations,​ the CfgPatches class where we introduce our planemodel. Note that we don't list the weapons we have since we aren't gonna use them in other PBOs (aka not export the weapons for use on other vehicles). Then its CfgModels, where we define out airplane class and the custom proxy weapon we are gonna use. Note that when we have our own custom made rocket, we must mention it in this class. And, whenever we have proxys, its crucial that the rocket class name match the actual rocket filename! (class sidewinder, sidewinder.p3d).
  
-{{ http://tactical.nekromantix.com/images/wiki/​Brsseb/​Brsseb_lesson7_g_2.jpg }}+{{ https://pmc.editing.wiki/​images/​Brsseb/​Brsseb_lesson7_g_2.jpg }}
 //Part 2// //Part 2//
  
Line 197: Line 197:
 The CfgWeapons class naturally is the place to define the weapons we have on board our plane. First up is the machinegun, which is a pretty standard gun using "​Bullet30",​ which is a standard OFP-defined explosive bullet. Count indicate we have 500 rounds and autofire=true that we can hold down the fire button and bump out bullets automatically. Reloadtime 0.08 means that it is 8/100 second between each bullet being fired. The CfgWeapons class naturally is the place to define the weapons we have on board our plane. First up is the machinegun, which is a pretty standard gun using "​Bullet30",​ which is a standard OFP-defined explosive bullet. Count indicate we have 500 rounds and autofire=true that we can hold down the fire button and bump out bullets automatically. Reloadtime 0.08 means that it is 8/100 second between each bullet being fired.
  
-{{ http://tactical.nekromantix.com/images/wiki/​Brsseb/​Brsseb_lesson7_g_3.jpg }}+{{ https://pmc.editing.wiki/​images/​Brsseb/​Brsseb_lesson7_g_3.jpg }}
 //Part 3// //Part 3//
  
Line 204: Line 204:
 There is also the class for the unguided missile launcher. It don't 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,​ hence the class we are inheriting from (a bit of C++ there, n00bz, sorry). The count=80 gives us 80 rockets to play with. There is also the class for the unguided missile launcher. It don't 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,​ hence the class we are inheriting from (a bit of C++ there, n00bz, sorry). The count=80 gives us 80 rockets to play with.
  
-{{ http://tactical.nekromantix.com/images/wiki/​Brsseb/​Brsseb_lesson7_g_4.jpg }}+{{ https://pmc.editing.wiki/​images/​Brsseb/​Brsseb_lesson7_g_4.jpg }}
 //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/​Brsseb/​Brsseb_lesson7_g_5.jpg }}+{{ https://pmc.editing.wiki/​images/​Brsseb/​Brsseb_lesson7_g_5.jpg }}
 //Part 5// //Part 5//
  
Line 222: Line 222:
 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/​Brsseb/​Brsseb_lesson7_h_1.jpg }}+{{ https://pmc.editing.wiki/​images/​Brsseb/​Brsseb_lesson7_h_1.jpg }}
 //The result// //The result//
  
-The the final PBO file [[http://​tactical.nekromantix.com/​ofp/​downloads/​Brsseb_lesson7_done.rar|here]].+The the final PBO file Brsseb_lesson7_done.rar ​below.
  
 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 DON'T GIVE UP!  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 DON'T GIVE UP! 
  
 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/​ Torrent Magnet from below:
 +<​code>​
 +magnet:?​xt=urn:​btih:​40aac3407210ddb8ffcee06cdb009c0b099ccdce&​xt=urn:​btmh:​122046986f756bcebf9744dc9f81bc3fc736a54e164113ec62e18c827a4a06271364&​dn=OFP.Brsseb_Lesson&​tr=udp%3a%2f%2ftracker.opentrackr.org%3a1337%2fannounce&​tr=udp%3a%2f%2ftracker.openbittorrent.com%3a6969%2fannounce
 +</​code>​
 +
  
 ====== Notes ====== ====== Notes ======
  
-This tutorial was written by Brsseb in [[http://​ofp.gamepark.cz/​_hosted/​brsseb/​|here]], it was posted here with his permissions,​ thank you Brsseb!+This tutorial was written by Brsseb in [[http://​ofp.gamepark.cz/​_hosted/​brsseb/​|ofp.gamepark.cz/​_hosted/​brsseb/​]], it was posted here with his permissions,​ thank you Brsseb!
  
ofp/modeling/brsseb_lesson7.1223279986.txt.gz ยท Last modified: 2008-10-06 07:59 by snakeman