OFPEC Forum

Addons & Mods Depot => OFP - Addons & Mods General => Topic started by: Bluelikeu on 16 Dec 2004, 18:03:10

Title: Texturing problems
Post by: Bluelikeu on 16 Dec 2004, 18:03:10
ok, I've set-up oxygen and have a problem. I'vek placed textures on my object and can see the textures appear in the buldozer. When I compress my addon and load it up in the game, the textures don't appear, and all i see is this grey texture.

How am I supposed to get textures to work in the game?


Thanks,
Bluelikeu
Title: Re:Texturing problems
Post by: Planck on 16 Dec 2004, 21:16:57
If you are using your own textures they should have been in the same folder as your p3d model file.
The model should reference them from that location...e.g.:

mymodelfoldername\texturename.paa

When you PBO your model you just PBO the whole folder containing the model and textures.


If you are using original game textures however, make sure the path to the textures is referenced correctly.......e.g.:

data\texture1.paa
O\Hous\doorknob.pac


Hope it helps a bit.


Planck
Title: Re:Texturing problems
Post by: Lean Bear on 16 Dec 2004, 22:17:19

Planck's right. The folder name that your addon was in when you were editing it in O2 should be the same as the .pbo folder name.

To check everything is directed to the right folder, do the following:

1. Open O2 and load your addon.

2. Open the "texture library" (shortcut Ctrl - T) from the "Window" tab.

3. Click "Preview (textures)" - this step isn't really necessary.

4. Ctrl - left click on any of your textures to select all the faces which have that texture applied.

5. Then, on any view, press "E" to open the "Face Properties" tab. At the bottom-right hand corner you'll see a text box with a few icons to the right of that. In the box there should be the directory that the textures you are using are currently in.

6. Make sure it is the same as the name of your addon pbo name.

7. If not, then check it and change as necessary.
Title: Re:Texturing problems
Post by: Bluelikeu on 16 Dec 2004, 22:44:27
Thanks to both of you, you got the problem straightened out.

Thanks,
Bluelikeu