Jump to content
Sign in to follow this  
RoF

Help with retexturing object for terrain builder

Recommended Posts

I'm trying to learn how re texture an object, so it can be used in Terrain Builder. I can't seem to find any guides on how to do it, as Terrain Builder needs a p3d file and most of the guides just show you how to re texture using configs. I managed to get the item in game but it only shows the texture at close range, once you zoom out it switches back to the original texture.

This is what I've done to get to this point, bear in mind I have no idea how to use object builder and just kinda worked it out from random posts and peoples files lol

1, downloaded the arma 2 models from https://community.bistudio.com/wiki/Arma_2_Sample_Models

2. made a folder in p:\ drive "rof/rof_retexture" (P:\ is all set up fine as been working on a terrain for a couple of months)

 

3. copied phone_box_south.p3d from downloaded arma models to work folder "rof/rof_retexture". Renamed phone_box_south.p3d to british_phone_box.p3d (so it will import into TB)

 

4. I think this may be the bit that's going wrong. Opened british_phone_box.p3d in object builder and selected all, then pressed E. And changed all texture paths to rof\rof_retexture\data\british_phone_box_co.tga (NOTE: all the texture paths pointed at the same texture, so I just changed them all to mine). I didn't change the material paths. I then saved it

 

5. Made a config.cpp in "/rof_retexture" (think this is right I just changed one I found on google)

#define _ARMA_


class CfgPatches
{
	class rof
	{
		units[] = {"BTPhoneBox"};
		weapons[] = {};
		requiredVersion = 0.1;
		requiredAddons[] = {"castructures"};
	};
};
class CfgVehicleClasses
{
	class rof
	{
		displayName = "rof_retexture";
	};
};
class CfgVehicles
{
	class HouseBase;
	class House: HouseBase
	{
		class DestructionEffects;
	};
	class BTPhoneBox: House
	{
		vehicleClass = "rof";
		textSingular = "50";
		displayName = "BT_Phone_Box";
		scope = 2;
		model = "rof\rof_retexture\british_phone_box.p3d";
		armor = 100000;
		destrType = "DestructBuilding";
		mapsize = 1;
	};
};

6. Packed it all up with pboProject, no errors

7. This is it in game (sorry for crappy texture it was just a test, shocked I got that far tbh!), left side is it working fine, but once you zoom out abit it switches back to the original one.

http://i.imgur.com/fZRmxtf.jpg

 

Anyone know what I'm doing wrong or what step I'm missing out?

Share this post


Link to post
Share on other sites

Worked it out! :lol:

 

For anyone looking via google etc. You have to click each lod up the top right of screen, then select all (ctrl+a) then press "E" and change all them textures as well to yours. Otherwise it will switch back to the old one at a distance

Share this post


Link to post
Share on other sites

You could also use the 'Mass Texture Renaming Tool' within Object Builder to change all the texture paths simultaneously (handy if you have a lot of LODs and CBA to manually switch them all - also handy if you need to quickly change folder structure)

  • Like 2

Share this post


Link to post
Share on other sites

You could also use the 'Mass Texture Renaming Tool' within Object Builder to change all the texture paths simultaneously (handy if you have a lot of LODs and CBA to manually switch them all - also handy if you need to quickly change folder structure)

 

I didn't even see that lol. That looks easier than ctrl+A then E every time. Thx for the tip

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×