ofp:modeling:brsseb_lesson5
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
ofp:modeling:brsseb_lesson5 [2008/05/04 07:52] – created brsseb_lesson5 initial page snakeman | ofp:modeling:brsseb_lesson5 [2024/07/31 15:47] (current) – links added. snakeman | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== OFP Brsseb 3D Modeling Tutorial ====== | ||
+ | |||
+ | [[https:// | ||
+ | |||
+ | **Operation Flashpoint (OFP)** aka ArmA: Cold War Assault (CWA) | ||
+ | |||
+ | |||
====== Lesson 5: Creating your first Gunboat ====== | ====== Lesson 5: Creating your first Gunboat ====== | ||
Line 5: | Line 12: | ||
Preparing for the lesson | Preparing for the lesson | ||
- | Ok, the lessons is back and now its time to build a boat. Since boats are very easy to do (if you have done a car, you will notice boats are much less work), so for this lesson to contain anything usefull, I have decided to build a gunturret on the boat. Such gun setup is quite useful and is used on all addons that have some sort of fixed machinegun (helicopter gunships, fixed gun positions, etc). Here is what you need: | + | Ok, the lessons is back and now its time to build a boat. Since boats are very easy to do (if you have done a car, you will notice boats are much less work), so for this lesson to contain anything usefull, I have decided to build a gunturret on the boat. Such gun setup is quite useful and is used on all addons that have some sort of fixed machinegun (helicopter gunships, fixed gun positions, etc). Here is what you need: |
* OFP (daahhh), O2 and Bulldozer | * OFP (daahhh), O2 and Bulldozer | ||
Line 14: | Line 21: | ||
* PBOTool and TexView or similar program | * PBOTool and TexView or similar program | ||
- | As always, I have supplied a standard 3d model fo you to download and use. If you have made your own boat model and want it into ofp, then use that one when following the tutorial. But in all screenshots and explanations I assume you are using my demo model. | + | As always, I have supplied a standard 3d model fo you to download and use. If you have made your own boat model and want it into ofp, then use that one when following the tutorial. But in all screenshots and explanations I assume you are using my demo model. |
Ok, lets move to next page and have a look at the tutorial model...(drumroll...) | Ok, lets move to next page and have a look at the tutorial model...(drumroll...) | ||
Line 22: | Line 29: | ||
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/ | + | {{ https://pmc.editing.wiki/ |
//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:// | + | First thing you must do is download the model.You can get the ZIP Brsseb_lesson5_start.rar |
Put the " | Put the " | ||
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
//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/ | + | {{ https://pmc.editing.wiki/ |
// | // | ||
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/ | + | {{ https://pmc.editing.wiki/ |
//Memory LOD content// | //Memory LOD content// | ||
- | Nothing revolutionary in Memory LOD either right now. Just the basic " | + | Nothing revolutionary in Memory LOD either right now. Just the basic " |
So, lets get started, shall we? Move on! | So, lets get started, shall we? Move on! | ||
Line 48: | Line 55: | ||
====== The Gun LOD setup - " | ====== The Gun LOD setup - " | ||
- | Lets do the hardest part first and get it over with: making the gun work properly. We need to some work in " | + | Lets do the hardest part first and get it over with: making the gun work properly. We need to some work in " |
- | Go to " | + | Go to " |
* 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/ | + | {{ https://pmc.editing.wiki/ |
* Press F2, and select all of the structures like in picture. make sure to select this right. Name this selection " | * Press F2, and select all of the structures like in picture. make sure to select this right. Name this selection " | ||
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
* Next, for the left and right moving part, select these structures and name them " | * Next, for the left and right moving part, select these structures and name them " | ||
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
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 75: | ||
* Select the muzzleflash structure (both vertical and horizontal plane and the front flash). Name this selection " | * Select the muzzleflash structure (both vertical and horizontal plane and the front flash). Name this selection " | ||
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
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 74: | Line 81: | ||
====== The Gun LOD setup - Memory LOD ====== | ====== The Gun LOD setup - Memory LOD ====== | ||
- | Go to memory LOD and zoom in on the gun like before. If you have done lesson 3, you will already be familiar with this but there are some more selection names to learn. We must define the bullet path, define what is the up and down movement axis, and what is the left and right axis. | + | Go to memory LOD and zoom in on the gun like before. If you have done lesson 3, you will already be familiar with this but there are some more selection names to learn. We must define the bullet path, define what is the up and down movement axis, and what is the left and right axis. |
* 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/ | + | {{ https://pmc.editing.wiki/ |
* Using the picture below, place a single vertex and name it " | * Using the picture below, place a single vertex and name it " | ||
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
* 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/ | + | {{ https://pmc.editing.wiki/ |
* 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/ | + | {{ https://pmc.editing.wiki/ |
* 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/ | + | {{ https://pmc.editing.wiki/ |
* 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/ | + | {{ https://pmc.editing.wiki/ |
* Now for some reselecting. Select both usti/konec hlavne, both nabojnice-vertices, | * Now for some reselecting. Select both usti/konec hlavne, both nabojnice-vertices, | ||
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
* Now, select the same again, but this time also take the two "osa hlavne" | * Now, select the same again, but this time also take the two "osa hlavne" | ||
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
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 112: | Line 119: | ||
====== Adding details to ship ====== | ====== Adding details to ship ====== | ||
- | There are some small things left to do before we can say to have a nice little boat in our hands. Lets add some lights and other detail to make it look better: | + | There are some small things left to do before we can say to have a nice little boat in our hands. Lets add some lights and other detail to make it look better: |
* 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 (" | * 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 (" | ||
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
* 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/ | + | {{ https://pmc.editing.wiki/ |
* 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/ | + | {{ https://pmc.editing.wiki/ |
* 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/ | + | {{ https://pmc.editing.wiki/ |
* Ofp engine also needs to know which structure to spin around the axis, so go to " | * Ofp engine also needs to know which structure to spin around the axis, so go to " | ||
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
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..? | 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..? | ||
Line 138: | Line 145: | ||
====== 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?" | + | 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?" |
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/ | + | {{ https://pmc.editing.wiki/ |
//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 " | 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 " | ||
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
//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/ | + | {{ https://pmc.editing.wiki/ |
//Part 3 of the config// | //Part 3 of the config// | ||
- | Here is basically two things, one clas called TransportWeapons that contains all the weapons onboard the ship. This feature is v1.75+ only, and it enables the vehicle to start with weapons inside just like an ammo crate. The weapons and ammo onboard are defined in this class. | + | Here is basically two things, one clas called TransportWeapons that contains all the weapons onboard the ship. This feature is v1.75+ only, and it enables the vehicle to start with weapons inside just like an ammo crate. The weapons and ammo onboard are defined in this class. |
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/ | + | {{ https://pmc.editing.wiki/ |
//Part 4 of the config// | //Part 4 of the config// | ||
- | Then the rest of the file. The 3 topmost attributes are boring, so we will consentrate on the TurretBase class. Basically it holds the settings for the turret. Here the selections are defined (osa hlavne, etc), the sound it makes when moving, and most important the values for min/ | + | Then the rest of the file. The 3 topmost attributes are boring, so we will consentrate on the TurretBase class. Basically it holds the settings for the turret. Here the selections are defined (osa hlavne, etc), the sound it makes when moving, and most important the values for min/ |
- | Same for the horizontal movement, it has -135 degrees from the left to +135 degrees on the right. So 135 in each direction and a total movement range of 270 degrees (3/4 of a full circle). Not hard if you didnt sleep in the math classes at school ;). | + | Same for the horizontal movement, it has -135 degrees from the left to +135 degrees on the right. So 135 in each direction and a total movement range of 270 degrees (3/4 of a full circle). Not hard if you didnt sleep in the math classes at school ;). |
And thats the config, not that hard to understand now was it? Hope not. Well, lets do some final preperations and test the ship ingame! | And thats the config, not that hard to understand now was it? Hope not. Well, lets do some final preperations and test the ship ingame! | ||
Line 172: | Line 179: | ||
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 " | 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 " | ||
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
//Make sure you have the 3 View lods in order. Just copy " | //Make sure you have the 3 View lods in order. Just copy " | ||
Then its compiletime! So open Pbotool and compress the gunboat folder, putting the " | Then its compiletime! So open Pbotool and compress the gunboat folder, putting the " | ||
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
//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:// | + | Test the gun to make sure you have done it all right. You can dowload the final PBO Brsseb_lesson5_done.rar |
- | 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/ | ||
+ | < | ||
+ | magnet:? | ||
+ | </ | ||
+ | |||
====== Notes ====== | ====== Notes ====== | ||
- | This tutorial was written by Brsseb in [[http:// | + | This tutorial was written by Brsseb in [[http:// |
ofp/modeling/brsseb_lesson5.1209887567.txt.gz · Last modified: 2008/05/04 07:52 (external edit)