ofp:modeling:brsseb_lesson1
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
ofp:modeling:brsseb_lesson1 [2008/10/06 08:14] – fixed typos. 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... | ||
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 37: | Line 44: | ||
* 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 " | ||
Line 46: | Line 53: | ||
* Before we move it we should lock the Y-axis (to allow only movement up and down. Press Y once to do this. | * Before we move it we should lock the Y-axis (to allow only movement up and down. Press Y once to do this. | ||
- | {{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 doesn' | * 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 vertices in 3D view, try turning "Face Culling" | //Note: If you can`t see some of the vertices in 3D view, try turning "Face Culling" | ||
Line 62: | Line 69: | ||
* 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 double click the " | Now you will see that our crate is turned yellow. If you double click the " | ||
Line 77: | Line 84: | ||
* 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' | * 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' | ||
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
Now OFP know how to deal with collision detection. But it can`t be sure on how heavy the crate is. It it 1000kg or only 1/8 kg. And is the back part of the crate more heavier than the front? Now lets put some Mass to our crate: | Now OFP know how to deal with collision detection. But it can`t be sure on how heavy the crate is. It it 1000kg or only 1/8 kg. And is the back part of the crate more heavier than the front? Now lets put some Mass to our crate: | ||
Line 85: | Line 92: | ||
* 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 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's 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's not for this tutorial. | ||
Line 94: | Line 101: | ||
* Find the "Named Selections" | * Find the "Named Selections" | ||
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
Now each time you double click on the " | 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 don't 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't worry, in the next tutorial we will put some nice textures to it. | ||
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: | ||
Line 113: | Line 120: | ||
* 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: | ||
Line 139: | Line 146: | ||
* In the top view, 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 " | ||
Line 162: | Line 169: | ||
* 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) | ||
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!// | ||
Line 204: | Line 211: | ||
Now fire up Operation Flashpoint, start the editor and have a look at your new addon!! Try to run through it to check if the collision detection works. And if you get no error messages and the program doesn' | Now fire up Operation Flashpoint, start the editor and have a look at your new addon!! Try to run through it to check if the collision detection works. And if you get no error messages and the program doesn' | ||
- | {{ 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.1223280873.txt.gz · Last modified: 2008/10/06 08:14 (external edit)