ofp:modeling:brsseb_lesson1
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
ofp:modeling:brsseb_lesson1 [2008/05/04 07:44] – created brsseb_lesson1 initial page snakeman | ofp:modeling:brsseb_lesson1 [2024/07/31 15:34] (current) – links added. snakeman | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== OFP Brsseb 3D Modeling Tutorial ====== | ||
+ | |||
+ | [[https:// | ||
+ | |||
+ | **Operation Flashpoint (OFP)** aka ArmA: Cold War Assault (CWA) | ||
+ | |||
+ | |||
====== Lesson 1: Creating your first addon ====== | ====== Lesson 1: Creating your first addon ====== | ||
Line 11: | Line 18: | ||
* OFP (of course), O2 with Viewer installed. | * OFP (of course), O2 with Viewer installed. | ||
* Basic understanding of the O2 interface. | * Basic understanding of the O2 interface. | ||
- | * Download Textures & Config File [[http:// | + | * Download Textures & Config File Brrseb_lesson1_start.rar |
* PBOTool by Ales Mlakar can be downloaded from Operation Flashpoint CZ. | * PBOTool by Ales Mlakar can be downloaded from Operation Flashpoint CZ. | ||
* TexView is a handy tool for viewing PAA and PAC texture files. Not needed to do the tutorial, but you are gonna need it sooner or later... | * TexView is a handy tool for viewing PAA and PAC texture files. Not needed to do the tutorial, but you are gonna need it sooner or later... | ||
- | The textures are all in *.pac format. *.pac & *.paa are the standards used by OFP. The images was originaly | + | The textures are all in *.pac format. *.pac & *.paa are the standards used by OFP. The images was originally |
* Now, go to your drive where bulldozer was installed & create a folder called " | * Now, go to your drive where bulldozer was installed & create a folder called " | ||
- | When you`re done with that, your`re ready to start modelling. | + | When you`re done with that, your`re ready to start modeling. |
====== Making the structure ====== | ====== Making the structure ====== | ||
Line 29: | Line 36: | ||
* Press F7 (or " | * Press F7 (or " | ||
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
* Set the Size X to 8, Size Y & Z to 4. Click OK. | * Set the Size X to 8, Size Y & Z to 4. Click OK. | ||
Line 35: | Line 42: | ||
Now you have the basic shape of the crate. But you'll notice that we see the //side// of the crate in the front view even though it would be more logic to have the //front or back// of the crate in front view (makes texturing more logic). So lets rotate the crate: | Now you have the basic shape of the crate. But you'll notice that we see the //side// of the crate in the front view even though it would be more logic to have the //front or back// of the crate in front view (makes texturing more logic). So lets rotate the crate: | ||
- | * Make sure it is selected (it should be if you just created the structure, if not press F4 and draw a box around the whole structure to select it (or press Ctrl+A). | + | * Make sure it is selected (it should be if you just created the structure, if not press F4 and draw a box around the whole structure to select it (or press CTRL-A). |
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
- | * Go to " | + | * Go to " |
- | Ok, now have a look at the 3D view. Look at the grid and you`ll notice that the crate`s center is at the Origo. Also that half of the crate is below the grid. This is bad, because on simple objects like this OFP uses the grid as the ground level. So unless we want the crate half-burried | + | Ok, now have a look at the 3D view. Look at the grid and you`ll notice that the crate`s center is at the Origo. Also that half of the crate is below the grid. This is bad, because on simple objects like this OFP uses the grid as the ground level. So unless we want the crate half-buried |
* Go to the front view again, make sure that the structure is selected and view window is active. | * Go to the front view again, make sure that the structure is selected and view window is active. | ||
- | * Before we move it we should lock the Y-axis (to allow only movenent | + | * Before we move it we should lock the Y-axis (to allow only movement |
- | {{http://tactical.nekromantix.com/images/wiki/ | + | {{https://pmc.editing.wiki/ |
- | * Now click and hold the right mouse button and drag the crate upwards. Release the mouse button when the crate bottom is at the dark red line (indicating the grid floor). It doesnt | + | * Now click and hold the right mouse button and drag the crate upwards. Release the mouse button when the crate bottom is at the dark red line (indicating the grid floor). It doesn' |
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
- | //Note: If you can`t see some of the vertrices | + | //Note: If you can`t see some of the vertices |
Now that wasnt so hard now was it? Well, the basic shape is done. In the next lessons we will talk about something called Geometry LOD (Level of detail). | Now that wasnt so hard now was it? Well, the basic shape is done. In the next lessons we will talk about something called Geometry LOD (Level of detail). | ||
Line 58: | Line 65: | ||
====== Geometry LOD ====== | ====== Geometry LOD ====== | ||
- | Understanding LOD (Level of Detail) is somewhat hard, so I wont go into detail about what they really are and descripe | + | Understanding LOD (Level of Detail) is somewhat hard, so I wont go into detail about what they really are and describe |
* First make sure that "View background LOD" and "View bgrnd LOD in 3d preview" | * First make sure that "View background LOD" and "View bgrnd LOD in 3d preview" | ||
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
* Find the "LOD window" | * Find the "LOD window" | ||
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
* With the new entry selected, right click again and select " | * With the new entry selected, right click again and select " | ||
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
- | Now you will see that our crate is turned yellow. If you doubleclick | + | Now you will see that our crate is turned yellow. If you double click the " |
* In the Front view, hit F7 to bring up the dialog again. But instead of 8,4 & 4 for the x,y & z size, make it 7.9, 3.9 & 3.9. | * In the Front view, hit F7 to bring up the dialog again. But instead of 8,4 & 4 for the x,y & z size, make it 7.9, 3.9 & 3.9. | ||
- | * Now follow the steps in the last tutorial where we rotated & moved the crate upwards. The new crate should fit just inside the old one. It is important that it doesn`t break through the original. | + | * Now follow the steps in the last tutorial where we rotated & moved the crate upwards. The new crate should fit just inside the old one. It is important that it doesn't break through the original. |
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
- | Now OFP know how to deal with collition | + | Now OFP know how to deal with collision |
- | * Find the Apply Mass dialog. If you dont see it, press Alt+M and it should show up beneath the view panels. | + | * Find the Apply Mass dialog. If you don' |
- | * Still in the Geometry LOD, press Select all (Ctrl+A) and the field for entering mass should become | + | * Still in the Geometry LOD, press Select all (CTRL-A) and the field for entering mass should become |
- | * Enter " | + | * Enter " |
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
- | As you probably have guessed, the grey boxes indicate how much weight the vertex has. Since the weight of the whole crate is ballanced, all boxes should be the same size. To apply weight to a single vertex, press F4 (vertex select mode), select a vertex and enter value. But thats not for this tutorial. | + | As you probably have guessed, the grey boxes indicate how much weight the vertex has. Since the weight of the whole crate is balanced, all boxes should be the same size. To apply weight to a single vertex, press F4 (vertex select mode), select a vertex and enter value. But that' |
- | We also have to //save a selection// for this LOD to work (I dont know why, but if we dont do this, the Geometry LOD will fail). Do this: | + | We also have to //save a selection// for this LOD to work (I don' |
- | * Press Ctrl+A to select the Geometry LOD structure. | + | * Press CTRL-A to select the Geometry LOD structure. |
* Find the "Named Selections" | * Find the "Named Selections" | ||
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
- | Now each time you doubleclick | + | Now each time you double click on the " |
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
- | Now the box is nearly finished. But if you have looked in the external viewer, the crate looks very UGLY. But dont worry, in the next tutorial we will put some nice textures to it. | + | Now the box is nearly finished. But if you have looked in the external viewer, the crate looks very UGLY. But don' |
====== Texturing ====== | ====== Texturing ====== | ||
Line 106: | Line 113: | ||
Now lets make our crate look nicer. In your crate-folder there are now two textures, red_side.pac & red_door.pac. Our goal is to apply red_door to the front and back, and red_side to all the other sides. | Now lets make our crate look nicer. In your crate-folder there are now two textures, red_side.pac & red_door.pac. Our goal is to apply red_door to the front and back, and red_side to all the other sides. | ||
- | {{http://tactical.nekromantix.com/images/wiki/ | + | {{https://pmc.editing.wiki/ |
We will work with one texture at the time. Lets start with the red_door texture: | We will work with one texture at the time. Lets start with the red_door texture: | ||
- | * Doubleclick | + | * Double click the " |
* In the Top view, drag a box around the bottom of the crate. The front face should now be selected. | * In the Top view, drag a box around the bottom of the crate. The front face should now be selected. | ||
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
- | * In the front view (NB: To make a view " | + | * In the front view (NB: To make a view " |
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
* Press the ' | * Press the ' | ||
* Now click the right mouse button and "Load texture" | * Now click the right mouse button and "Load texture" | ||
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
- | * Draw a box about the same size as the selected face. Zoom in (' | + | * Draw a box about the same size as the selected face. Zoom in (' |
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
* When you`re happy, press ' | * When you`re happy, press ' | ||
Line 132: | Line 139: | ||
If you have a look at the external viewer, the texture should now be in place. (If you messed it up you`ll have to try again) | If you have a look at the external viewer, the texture should now be in place. (If you messed it up you`ll have to try again) | ||
- | {{http://tactical.nekromantix.com/images/wiki/ | + | {{https://pmc.editing.wiki/ |
Now you must do the same thing to the back of the crate. The red_door texture is to be applied there too. Here is what to do: | Now you must do the same thing to the back of the crate. The red_door texture is to be applied there too. Here is what to do: | ||
- | * Make front view active and change this view to " | + | * Make front view active and change this view to " |
- | * In the topview, drag a box around the top of the crate. The back face should now be selected. | + | * In the top view, drag a box around the top of the crate. The back face should now be selected. |
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
* Follow the same step as above on how to apply the texture to this side. Check it out in the external viewer to make sure everything looks nice. | * Follow the same step as above on how to apply the texture to this side. Check it out in the external viewer to make sure everything looks nice. | ||
Line 145: | Line 152: | ||
Now if everything went OK, you now have the door-textures applied. Now for the remaining 4 sides; top, bottom, right and left. If you have completed the door-texture, | Now if everything went OK, you now have the door-textures applied. Now for the remaining 4 sides; top, bottom, right and left. If you have completed the door-texture, | ||
- | {{http://tactical.nekromantix.com/images/wiki/ | + | {{https://pmc.editing.wiki/ |
Eventually, the crate should look like this in the external viewer: | Eventually, the crate should look like this in the external viewer: | ||
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
One more thing. Sometimes you need to make sure O2 has got the right path to your textures. If they are wrong, your addon will be textureless in-game even though it looks nice in Bulldozer. Most ingame textures that OFP use are found in the data.pbo. But most unofficial addons have their own textures (like ours). So to make sure that your textures paths points to your addon folder (crate) and not somewhere else, do this: | One more thing. Sometimes you need to make sure O2 has got the right path to your textures. If they are wrong, your addon will be textureless in-game even though it looks nice in Bulldozer. Most ingame textures that OFP use are found in the data.pbo. But most unofficial addons have their own textures (like ours). So to make sure that your textures paths points to your addon folder (crate) and not somewhere else, do this: | ||
Line 155: | Line 162: | ||
* Find the Texture Library window (Alt+T if you cant find it). It should look like this right now. | * Find the Texture Library window (Alt+T if you cant find it). It should look like this right now. | ||
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
* If both textures read " | * If both textures read " | ||
- | * Doubleclick | + | * Double click your left mouse button while holding down CTRL on the first texture name. All faces using this texture will be selected. |
* Now make a view active (any view) by using Alt+Right mouse button. | * Now make a view active (any view) by using Alt+Right mouse button. | ||
* Press ' | * Press ' | ||
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
* If the bottom edit box read anything other than the path to your crate folder, change it (The picture below shows how it should be. Then hit OK) | * If the bottom edit box read anything other than the path to your crate folder, change it (The picture below shows how it should be. Then hit OK) | ||
* Rembember to do the same thing with the other texture as well if needed. | * Rembember to do the same thing with the other texture as well if needed. | ||
- | Done? Almost done now. Ok, lets move on... | + | Done? Almost done now. OK, lets move on... |
====== The Config File ====== | ====== The Config File ====== | ||
Line 173: | Line 180: | ||
Open your config-file (the one you downloaded together with the textures & that should now be in your crate-folder). It looks like this: | Open your config-file (the one you downloaded together with the textures & that should now be in your crate-folder). It looks like this: | ||
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
I am not going into detail about config-files. There are other tutorials out there that describes the different elements of a config file. If you happen to know a little Object Oriented Programming (like C++ or Java), you`ll notice that our Crate has been classified as an Static Building of some sort. But here are the most important stuff to us right now: | I am not going into detail about config-files. There are other tutorials out there that describes the different elements of a config file. If you happen to know a little Object Oriented Programming (like C++ or Java), you`ll notice that our Crate has been classified as an Static Building of some sort. But here are the most important stuff to us right now: | ||
- | * // | + | * // |
* // | * // | ||
Line 190: | Line 197: | ||
* Have a look at your crate-folder. It should contain crate.p3d, the two textures and your config file. | * Have a look at your crate-folder. It should contain crate.p3d, the two textures and your config file. | ||
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
* Now run the PBO Tool you downloaded at the beginning of the tutorial. | * Now run the PBO Tool you downloaded at the beginning of the tutorial. | ||
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
* Select " | * Select " | ||
- | {{http://tactical.nekromantix.com/images/wiki/ | + | {{https://pmc.editing.wiki/ |
//NOTE: For the PBO tool to save the file, you MUST enter the .pbo extension after your filename in the save dialog!// | //NOTE: For the PBO tool to save the file, you MUST enter the .pbo extension after your filename in the save dialog!// | ||
- | Now fire up Operation Flashpoint, start the editor and have a look at your new addon!! Try to run throught | + | Now fire up Operation Flashpoint, start the editor and have a look at your new addon!! Try to run through |
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
- | Download the completed version | + | Download the completed version |
+ | < | ||
+ | magnet:? | ||
+ | </ | ||
Any questions/ | Any questions/ | ||
Line 212: | Line 222: | ||
====== Notes ====== | ====== Notes ====== | ||
- | This tutorial was written by Brsseb in [[http:// | + | This tutorial was written by Brsseb in [[http:// |
ofp/modeling/brsseb_lesson1.1209887063.txt.gz · Last modified: 2008/05/04 07:44 (external edit)