Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Product Chat / [LOCKED] how do you texture a model with more than 1 texture

Author
Message
james hawn
18
Years of Service
User Offline
Joined: 18th Jun 2006
Location:
Posted: 21st Jul 2006 09:32
i can get models i make in my game but they have more than 1 texture and i can put all on the model just one so what do i do.
Mr Love
19
Years of Service
User Offline
Joined: 9th Jun 2005
Playing: MAFIA 2
Posted: 21st Jul 2006 12:10
You just have to write it down into the fpe file first. Like this:

textured = box_2.tga
texture2 = box_2.tga
texture3 = box_2.tga

And so on.......


I want to see a FPSC Professional! And lets make it REALLY expensive this time......
james hawn
18
Years of Service
User Offline
Joined: 18th Jun 2006
Location:
Posted: 21st Jul 2006 13:12
that did not work so can you tell me what to do????????
Mr Love
19
Years of Service
User Offline
Joined: 9th Jun 2005
Playing: MAFIA 2
Posted: 21st Jul 2006 13:24
Well, You cant use the same name ofcourse as I did in the example... Every TGA file needs its own name. You can also try to remove the "d" in textured...

Now it shourld work!


I want to see a FPSC Professional! And lets make it REALLY expensive this time......
Reality Forgotten
FPSC Reloaded TGC Backer
19
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Wichita Falls TX
Posted: 21st Jul 2006 14:10
Mr. Love I think you should really stop trying to help people. Adding a texture line in the .fpe does not work. If you want to add a model that is multitextured simple leave the texturing information blank. This will cause the engine to revert back to the directx file for the texturing information. all of the UVcords are in the directx file for each texture. Next place the image in the editor and then build the game. make sure you swap your texture files to the built game folder.

RF

Candle_
19
Years of Service
User Offline
Joined: 29th May 2006
Location: kindergarten
Posted: 21st Jul 2006 18:08
That won't work as the x file does not go to the game folder just the dbo file.

james hawn
18
Years of Service
User Offline
Joined: 18th Jun 2006
Location:
Posted: 21st Jul 2006 18:21
that does not work ony the dbo file goes to my games folder and not the .x
Reality Forgotten
FPSC Reloaded TGC Backer
19
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Wichita Falls TX
Posted: 21st Jul 2006 19:09 Edited at: 21st Jul 2006 19:17
Yes, but the .bin file is created from the .x file. when you add the model to you level you need to set the (isimmobile) to "yes" and you need to set the model as dynamic not static. and it will work. I have done this about a billion times and have written tutorials on this subject and I have an email from Lee confirming that the entity must be placed as Dynamic. That is just how the engine works. If you would like to see a copy of the email I will provide it if I still have it.


RF

Candle_
19
Years of Service
User Offline
Joined: 29th May 2006
Location: kindergarten
Posted: 21st Jul 2006 19:16
First you say
Quote: "and you need to set the model as dynamic not static. "

Then you say
Quote: "I have an email from Lee confirming that the entity must be placed as static."

What one is it?

Reality Forgotten
FPSC Reloaded TGC Backer
19
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Wichita Falls TX
Posted: 21st Jul 2006 19:18
Quote: "Then you say
Quote: "I have an email from Lee confirming that the entity must be placed as static."
What one is it?"


I was typing faster than my brain was thinking. You have to set them as Dynamic. just try it. it will work. remember that you will have to move all texture file over to your built game folder as I previously stated.

RF

Candle_
19
Years of Service
User Offline
Joined: 29th May 2006
Location: kindergarten
Posted: 21st Jul 2006 19:28
What folder in the game folder do you move them to?

Stamina
19
Years of Service
User Offline
Joined: 30th May 2006
Location:
Posted: 21st Jul 2006 19:44
Well,,I can tell you from experience that using multiple textures has not worked for me. I have tested this theory over and over, and have had no luck. I deleted the texture file path in the fpe, saved everything from the start of building my model in the same folder, set the entity as static and dynamic, and it has NEVER shown up with multiple textures. SO, I guess in closing, yes, I would like to see the e-mail you received because I want to know how it can be done from the person who created the engine.
Reality Forgotten
FPSC Reloaded TGC Backer
19
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Wichita Falls TX
Posted: 21st Jul 2006 22:22 Edited at: 21st Jul 2006 22:23
ok when I get off of work I will post it for you.

It's not rocket science. I can tell you from experience that this does work. I will list the steps, follow them to the tee and it will work for you, unless your determined to say it will not.


1. Export your model in .x format
2. Create an .fpe file for it. remember to leave the texturing
information blank.
3. open your editor (FPSC) amd place your object.
4. right click the object and change the following.
a. Change from static to dynamic (it will glow green)
b. Set the "isimmobile" to "yes"
5. test your game....if you followed these simple instructions you
should have a multitextured object in front of you.

RF

Candle_
19
Years of Service
User Offline
Joined: 29th May 2006
Location: kindergarten
Posted: 21st Jul 2006 23:05
Now build your game and tell me if it still works.
They all work in a test game .

