ofp:modeling:brsseb_lesson2
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
ofp:modeling:brsseb_lesson2 [2008/10/06 07:53] – fixed typos. snakeman | ofp:modeling:brsseb_lesson2 [2024/07/31 15:36] (current) – links added. snakeman | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== OFP Brsseb 3D Modeling Tutorial ====== | ||
+ | |||
+ | [[https:// | ||
+ | |||
+ | **Operation Flashpoint (OFP)** aka ArmA: Cold War Assault (CWA) | ||
+ | |||
+ | |||
====== Lesson 2: Creating your first car ====== | ====== Lesson 2: Creating your first car ====== | ||
Line 5: | Line 12: | ||
====== Preparing for the lesson ====== | ====== Preparing for the lesson ====== | ||
- | So you`re ready to begin your second lesson, huh? Well, if you ever wanted to know how to make a car in OFP you`re in the right place. This lesson will teach you the basic on how to set up a car in OFP. It wont teach you how to model one (3d modeling lessons can be found all over net), but a step-by-step guide on how to get a car model in the game. | + | So you`re ready to begin your second lesson, huh? Well, if you ever wanted to know how to make a car in OFP you`re in the right place. This lesson will teach you the basic on how to set up a car in OFP. It wont teach you how to model one (3d modeling lessons can be found all over net), but a step-by-step guide on how to get a car model in the game. |
- | If you haven' | + | If you haven' |
But to make up for my lack of modeling skills, I`ll make sure that we get to test our model in OFP very early on! I have read many different tutorials for different stuff and many of them are very long and it takes ages before you get some results. No such things here. Here we get to make some small adjustments, | But to make up for my lack of modeling skills, I`ll make sure that we get to test our model in OFP very early on! I have read many different tutorials for different stuff and many of them are very long and it takes ages before you get some results. No such things here. Here we get to make some small adjustments, | ||
Line 24: | Line 31: | ||
Lets have a look at the model that I will be using during this tutorial. Its ugly as hell but its all you need to get a good understanding on how to get a car model into OFP. Well, here it is: | Lets have a look at the model that I will be using during this tutorial. Its ugly as hell but its all you need to get a good understanding on how to get a car model into OFP. Well, here it is: | ||
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
//Simple car model with textures.// | //Simple car model with textures.// | ||
So, you can either make your own model and use that for this tutorial or you can just download the one I made and start using that one. Download mine and this lesson will take a shorter time. If you make your own model sometime and are unsure on how to get in ingame, just run trough it again with your new model. But for starters, download my model. | So, you can either make your own model and use that for this tutorial or you can just download the one I made and start using that one. Download mine and this lesson will take a shorter time. If you make your own model sometime and are unsure on how to get in ingame, just run trough it again with your new model. But for starters, download my model. | ||
- | * Download car model with textures and configfile | + | * Download car model with textures and configfile Brsseb_lesson2_start.rar |
* Put the firstcar folder in the same place you installed Bulldozer | * Put the firstcar folder in the same place you installed Bulldozer | ||
When you have done that, open the p3d-model and have a look at how the model is put together. Its simple stuff. Just some resized box- and cylinder-structures with textures on them. Currently there are only two LODs there, " | When you have done that, open the p3d-model and have a look at how the model is put together. Its simple stuff. Just some resized box- and cylinder-structures with textures on them. Currently there are only two LODs there, " | ||
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
//Geometry LOD structures// | //Geometry LOD structures// | ||
Line 53: | Line 60: | ||
Now you might wonder how our model suddenly became a real functional OFP car just like that. And if you look closer on the model you`ll see that its not that much separating your car model from that silly crate-model we made in tutorial 1. So how did this happen? The answer lies in the config-file: | Now you might wonder how our model suddenly became a real functional OFP car just like that. And if you look closer on the model you`ll see that its not that much separating your car model from that silly crate-model we made in tutorial 1. So how did this happen? The answer lies in the config-file: | ||
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
//The important part of the config-file, | //The important part of the config-file, | ||
Line 59: | Line 66: | ||
* //Side//: The " | * //Side//: The " | ||
- | * // | + | * // |
* // | * // | ||
* //model//: Explained in lesson 1. The path for the p3d file. | * //model//: Explained in lesson 1. The path for the p3d file. | ||
- | * // | + | * // |
* // | * // | ||
Line 82: | Line 89: | ||
* With that selected, make a new save selection (in the "Named selection window" | * With that selected, make a new save selection (in the "Named selection window" | ||
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
Its the same way for all the wheels, just with different names for each wheel. Select a wheel, define a selection with the right name. Simple. Here is the final pic with names for all the wheels: | Its the same way for all the wheels, just with different names for each wheel. Select a wheel, define a selection with the right name. Simple. Here is the final pic with names for all the wheels: | ||
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
* Pravy predni = right front | * Pravy predni = right front | ||
Line 105: | Line 112: | ||
* Then hit " | * Then hit " | ||
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
* Now go to front view, lock the x-axis (hit " | * Now go to front view, lock the x-axis (hit " | ||
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
Now you know how to do that. You must place one vertex under each wheel, so use the info above on how to do place the last 3 vertices. It should look like this afterward: | Now you know how to do that. You must place one vertex under each wheel, so use the info above on how to do place the last 3 vertices. It should look like this afterward: | ||
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
Now we have to do the same thing as the last page, select one at the time and define a selection for it. Select the front right vertex, make a new selection and call it the right name, etc. Here is the selection names: | Now we have to do the same thing as the last page, select one at the time and define a selection for it. Select the front right vertex, make a new selection and call it the right name, etc. Here is the selection names: | ||
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
* pravy predni tlumic = right front damper | * pravy predni tlumic = right front damper | ||
Line 135: | Line 142: | ||
* In left view zoom in to the front wheel pair, place cursor right beneath wheel and press " | * In left view zoom in to the front wheel pair, place cursor right beneath wheel and press " | ||
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
* Go to front view, lock x axis and move the vertex to the //inner edge of left front wheel//. | * Go to front view, lock x axis and move the vertex to the //inner edge of left front wheel//. | ||
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
* Now hold down shift, and drag the vertex to the //outer wheel edge// and a copy should appear there. See pic | * Now hold down shift, and drag the vertex to the //outer wheel edge// and a copy should appear there. See pic | ||
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
Now a same pair of vertices should be placed under the last 3 wheels. Do this now. Then select each vertex (one by one, not pairs!) and make a save selection for each of them. See picture for all the selection names. | Now a same pair of vertices should be placed under the last 3 wheels. Do this now. Then select each vertex (one by one, not pairs!) and make a save selection for each of them. See picture for all the selection names. | ||
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
* stopa PLP: Front Left Right marker | * stopa PLP: Front Left Right marker | ||
Line 167: | Line 174: | ||
* With it selected, create a new selection and name it " | * With it selected, create a new selection and name it " | ||
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
But that aint enough to make it work properly. It needs an axis to spin around. And we need 2 vertices to do that: | But that aint enough to make it work properly. It needs an axis to spin around. And we need 2 vertices to do that: | ||
Line 173: | Line 180: | ||
* In left view, move cursor and create two vertices like this: | * In left view, move cursor and create two vertices like this: | ||
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
//Both selected to show the better in pic. Green lines added to indicate axis.// | //Both selected to show the better in pic. Green lines added to indicate axis.// | ||
- | * Select the left-most vertex, create new selection and call it " | + | * Select the left-most vertex, create new selection and call it " |
* Select the other one, create new selection and name it " | * Select the other one, create new selection and name it " | ||
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
- | OK, if you compile and test now, the steering wheel should work fine. One thing though, note that we used a structure with a texture on it as the steering wheel. Usually people use a texture with a transparent background color. That way you can have more realistic steering wheels. But that's a bit harder to do and not for this tutorial. We keep it simple, don't we? | + | OK, if you compile and test now, the steering wheel should work fine. One thing though, note that we used a structure with a texture on it as the steering wheel. Usually people use a texture with a transparent background color. That way you can have more realistic steering wheels. But that's a bit harder to do and not for this tutorial. We keep it simple, don't we? |
OK, next! | OK, next! | ||
Line 187: | Line 194: | ||
====== Making the driver show up! ====== | ====== Making the driver show up! ====== | ||
- | Even when there is someone in the car, no model of the driver sitting in the seat is shown. We will fix this now. | + | Even when there is someone in the car, no model of the driver sitting in the seat is shown. We will fix this now. |
But we need to have a serious chat first, and its about proxys. A proxy is a "model in the model" | But we need to have a serious chat first, and its about proxys. A proxy is a "model in the model" | ||
- | * First: Inside the ZIP you downloaded in the beginning is a JeePDriver.p3d model from the OFP demo of a man driving. Find it and put the p3d model in the data3d-folder in bulldozer. | + | * First: Inside the ZIP you downloaded in the beginning is a JeePDriver.p3d model from the OFP demo of a man driving. Find it and put the p3d model in the data3d-folder in bulldozer. |
- | * Start o2 and bulldozer, open your firscar model and make sure you are in the " | + | * Start o2 and bulldozer, open your firscar model and make sure you are in the " |
* On the menu, find Create-> | * On the menu, find Create-> | ||
* In the dialog, just write " | * In the dialog, just write " | ||
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
A triangle made of 3 vertices should show up. This is the driver model proxy in o2. | A triangle made of 3 vertices should show up. This is the driver model proxy in o2. | ||
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
- | But if you have a look at Bulldozer, the full driver model will be shown. The driver model wont be added to your car-model or the final PBO, its just there for reference. Ingame, OFP will find the driver model in its own data3d folder. But this will help your in placing your driver correctly. And no, the proxy model doesn' | + | But if you have a look at Bulldozer, the full driver model will be shown. The driver model wont be added to your car-model or the final PBO, its just there for reference. Ingame, OFP will find the driver model in its own data3d folder. But this will help your in placing your driver correctly. And no, the proxy model doesn' |
Select the driver proxy (triangle) using F2. We need to rotate and move it to make the driver sit in the seat. You should be able to do this by your self, rotating and moving was learned in lesson 1. When you have the driver roughly in the seat, use o2 to make small adjustments to the proxy position and use bulldozer to see how it looks. (You might have to tilt it a little to get more room for his feet!) Try to make the model sit nicely in the seat, like this: | Select the driver proxy (triangle) using F2. We need to rotate and move it to make the driver sit in the seat. You should be able to do this by your self, rotating and moving was learned in lesson 1. When you have the driver roughly in the seat, use o2 to make small adjustments to the proxy position and use bulldozer to see how it looks. (You might have to tilt it a little to get more room for his feet!) Try to make the model sit nicely in the seat, like this: | ||
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
// | // | ||
Line 216: | Line 223: | ||
* Start o2 and head for the " | * Start o2 and head for the " | ||
- | * Go to front view and using F2 select mode, select the seat structure. | + | * Go to front view and using F2 select mode, select the seat structure. |
* Use the scale-function on the menu, Points-> | * Use the scale-function on the menu, Points-> | ||
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
* Now select the steering and the driver proxy (triangle). Make sure to select the wheel, the pole, the driverproxy and the two points indicating the steeringwheel axis | * Now select the steering and the driver proxy (triangle). Make sure to select the wheel, the pole, the driverproxy and the two points indicating the steeringwheel axis | ||
* Using front view and with locked x-asix, move everything to the right (or left, if your british of something :) ) | * Using front view and with locked x-asix, move everything to the right (or left, if your british of something :) ) | ||
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
//It should look like this in Bulldozer.// | //It should look like this in Bulldozer.// | ||
- | Now we need a proxy model of the passenger. And there happens to be another p3d model of a passenger called JeepCoDriver.p3d inside that ZIP your got from the start of the tutorial. Find it and put it in the same folder as the last one (Data3d in Bulldozer). | + | Now we need a proxy model of the passenger. And there happens to be another p3d model of a passenger called JeepCoDriver.p3d inside that ZIP your got from the start of the tutorial. Find it and put it in the same folder as the last one (Data3d in Bulldozer). |
Now we do the same thing as for the driver proxy and your should be able to do that easy if you understood the last page. Remember to write " | Now we do the same thing as for the driver proxy and your should be able to do that easy if you understood the last page. Remember to write " | ||
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
When your`re happy, WAIT, don't compile yet! No no! There is something we must do first: | When your`re happy, WAIT, don't compile yet! No no! There is something we must do first: | ||
Line 239: | Line 246: | ||
* Do the same on the other side of the car. You should now have 2 vertices on each side of the car at ground level like this: | * Do the same on the other side of the car. You should now have 2 vertices on each side of the car at ground level like this: | ||
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
//Both vertices selected to help seeing them// | //Both vertices selected to help seeing them// | ||
Line 245: | Line 252: | ||
* And of course we must name each one with a saved selection like before. Call the one on the driver side "pos driver" | * And of course we must name each one with a saved selection like before. Call the one on the driver side "pos driver" | ||
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
So, test time yet? Nope, but we`re almost there. We must do some changes to the configfile to allow our car to carry passengers. | So, test time yet? Nope, but we`re almost there. We must do some changes to the configfile to allow our car to carry passengers. | ||
Line 252: | Line 259: | ||
* Find the " | * Find the " | ||
- | Compile the thing, check that getting in/out works for both driver and passenger etc. NOTE: If the get in/out doenst work properly, try moving the "pos driver" | + | Compile the thing, check that getting in/out works for both driver and passenger etc. NOTE: If the get in/out doenst work properly, try moving the "pos driver" |
Nice, huh? Next one, then. | Nice, huh? Next one, then. | ||
Line 258: | Line 265: | ||
====== Mission Complete, Soldier! ====== | ====== Mission Complete, Soldier! ====== | ||
- | Congratulations, | + | Congratulations, |
- | Some may be disappointed now, saying like "it that it"?, and experts just stopping by crying out "Where is the stuff about Fire Geometry or Hitpoints" | + | Some may be disappointed now, saying like "it that it"?, and experts just stopping by crying out "Where is the stuff about Fire Geometry or Hitpoints" |
- | There are many things yet to discover, like how to make glass for windows, proper hitpoints and fire gemoetry LOD, working instrument panels, front and brakelights, | + | There are many things yet to discover, like how to make glass for windows, proper hitpoints and fire gemoetry LOD, working instrument panels, front and brakelights, |
+ | < | ||
+ | magnet:? | ||
+ | </ | ||
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
// | // | ||
- | Now just knock yourself out with your first car addon for OFP. Have some fun with it, drive it to it breaks down (head for the configfile and change the top speed to 600 or so, THAT is fun!). | + | Now just knock yourself out with your first car addon for OFP. Have some fun with it, drive it to it breaks down (head for the configfile and change the top speed to 600 or so, THAT is fun!). |
Thankz for following this tutorial. As always I'm happy for all the feedback I can get at brsseb@hotmail.com (I'm on MSN almost everyday). Cheerz! | Thankz for following this tutorial. As always I'm happy for all the feedback I can get at brsseb@hotmail.com (I'm on MSN almost everyday). Cheerz! | ||
Line 273: | Line 283: | ||
====== Notes ====== | ====== Notes ====== | ||
- | This tutorial was written by Brsseb in [[http:// | + | This tutorial was written by Brsseb in [[http:// |
ofp/modeling/brsseb_lesson2.1223279638.txt.gz · Last modified: 2008/10/06 07:53 by snakeman