User Tools

Site Tools


ofp:modeling:brsseb_lesson5

Differences

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

Link to this comparison view

Next revision
Previous revision
ofp:modeling:brsseb_lesson5 [2008-05-04 07:52]
snakeman created brsseb_lesson5 initial page
ofp:modeling:brsseb_lesson5 [2024-03-19 06:49] (current)
snakeman download link torrent magnet updated.
Line 22: Line 22:
 Hey, its not too shabby now is it? Ok, so its a pretty basic 3d model but as allways it does the job. Hey, its not too shabby now is it? Ok, so its a pretty basic 3d model but as allways it does the job.
  
-{{ http://tactical.nekromantix.com/images/wiki/​Brsseb/​Brsseb_lesson5_b_1.jpg }}+{{ https://pmc.editing.wiki/​images/​Brsseb/​Brsseb_lesson5_b_1.jpg }}
 //The model we will we working with in this tutorial. (note that since I use M113 gunner proxy, this wont show up in Bulldozer as in picture. Dont worry though, it works ingame)// //The model we will we working with in this tutorial. (note that since I use M113 gunner proxy, this wont show up in Bulldozer as in picture. Dont worry though, it works ingame)//
  
-First thing you must do is download the model.You can get the ZIP [[http://​tactical.nekromantix.com/​ofp/​downloads/​Brsseb_lesson5_start.rar|here]].+First thing you must do is download the model.You can get the ZIP Brsseb_lesson5_start.rar ​from bottom of this page.
  
 Put the "​gunboat"​ folder with content in the bulldozer dir and open it in o2. As you can see I have made the basics for you: The model has basic textures, a driver, gunner and four cargo proxys. I also have made glass for the cockpit and the gun model is done with textured muzzleflash ready (note: read tutorial 3 if you have not been into gun making before). Put the "​gunboat"​ folder with content in the bulldozer dir and open it in o2. As you can see I have made the basics for you: The model has basic textures, a driver, gunner and four cargo proxys. I also have made glass for the cockpit and the gun model is done with textured muzzleflash ready (note: read tutorial 3 if you have not been into gun making before).
  
-{{ http://tactical.nekromantix.com/images/wiki/​Brsseb/​Brsseb_lesson5_b_2.jpg }}+{{ https://pmc.editing.wiki/​images/​Brsseb/​Brsseb_lesson5_b_2.jpg }}
 //Basic Geometry LOD// //Basic Geometry LOD//
  
 As you can see, Geometry LOD is all done (because this was learned in lesson 1, remember?). For Fire Geometry, i just duplicated the content in Geometry just so that we have it. But this is not important for this lesson anyway. Also, Hitpoints is missing. We dont do that either, waste if time. For more info about fire geometry and hitpoint lod, see tutorial 4 (helicopter). All were explained there. As you can see, Geometry LOD is all done (because this was learned in lesson 1, remember?). For Fire Geometry, i just duplicated the content in Geometry just so that we have it. But this is not important for this lesson anyway. Also, Hitpoints is missing. We dont do that either, waste if time. For more info about fire geometry and hitpoint lod, see tutorial 4 (helicopter). All were explained there.
  
-{{ http://tactical.nekromantix.com/images/wiki/​Brsseb/​Brsseb_lesson5_b_4.jpg }}+{{ https://pmc.editing.wiki/​images/​Brsseb/​Brsseb_lesson5_b_4.jpg }}
 //​LandContact LOD// //​LandContact LOD//
  
 The landcontact lod speak for itself. Note that the wheight of the ship and the placement of the landcontact has much to say on how deep the ship will go in the water. Here I have come up with a good placement of the vertices that makes the boat lie nicely in the water. The landcontact lod speak for itself. Note that the wheight of the ship and the placement of the landcontact has much to say on how deep the ship will go in the water. Here I have come up with a good placement of the vertices that makes the boat lie nicely in the water.
  
-{{ http://tactical.nekromantix.com/images/wiki/​Brsseb/​Brsseb_lesson5_b_3.jpg }}+{{ https://pmc.editing.wiki/​images/​Brsseb/​Brsseb_lesson5_b_3.jpg }}
 //Memory LOD content// //Memory LOD content//
  
Line 54: Line 54:
   * In left view, zoom in so that you see the whole gun in picture, like this:   * In left view, zoom in so that you see the whole gun in picture, like this:
  
-{{ http://tactical.nekromantix.com/images/wiki/​Brsseb/​Brsseb_lesson5_c_1.jpg }}+{{ https://pmc.editing.wiki/​images/​Brsseb/​Brsseb_lesson5_c_1.jpg }}
  
   * Press F2, and select all of the structures like in picture. make sure to select this right. Name this selection "​OtocHlaven"​ ("​Turn-barrel"​ directly translated). This is the part that will move up and down.   * Press F2, and select all of the structures like in picture. make sure to select this right. Name this selection "​OtocHlaven"​ ("​Turn-barrel"​ directly translated). This is the part that will move up and down.
  
-{{ http://tactical.nekromantix.com/images/wiki/​Brsseb/​Brsseb_lesson5_c_2.jpg }}+{{ https://pmc.editing.wiki/​images/​Brsseb/​Brsseb_lesson5_c_2.jpg }}
  
   * Next, for the left and right moving part, select these structures and name them "​OtocVez"​   * Next, for the left and right moving part, select these structures and name them "​OtocVez"​
  
-{{ http://tactical.nekromantix.com/images/wiki/​Brsseb/​Brsseb_lesson5_c_3.jpg }}+{{ https://pmc.editing.wiki/​images/​Brsseb/​Brsseb_lesson5_c_3.jpg }}
  
 Ok, one more thing and we can move on to Memory LOD. As with all gun addons, ofp engine will like to know what the muzzleflash structure is so that it its displayed properly. Ok, one more thing and we can move on to Memory LOD. As with all gun addons, ofp engine will like to know what the muzzleflash structure is so that it its displayed properly.
Line 68: Line 68:
   * Select the muzzleflash structure (both vertical and horizontal plane and the front flash). Name this selection "​Zasleh"​.   * Select the muzzleflash structure (both vertical and horizontal plane and the front flash). Name this selection "​Zasleh"​.
  
-{{ http://tactical.nekromantix.com/images/wiki/​Brsseb/​Brsseb_lesson5_c_4.jpg }}+{{ https://pmc.editing.wiki/​images/​Brsseb/​Brsseb_lesson5_c_4.jpg }}
  
 When you have doublechecked that all the names are right (wrong named selections is a VERY common bug, thrust me!), then move on. When you have doublechecked that all the names are right (wrong named selections is a VERY common bug, thrust me!), then move on.
Line 78: Line 78:
   * Zoom in like this to have a clear picture. Do this in the other views since we will need all four view to position the vertices right.   * Zoom in like this to have a clear picture. Do this in the other views since we will need all four view to position the vertices right.
  
-{{ http://tactical.nekromantix.com/images/wiki/​Brsseb/​Brsseb_lesson5_d_1.jpg }}+{{ https://pmc.editing.wiki/​images/​Brsseb/​Brsseb_lesson5_d_1.jpg }}
  
   * Using the picture below, place a single vertex and name it "​gunnerview"​. I wont go in detail about this one, but its used to tune how gunner looks in 1st person.   * Using the picture below, place a single vertex and name it "​gunnerview"​. I wont go in detail about this one, but its used to tune how gunner looks in 1st person.
  
-{{ http://tactical.nekromantix.com/images/wiki/​Brsseb/​Brsseb_lesson5_d_2.jpg }}+{{ https://pmc.editing.wiki/​images/​Brsseb/​Brsseb_lesson5_d_2.jpg }}
  
   * As with all gun addons, we need to define the gun barrel so that the bullets come out properly. Insert two vertices (make sure they are strait) and name them the labels on the picture:   * As with all gun addons, we need to define the gun barrel so that the bullets come out properly. Insert two vertices (make sure they are strait) and name them the labels on the picture:
  
-{{ http://tactical.nekromantix.com/images/wiki/​Brsseb/​Brsseb_lesson5_d_3.jpg }}+{{ https://pmc.editing.wiki/​images/​Brsseb/​Brsseb_lesson5_d_3.jpg }}
  
   * New we need to define where the gun shoots out the empty cartridges. Its defined in similar manner to the gun barrel, just with different seleciton names. Use topview and sideview to make the two vertices.   * New we need to define where the gun shoots out the empty cartridges. Its defined in similar manner to the gun barrel, just with different seleciton names. Use topview and sideview to make the two vertices.
  
-{{ http://tactical.nekromantix.com/images/wiki/​Brsseb/​Brsseb_lesson5_d_4.jpg }}+{{ https://pmc.editing.wiki/​images/​Brsseb/​Brsseb_lesson5_d_4.jpg }}
  
   * Then its the axis for the up and down movement. Its just two vertices placed in the spot where we want the gun to turn around. See the picture for details. Make and select the two vertices and call them called "osa hlavne"​.   * Then its the axis for the up and down movement. Its just two vertices placed in the spot where we want the gun to turn around. See the picture for details. Make and select the two vertices and call them called "osa hlavne"​.
  
-{{ http://tactical.nekromantix.com/images/wiki/​Brsseb/​Brsseb_lesson5_d_5.jpg }}+{{ https://pmc.editing.wiki/​images/​Brsseb/​Brsseb_lesson5_d_5.jpg }}
  
   * Then for the axis for the left and right movement. In left view place two vertices right on top of each other (place on and drag-copy one down with y-axis locked to get them properly aligned). Name them "osa veze".   * Then for the axis for the left and right movement. In left view place two vertices right on top of each other (place on and drag-copy one down with y-axis locked to get them properly aligned). Name them "osa veze".
  
-{{ http://tactical.nekromantix.com/images/wiki/​Brsseb/​Brsseb_lesson5_d_6.jpg }}+{{ https://pmc.editing.wiki/​images/​Brsseb/​Brsseb_lesson5_d_6.jpg }}
  
   * Now for some reselecting. Select both usti/konec hlavne, both nabojnice-vertices,​ and the gunnerview vertex. Name all 5 vertices "​OtocHlaven"​.   * Now for some reselecting. Select both usti/konec hlavne, both nabojnice-vertices,​ and the gunnerview vertex. Name all 5 vertices "​OtocHlaven"​.
  
-{{ http://tactical.nekromantix.com/images/wiki/​Brsseb/​Brsseb_lesson5_d_7.jpg }}+{{ https://pmc.editing.wiki/​images/​Brsseb/​Brsseb_lesson5_d_7.jpg }}
  
   * Now, select the same again, but this time also take the two "osa hlavne"​ vertices with you. Name all 7 vertrices for "​OtocVez",​ like in picture.   * Now, select the same again, but this time also take the two "osa hlavne"​ vertices with you. Name all 7 vertrices for "​OtocVez",​ like in picture.
  
-{{ http://tactical.nekromantix.com/images/wiki/​Brsseb/​Brsseb_lesson5_d_8.jpg }}+{{ https://pmc.editing.wiki/​images/​Brsseb/​Brsseb_lesson5_d_8.jpg }}
  
 Phew, lot of stupid selection names there. Tripplecheck them to make sure they are all right before moving on! Phew, lot of stupid selection names there. Tripplecheck them to make sure they are all right before moving on!
Line 116: Line 116:
   * Go to memory lod, zoom in on the mast and add three vertices on it like in picture below. The one at the top is the white light strobe ("bily pozicni blik") and the other two are the red and green ones ("​cerveny pozicni"​ and "​zeleny pozicni"​).   * Go to memory lod, zoom in on the mast and add three vertices on it like in picture below. The one at the top is the white light strobe ("bily pozicni blik") and the other two are the red and green ones ("​cerveny pozicni"​ and "​zeleny pozicni"​).
  
-{{ http://tactical.nekromantix.com/images/wiki/​Brsseb/​Brsseb_lesson5_e_1.jpg }}+{{ https://pmc.editing.wiki/​images/​Brsseb/​Brsseb_lesson5_e_1.jpg }}
  
   * Also, for these lamps to work, we must also have a normal spotlight on the ship. No problem, since a forward pointing spotlight lighting up the deck and gunnerview is always handy for nightmissions. So we just add two vertrices in memory lod, in side view as in picture and name them. Then we have a nice little lamp to turn on and off at night.   * Also, for these lamps to work, we must also have a normal spotlight on the ship. No problem, since a forward pointing spotlight lighting up the deck and gunnerview is always handy for nightmissions. So we just add two vertrices in memory lod, in side view as in picture and name them. Then we have a nice little lamp to turn on and off at night.
  
-{{ http://tactical.nekromantix.com/images/wiki/​Brsseb/​Brsseb_lesson5_e_5.jpg }}+{{ https://pmc.editing.wiki/​images/​Brsseb/​Brsseb_lesson5_e_5.jpg }}
  
   * Just as we can define where the bullet can come out on guns, we can define where the exhaust will come out on vehicles. Place two vertices and name them like on picture:   * Just as we can define where the bullet can come out on guns, we can define where the exhaust will come out on vehicles. Place two vertices and name them like on picture:
  
-{{ http://tactical.nekromantix.com/images/wiki/​Brsseb/​Brsseb_lesson5_e_2.jpg }}+{{ https://pmc.editing.wiki/​images/​Brsseb/​Brsseb_lesson5_e_2.jpg }}
  
   * It would also be nice to have your radar working. To do that we need to make an axis in Memory lod for the spinning radar structure and name it "osa radaru"​.   * It would also be nice to have your radar working. To do that we need to make an axis in Memory lod for the spinning radar structure and name it "osa radaru"​.
  
-{{ http://tactical.nekromantix.com/images/wiki/​Brsseb/​Brsseb_lesson5_e_3.jpg }}+{{ https://pmc.editing.wiki/​images/​Brsseb/​Brsseb_lesson5_e_3.jpg }}
  
   * Ofp engine also needs to know which structure to spin around the axis, so go to "​0.00"​ lod and select the radar block. Name it "​radar"​.   * Ofp engine also needs to know which structure to spin around the axis, so go to "​0.00"​ lod and select the radar block. Name it "​radar"​.
  
-{{ http://tactical.nekromantix.com/images/wiki/​Brsseb/​Brsseb_lesson5_e_4.jpg }}+{{ https://pmc.editing.wiki/​images/​Brsseb/​Brsseb_lesson5_e_4.jpg }}
  
 Ok, nice. So now we have some lights for nighttime driving and a working radar. Not bad, eh? And so easy. Next we will check out the config, so brace yourself newbie. Remember you are much bigger than it and its more affraid of you than you are of it..no, thats snakes and stuff, configfiles are mean man-eating beasts..?​!..(kremt),​ anyway... Ok, nice. So now we have some lights for nighttime driving and a working radar. Not bad, eh? And so easy. Next we will check out the config, so brace yourself newbie. Remember you are much bigger than it and its more affraid of you than you are of it..no, thats snakes and stuff, configfiles are mean man-eating beasts..?​!..(kremt),​ anyway...
Line 138: Line 138:
 ====== The configfile from hell`s older brother ====== ====== The configfile from hell`s older brother ======
  
-Ok, configfiles in these tutorials are just getting bigger and bigger. As always, I will just give you an overview of the content and there is nothing you must do other than to read and hopefully learn something. Dont complain, I dont teach C++ programming. So dont send me anymail with something like "what the f*** is a class?"​ in the topic. ​+Ok, configfiles in these tutorials are just getting bigger and bigger. As always, I will just give you an overview of the content and there is nothing you must do other than to read and hopefully learn something. Dont complain, I dont teach C++ programming. So dont send me anymail with something like "what the f00k is a class?"​ in the topic. ​
  
 Lets walk though the whole file together and Ill explain some stuff on the way. Watch and learn. Lets walk though the whole file together and Ill explain some stuff on the way. Watch and learn.
  
-{{ http://tactical.nekromantix.com/images/wiki/​Brsseb/​Brsseb_lesson5_f_1.jpg }}+{{ https://pmc.editing.wiki/​images/​Brsseb/​Brsseb_lesson5_f_1.jpg }}
 //Part 1 of the config// //Part 1 of the config//
  
 So far only the usual stuff; some basic defines, the CfgPatches class (used to declare the addons we have made), and the CfgModel class where we lay out which subclasses our addon belong to. See that our addon is a "​Ship"​ (class gunboat: Ship {}). So far only the usual stuff; some basic defines, the CfgPatches class (used to declare the addons we have made), and the CfgModel class where we lay out which subclasses our addon belong to. See that our addon is a "​Ship"​ (class gunboat: Ship {}).
  
-{{ http://tactical.nekromantix.com/images/wiki/​Brsseb/​Brsseb_lesson5_f_2.jpg }}+{{ https://pmc.editing.wiki/​images/​Brsseb/​Brsseb_lesson5_f_2.jpg }}
 //Part 2 of the config// //Part 2 of the config//
  
 Here is the start of the gunboat class where we define all the stuff needed for our ship. The usual stuff are there: model, editor name, nr of passengers, does it have a gunner, etc. Some values are pretty strait forward and easy to see what they do. Note that we dont have a commander, so we say hasCommander=false and DriverIsCommander=true so that our driver is the ships boss. Also see that ofp deal with two sorts of ships, SmallShips and BigShips. Our ship is a big one, as you see at the top. Here is the start of the gunboat class where we define all the stuff needed for our ship. The usual stuff are there: model, editor name, nr of passengers, does it have a gunner, etc. Some values are pretty strait forward and easy to see what they do. Note that we dont have a commander, so we say hasCommander=false and DriverIsCommander=true so that our driver is the ships boss. Also see that ofp deal with two sorts of ships, SmallShips and BigShips. Our ship is a big one, as you see at the top.
  
-{{ http://tactical.nekromantix.com/images/wiki/​Brsseb/​Brsseb_lesson5_f_3.jpg }}+{{ https://pmc.editing.wiki/​images/​Brsseb/​Brsseb_lesson5_f_3.jpg }}
 //Part 3 of the config// //Part 3 of the config//
  
Line 159: Line 159:
 Then there is the class Reflector. It just controls settings about our frontlooking spotlight. Experiment with the settings and see what happens. Then there is the class Reflector. It just controls settings about our frontlooking spotlight. Experiment with the settings and see what happens.
  
-{{ http://tactical.nekromantix.com/images/wiki/​Brsseb/​Brsseb_lesson5_f_4.jpg }}+{{ https://pmc.editing.wiki/​images/​Brsseb/​Brsseb_lesson5_f_4.jpg }}
 //Part 4 of the config// //Part 4 of the config//
  
Line 172: Line 172:
 The model is almost done and ready to be compiled. But first, we need the view LODs for the driver, gunner and the passengers. To not waste much time, jsut select the "​0.00"​ lod, rightclick the name and hit duplicate 3 times. Then change the 3 copies to "View Pilot",​ "View Cargo" and "View Gunner"​. If you have read lesson 4, you know that its good to delete some parts of the ship in those lods to save hardware power, but I wont do it on this simple model. See lesson 4 for more info about this. The model is almost done and ready to be compiled. But first, we need the view LODs for the driver, gunner and the passengers. To not waste much time, jsut select the "​0.00"​ lod, rightclick the name and hit duplicate 3 times. Then change the 3 copies to "View Pilot",​ "View Cargo" and "View Gunner"​. If you have read lesson 4, you know that its good to delete some parts of the ship in those lods to save hardware power, but I wont do it on this simple model. See lesson 4 for more info about this.
  
-{{ http://tactical.nekromantix.com/images/wiki/​Brsseb/​Brsseb_lesson5_g_1.jpg }}+{{ https://pmc.editing.wiki/​images/​Brsseb/​Brsseb_lesson5_g_1.jpg }}
 //Make sure you have the 3 View lods in order. Just copy "​0.00"​ lod for all of them// //Make sure you have the 3 View lods in order. Just copy "​0.00"​ lod for all of them//
  
 Then its compiletime! So open Pbotool and compress the gunboat folder, putting the "​gunboat.pbo"​ file under addons in ofp folder. The boat should now be found under West->​Armored->​My first gunboat. Then its compiletime! So open Pbotool and compress the gunboat folder, putting the "​gunboat.pbo"​ file under addons in ofp folder. The boat should now be found under West->​Armored->​My first gunboat.
  
-{{ http://tactical.nekromantix.com/images/wiki/​Brsseb/​Brsseb_lesson5_g_2.jpg }}+{{ https://pmc.editing.wiki/​images/​Brsseb/​Brsseb_lesson5_g_2.jpg }}
  
-{{ http://tactical.nekromantix.com/images/wiki/​Brsseb/​Brsseb_lesson5_g_3.jpg }}+{{ https://pmc.editing.wiki/​images/​Brsseb/​Brsseb_lesson5_g_3.jpg }}
 //The final boat// //The final boat//
  
-Test the gun to make sure you have done it all right. You can dowload the final PBO [[http://​tactical.nekromantix.com/​ofp/​downloads/​Brsseb_lesson5_done.rar|here]].+Test the gun to make sure you have done it all right. You can dowload the final PBO Brsseb_lesson5_done.rar ​from below.
  
 And that concludes the lesson. Hope you have learned something. Got many requests on how to do a turret and I hope this helps. Remember that this turret setup can be used on many vehicles (choppers, fixed gun positions on land etc). And please make some boats. Ofp got lots of tanks, weapons, vehicles, but we need some more boats! ​ And that concludes the lesson. Hope you have learned something. Got many requests on how to do a turret and I hope this helps. Remember that this turret setup can be used on many vehicles (choppers, fixed gun positions on land etc). And please make some boats. Ofp got lots of tanks, weapons, vehicles, but we need some more boats! ​
  
 Cheers! Cheers!
 +
 +**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_lesson5.1209887567.txt.gz ยท Last modified: 2008-05-04 07:52 (external edit)