gps
20
Years of Service
User Offline
Joined: 16th Dec 2004
Location: England
Posted: 21st Jul 2006 23:23
As I understand it, you need to manual add the textures to the correct entity folder of the built game. It problem is that FPSC isn't expecting multiple textures, and can't get a texture reference from the .fpe file, so it doesn't export any of textures when you build your game.

- Graham

Stamina
19
Years of Service
User Offline
Joined: 30th May 2006
Location:
Posted: 22nd Jul 2006 00:04 Edited at: 22nd Jul 2006 00:05
okie dokie,,here is what I did, per instructions,,

1st attempt - created a simple box for a building with a roof -
added my 2 textures to it, exported as an .x file to a folder created with the same name as the entity -
created an fpe file for it, deleted the texture path -
the texture files I was to use for both the building and the roof were in the entity folder from the start -
put the building in the game editor, set to dynamic and isimmobile to yes -
tested my game and BLAH, it shows the textures on the entity when I place the item in the preview, but testing the game, all white.

2nd attempt - did the same as above except for in the fpe file, I put the textures being used as follows per instruction farther up the page - textured1=firstname.tga
textured2=secondname.tga
set as dynamic AND static, isimmobile to yes, and

BLAH,,nothing but white in the test game, even though it showed up when I placed the entity in the preview.

I deleted the "d" in textured and tried again, BLAH...

Each time I changed something for my test, just as a precaution, I deleted the .bin and .dbo files for the entity I was using, and closed and restarted the editor so there was no chance of something still being in memory.

So, I am stumped as to how it works for some, but not others after following step by step instructions from those who say it works.
Unless it's something in the fpe file that isnt being mentioned. Maybe if someone could post the info from a working multiple texture fpe file so we could see an example, it might help.

Trust me, I would love to see this work because it would make some of my texturing so much easier..lol
Candle_
19
Years of Service
User Offline
Joined: 29th May 2006
Location: kindergarten
Posted: 22nd Jul 2006 00:17
I have some trees I would like to work too.

gps
20
Years of Service
User Offline
Joined: 16th Dec 2004
Location: England
Posted: 22nd Jul 2006 01:58
Stamina, what 3D software are you working with? Results seem to vary depending on the .x exporter used (just to make things even more complicated).

This is the start of the HUD.x for the Commando. You can see that the various materials have precise texture names assigned to them.



xof 0303txt 0032

Material GUN {
1.000000;1.000000;1.000000;1.000000;;
0.000000;
0.000000;0.000000;0.000000;;
0.000000;0.000000;0.000000;;

TextureFilename {
"gun_D2.tga";
}
}

Material FLAGS {
0.500000;0.500000;0.500000;1.000000;;
0.000000;
0.000000;0.000000;0.000000;;
0.000000;0.000000;0.000000;;
}

Material AMMUNITION {
1.000000;1.000000;1.000000;1.000000;;
0.000000;
0.000000;0.000000;0.000000;;
0.000000;0.000000;0.000000;;

TextureFilename {
"ammo_D2.tga";
}
}

Material SCOPE {
1.000000;1.000000;1.000000;1.000000;;
8.000000;
0.045000;0.045000;0.045000;;
0.000000;0.000000;0.000000;;

TextureFilename {
"scope_D2.tga";
}
}



It might be necessary to edit your .x file in a word processor to get a same syntax.

The whole process does seem unduly finickity, and I can't help thinking that just when we've completely worked it out, TGC will release V2 with automatic multiple texture support, and make the whole effort redundant.

Ah well, at least it's keeping us busy

Cheers

- Graham

Mr Love
19
Years of Service
User Offline
Joined: 9th Jun 2005
Playing: MAFIA 2
Posted: 22nd Jul 2006 02:22 Edited at: 22nd Jul 2006 02:32
Reality Forgotten, I think You shourld stop writing here [Mod Edit] What I did show Him WORKS and I have done it many times! This is like a [Mod Edit] kindergarten when You have to tell YOU and others EVERYTHING all the time!!! Start thinking a little bit Yourself! Ofcourse the UVs must be at the right places when exporting it.. I guess You have not done this Yourself, so wait to comment things until You know what You are talking about!!!

I want to see a FPSC Professional! And lets make it REALLY expensive this time......
uman
Retired Moderator
20
Years of Service
User Offline
Joined: 22nd Oct 2004
Location: UK
Posted: 22nd Jul 2006 02:40
Mr Love,

Take this as a serious warning which I will only give once.

If I ever and I mean ever again see you attack another forum member personally using abusive language or swearing as occured here I will take some serious action against your status as a member here.

I do not intend to have to edit any of your posts ever again. I will delete them and any further action thereafter I take as a Mod and there will be some - will be without any further warning - you have no more warnings left from me.

"I am and forever will be your friend"

Login to post a reply

Server time is: 2025-05-31 17:22:24
Your offset time is: 2025-05-31 17:22:24