ofp:modeling:brsseb_lesson6
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
ofp:modeling:brsseb_lesson6 [2008/05/04 07:54] – created brsseb_lesson6 initial page snakeman | ofp:modeling:brsseb_lesson6 [2024/07/31 15:49] (current) – links added. snakeman | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== OFP Brsseb 3D Modeling Tutorial ====== | ||
+ | |||
+ | [[https:// | ||
+ | |||
+ | **Operation Flashpoint (OFP)** aka ArmA: Cold War Assault (CWA) | ||
+ | |||
+ | |||
====== Lesson 6: Creating your first Airplane ====== | ====== Lesson 6: Creating your first Airplane ====== | ||
Line 9: | Line 16: | ||
* 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 | ||
- | There is already a good Airplane tutorial on the net ([[http:// | + | There is already a good Airplane tutorial on the net ([[http:// |
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 19: | Line 26: | ||
====== The tutorial model ====== | ====== The tutorial model ====== | ||
- | Ok, i know that if you have followed the other tutorials, you know that I dont make proper models for my tuts. I make them as simple as possible so that its easier to see i.e important vertex placements on my screenshots | + | Ok, i know that if you have followed the other tutorials, you know that I don' |
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
//The model we will we working with in this tutorial// | //The model we will we working with in this tutorial// | ||
- | 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_lesson6_start.rar |
As usual, extract the ZIP and put the folder you get in your bulldozer directory just as any other addon project. The folder is called " | As usual, extract the ZIP and put the folder you get in your bulldozer directory just as any other addon project. The folder is called " | ||
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
//Fire Geometry and Geometry LOD looks like this// | //Fire Geometry and Geometry LOD looks like this// | ||
Since we have learned many things by now, I have made the most obvious things on the model. Here Fire Geo and Geo are the same (just that Geo has wheight, of course). On a real project, Fire geometry would usually be mode detailed. | Since we have learned many things by now, I have made the most obvious things on the model. Here Fire Geo and Geo are the same (just that Geo has wheight, of course). On a real project, Fire geometry would usually be mode detailed. | ||
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
// | // | ||
The landContact LOD contains just 3 vertices, each repersenting the though point for the wheels. We will have to change this one later for the gear to work properly, though. | The landContact LOD contains just 3 vertices, each repersenting the though point for the wheels. We will have to change this one later for the gear to work properly, though. | ||
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
//Nothing new in memory LOD yet, just the basics of any vehicle// | //Nothing new in memory LOD yet, just the basics of any vehicle// | ||
- | And then the Memory LOD, containing things that you learned ages ago, right? Hope so. | + | And then the Memory LOD, containing things that you learned ages ago, right? Hope so. |
So, so lets not go into o2 just yet. I want to show you what we need to do. The easiest way to explain the work needed; I want to you to compile the firsplane now. Yes, test it ingame and see what we need to do! Start your PBO program, compile the firstplane folder and put the resulting pbo in your addons folder. Yes it will fly! (but dont use the firstperson view for the pilot/ | So, so lets not go into o2 just yet. I want to show you what we need to do. The easiest way to explain the work needed; I want to you to compile the firsplane now. Yes, test it ingame and see what we need to do! Start your PBO program, compile the firstplane folder and put the resulting pbo in your addons folder. Yes it will fly! (but dont use the firstperson view for the pilot/ | ||
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
- | //The plane it its current state. Not very plane-ish, am I right? Note that the landinggear dont retract, the rotors dont spin and there are no control surfaces (flaps, rudder, | + | //The plane it its current state. Not very plane-ish, am I right? Note that the landinggear dont retract, the rotors dont spin and there are no control surfaces (flaps, rudder, |
- | Ok, so not much to brag about is it? No working gear animation, the rotors | + | Ok, so not much to brag about is it? No working gear animation, the rotors |
Ready to fix the plane? Then start up o2 and bulldozer and move to the next step. | Ready to fix the plane? Then start up o2 and bulldozer and move to the next step. | ||
Line 56: | Line 63: | ||
====== Making the landing gear work ====== | ====== Making the landing gear work ====== | ||
- | Lets fix the landing gear first. If you tested the model ingame, you will notice that the Raise/Lower landing gear at the action menu works. Trying to land the plane without gear down, you will crash. So thats not the problem, | + | Lets fix the landing gear first. If you tested the model ingame, you will notice that the Raise/Lower landing gear at the action menu works. Trying to land the plane without gear down, you will crash. So that' |
- | How do we do that, you say? If you have followed my tuts you know it by now: we set up a bunch of wacky named (in czech) selections and let the ofp engine do the rest. We have a tricycle | + | How do we do that, you say? If you have followed my tuts you know it by now: we set up a bunch of wacky named (in czech) selections and let the ofp engine do the rest. We have a tricycle |
* Start o2 and head for the " | * Start o2 and head for the " | ||
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
* For the opposite gear, select it and name it "pravy kolo". | * For the opposite gear, select it and name it "pravy kolo". | ||
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
* Then select the front gear and name it " | * Then select the front gear and name it " | ||
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
- | Ok, now ofp know what the gears are and will use these selection when doing the rotiation. But we still have work to do, we need to define an axis for each wheel, so that ofp can rotate each wheel around. Lets go to memory lod for that: | + | Ok, now ofp know what the gears are and will use these selection when doing the rotation. But we still have work to do, we need to define an axis for each wheel, so that ofp can rotate each wheel around. Lets go to memory lod for that: |
- | * In memory lod, make an horizontal axis on top of the left landing gear. See picture. Name it "osa leveho kolo" (axis for the left wheel). You should already be confortable | + | * In memory lod, make an horizontal axis on top of the left landing gear. See picture. Name it "osa leveho kolo" (axis for the left wheel). You should already be comfortable |
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
* Make a similar axis for the right wheel. Name it "osa praveho kola". | * Make a similar axis for the right wheel. Name it "osa praveho kola". | ||
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
* For the front wheel, same thing. Name that axis "osa predniho kola" (seeing a pathern here?). | * For the front wheel, same thing. Name that axis "osa predniho kola" (seeing a pathern here?). | ||
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
Ok, so now OFP can do the gear animation with no problems. One thing remains though: | Ok, so now OFP can do the gear animation with no problems. One thing remains though: | ||
Line 90: | Line 97: | ||
* Go to Landcontact LOD and select the vertex beneath the nose gear. Name it " | * Go to Landcontact LOD and select the vertex beneath the nose gear. Name it " | ||
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
//This way the LandContact points follow the gear animation// | //This way the LandContact points follow the gear animation// | ||
- | Guess what, if you have checked that all selections are named right and you have followed this page to the point, the gear should work now. So compile and lets test the gear ingame. If some of the gears dont work, its probably because a bad named selection. Make sure you got no typos on the plane. And should some animation work the wrong way, try rotating the axis 180 degrees in Memory LOD. | + | Guess what, if you have checked that all selections are named right and you have followed this page to the point, the gear should work now. So compile and lets test the gear ingame. If some of the gears don' |
- | Note that we cant seem to control the dirrection | + | Note that we cant seem to control the direction |
ok, now lets see if we can do anything about the static rotors. Lets make them spin! | ok, now lets see if we can do anything about the static rotors. Lets make them spin! | ||
Line 101: | Line 108: | ||
====== Fixing the rotors ====== | ====== Fixing the rotors ====== | ||
- | Lets make the rotors turn. The LOD setup for that is similar to the one from lesson 4, where we made teh rotor blades spin. We need some selections in 0.00 lod and some axises in Memory lod. Note that we have two engines on this plane, so if you just have one engine, you just use the first set of selections. | + | Lets make the rotors turn. The LOD setup for that is similar to the one from lesson 4, where we made teh rotor blades spin. We need some selections in 0.00 lod and some axises in Memory lod. Note that we have two engines on this plane, so if you just have one engine, you just use the first set of selections. |
Note that both engines has a rotor structure and a face with a rotor blur on it. Lets begin. | Note that both engines has a rotor structure and a face with a rotor blur on it. Lets begin. | ||
Line 108: | Line 115: | ||
* Select (F2) the blurred face, the rotor (all 4 blades), the spinner and the axis structure on the left engine. Name them " | * Select (F2) the blurred face, the rotor (all 4 blades), the spinner and the axis structure on the left engine. Name them " | ||
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
* Then select only the left rotor blur plane and name it " | * Then select only the left rotor blur plane and name it " | ||
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
* Ok, now zoom in on the right engine. Do exactly the same thing as the two steps above, but this time with " | * Ok, now zoom in on the right engine. Do exactly the same thing as the two steps above, but this time with " | ||
* When you have all four selections, select both image planes for the engines. Name them " | * When you have all four selections, select both image planes for the engines. Name them " | ||
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
- | * Then select the 4 rotorblades | + | * Then select the 4 rotor blades |
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
- | Ok, done with the rotors in model lod. Lets head for Memory LOD and make the axises for the spinning rotors. | + | Ok, done with the rotors in model lod. Lets head for Memory LOD and make the axises for the spinning rotors. |
* Go to memory LOD and make two axises, one for each rotor (2 vertices each). They should be named "osa vrtule 0" (left) and "osa vrtule 1" (right). See the picture for proper placement. | * Go to memory LOD and make two axises, one for each rotor (2 vertices each). They should be named "osa vrtule 0" (left) and "osa vrtule 1" (right). See the picture for proper placement. | ||
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
- | And thats that. Compile and see how it looks ingame. Make sure you got all the selections correct or you might get some strange results. | + | And that' |
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
//Plane with working rotors. Nice!// | //Plane with working rotors. Nice!// | ||
- | If you only had like 1 rotor, you simply do the same setup without the one engine included, and that way you could also leave out the " | + | If you only had like 1 rotor, you simply do the same setup without the one engine included, and that way you could also leave out the " |
Now, how about fixing those control surfaces, eh? | Now, how about fixing those control surfaces, eh? | ||
Line 148: | Line 155: | ||
* Make a box-structure in the shape of the missing rudder. Then texture it with the " | * Make a box-structure in the shape of the missing rudder. Then texture it with the " | ||
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
Go to memory LOD and create an axis for the rudder. Name it "osa leve smerovky" | Go to memory LOD and create an axis for the rudder. Name it "osa leve smerovky" | ||
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
- | Now lets compile and see if it works. I assume you know how rudder should work (which way it turns when you turn the plane). If not, consult any flightsimulator | + | Now lets compile and see if it works. I assume you know how rudder should work (which way it turns when you turn the plane). If not, consult any flight simulator |
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
//How the rudder should work. If it is reversed, try swapping the two axis points// | //How the rudder should work. If it is reversed, try swapping the two axis points// | ||
- | The most common problem with plane surfaces is Typos, its so damn easy to make a mistake when typing the selection names (much due to the words left and right in czech ihas different forms; levy (left); leve, leva, and pravy; (right) prave, prava, etc. So make sure you get all of the selection names right! | + | The most common problem with plane surfaces is Typos, its so damn easy to make a mistake when typing the selection names (much due to the words left and right in Czech has different forms; levy (left); leve, leva, and pravy; (right) prave, prava, etc. So make sure you get all of the selection names right! |
====== The elevator surfaces ====== | ====== The elevator surfaces ====== | ||
- | Go to 0.00 lod and make the two missing elevator surfaces. (place a box-structure, | + | Go to 0.00 lod and make the two missing elevator surfaces. (place a box-structure, |
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
* Then head for memory LOD and make two axises for the surfaces. Name them "osa leve vejskovky" | * Then head for memory LOD and make two axises for the surfaces. Name them "osa leve vejskovky" | ||
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
- | Now compile and test it ingame. Remember to swap (switch places) on axis vertices if one of the elevators go the wrong way when testing. If you are unsure, compare to another plane or try thinking of what happens when a surface moves. | + | Now compile and test it ingame. Remember to swap (switch places) on axis vertices if one of the elevators go the wrong way when testing. If you are unsure, compare to another plane or try thinking of what happens when a surface moves. |
====== The ailerons ====== | ====== The ailerons ====== | ||
- | The next surfaces are the aliersons, they make the plane roll to the side. Also, in ofp, alierons | + | The next surfaces are the ailerons, they make the plane roll to the side. Also, in ofp, ailerons |
- | Go to 0.00 lod and make the alierons. But this time, make a total of 4 structures, not just one pair as before. Remember the airbrake | + | Go to 0.00 lod and make the ailerons. But this time, make a total of 4 structures, not just one pair as before. Remember the air brake on the A10? Of not, test it now and try to imagine how they did it. Basically, they have slitted |
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
- | //Here is a setup for airbrakes | + | //Here is a setup for air brakes |
So lets do this: | So lets do this: | ||
- | * Make one of the alieron | + | * Make one of the aileron |
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
* Then copy the structure and place the copy directly below the original one in side view. (Both of them selected on picture (and moved abit more down to fit the whole better) | * Then copy the structure and place the copy directly below the original one in side view. (Both of them selected on picture (and moved abit more down to fit the whole better) | ||
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
- | * Ok, now do the same thing for the other surface (just copy this one will do). | + | * Ok, now do the same thing for the other surface (just copy this one will do). |
- | Now you have two alierons, one right and one left both split on two halves. Now we must create proper selections for them. | + | Now you have two ailerons, one right and one left both split on two halves. Now we must create proper selections for them. |
- | * Select the left upper alieron | + | * Select the left upper aileron |
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
- | * Select the right upper alieron | + | * Select the right upper aileron |
- | * Ok, now go to Memory LOD and lets do the axises. Make one axisfor | + | * Ok, now go to Memory LOD and lets do the axises. Make one axis for each alerion (just two axises in total, you don' |
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
- | Phew, now that was a bit hard, now wasnt it? Test it and correct with axis swapping or typo hunt if you screwed up. Make sure you get it right: When a plane bank (roll) to the left, the one on your left goes up and the one on the right goes down (seen from the back). And vice versa. Also, test the airbrake | + | Phew, now that was a bit hard, now wasn' |
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
- | //Here showing how ailerons with airbrakes | + | //Here showing how ailerons with air brakes |
====== The flaps ====== | ====== The flaps ====== | ||
- | One surface type left: the flaps, used for either giving the plane extra lift at takeoffs of for reducing airspeed at landings. Dead easy for you to make now if you have made it so far. | + | One surface type left: the flaps, used for either giving the plane extra lift at takeoffs of for reducing airspeed at landings. Dead easy for you to make now if you have made it so far. |
* Make the flaps structures, one for each side. Make them black as usual. Name the left one "ls klapka" | * Make the flaps structures, one for each side. Make them black as usual. Name the left one "ls klapka" | ||
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
* Now make the two axis in Memory lod, one for each flap. Name the left one "osa ls klapky" | * Now make the two axis in Memory lod, one for each flap. Name the left one "osa ls klapky" | ||
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
- | Now test the flaps ingame. Operate them using the action menu and make sure they move the right way. if not, you know what to do dont you ;)? | + | Now test the flaps ingame. Operate them using the action menu and make sure they move the right way. if not, you know what to do don' |
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
//Flaps in the up and down positions// | //Flaps in the up and down positions// | ||
Line 231: | Line 238: | ||
====== Adding detail ====== | ====== Adding detail ====== | ||
- | We got a nice plane right now, but we can still add some minor details to spice ut up abit. So lets add some features: If you did lesson 5, the boat tutorial, you know that lights are easy to make. We just add some named vertrices | + | We got a nice plane right now, but we can still add some minor details to spice it up a bit. So lets add some features: If you did lesson 5, the boat tutorial, you know that lights are easy to make. We just add some named vertices |
* Open the firstplane.p3d again go to memory LOD. | * Open the firstplane.p3d again go to memory LOD. | ||
* and insert some vertices on the plane like on picture. Same setup as for the gunboat in [[lesson5|lesson 5]]. | * and insert some vertices on the plane like on picture. Same setup as for the gunboat in [[lesson5|lesson 5]]. | ||
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
- | * As for the gunboat, you can also control where the engine smoke is to come out from. Not very important, but nice gadget feature anyway. You place one vertex named "vyfuk start" (vyfuk is the smoke) and one named "vyfuk konec" | + | * As for the gunboat, you can also control where the engine smoke is to come out from. Not very important, but nice gadget feature anyway. You place one vertex named "vyfuk start" (vyfuk is the smoke) and one named "vyfuk konec" |
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
* Furthermore, | * Furthermore, | ||
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
- | * Would be nice to have some spotlights for night landing, right? Sure it would. We havent modelled | + | * Would be nice to have some spotlights for night landing, right? Sure it would. We haven' |
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
- | Ok, thats enough detail for now, isnt it? One last thing... | + | OK, that' |
====== The Configfile ====== | ====== The Configfile ====== | ||
- | As usual, I give a short overview of the configfile. Im not teaching C++, so dont ask me about what classes are or such questions. If you dont have a CLUE on what this config does, you need to hook up with someone who knows if you want your addon in the game. | + | As usual, I give a short overview of the configfile. Im not teaching C++, so don' |
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
//Part 1 of the configfile// | //Part 1 of the configfile// | ||
In the first part, we have the usual declarations, | In the first part, we have the usual declarations, | ||
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
//Part 2 of the configfile// | //Part 2 of the configfile// | ||
- | The last part is the interesting one. Here, teh usual stuff about any vehicles are defined. Many of the values in here should be familiar to you now (model, side, displayname). Note the value " | + | The last part is the interesting one. Here, the usual stuff about any vehicles are defined. Many of the values in here should be familiar to you now (model, side, displayname). Note the value " |
- | Ok, bored now? Me too, lets compile and get this thing over with! | + | OK, bored now? Me too, lets compile and get this thing over with! |
====== Finish line ====== | ====== Finish line ====== | ||
- | Ok lets get this over with quickly. The last thing to do is to make the "View Pilot" and "View Cargo" LODs, just like you did in lesson 4 and lesson 5. Easy, just rightclick | + | OK lets get this over with quickly. The last thing to do is to make the "View Pilot" and "View Cargo" LODs, just like you did in lesson 4 and lesson 5. Easy, just right click " |
- | {{http://tactical.nekromantix.com/images/wiki/ | + | {{https://pmc.editing.wiki/ |
//The plane ingame! Pretty nice, huh?// | //The plane ingame! Pretty nice, huh?// | ||
- | Get final PBO [[http:// | + | Get final PBO Brsseb_lesson6_end.rar |
- | So compile the plane for the last time, and check it out ingame. If all works as planned, feel proud. If not, try again, make yourself 200% sure that you dont have any typos or anything. If everything fails (or you spotted a bug in this tutorial, mail me at brsseb@hotmail.com). | + | So compile the plane for the last time, and check it out ingame. If all works as planned, feel proud. If not, try again, make yourself 200% sure that you don' |
- | Thankz | + | Thanks |
BRSSEB | BRSSEB | ||
+ | |||
+ | **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_lesson6.1209887674.txt.gz · Last modified: 2008/05/04 07:54 by snakeman