SoniX Posted January 11, 2013 Share Posted January 11, 2013 Hello dear community. I am tortured by a problem which makes me insane for days now. I have watchen over 50 tutorials for modelling and the problem with no texture still appears... The whole modelled object is white. http://i.imgur.com/SjVLN.png I've used the bottle_bank as an object to be replaced.. This is how my 3dsMax Material looks like: http://i.imgur.com/6vFzV.png And this one is the TXDWorkshop file, which seems allright to me.. http://i.imgur.com/A79dS.png Then I load both with a script and the object's model changes and the texture vanishes.. There are no debug messages, so the script can't be the problem. I have done everything multiple times as shown in the tutorials but I still can't figure out what I am trolled by... Can you help me please? Link to comment
RaceXtreme Posted January 11, 2013 Share Posted January 11, 2013 In the second pic you have open the texture map window. Rename both Material #30 and Map #2 to gem then save and export to dff (only) and place it to your resource folder. Now MTA should load your model correctly Link to comment
SoniX Posted January 11, 2013 Author Share Posted January 11, 2013 Didn't help.. I've changed the names of both of the windows to "gem" and exported the .dff to my resource .. still didn't work Link to comment
Faw[Ful] Posted January 11, 2013 Share Posted January 11, 2013 -texture power of two ok -no bitmap ok -compress DXT1 ok -rename texture txd same name as the picture used in max ok -Use multi sub object with MAT ID ? (Only with multi textures on the model I think, so not your case) I guess its the script or the meta.XML Use a script example that u know it works, look on community. Link to comment
Anderl Posted January 11, 2013 Share Posted January 11, 2013 Be sure to load the texture before the model. Link to comment
SoniX Posted January 11, 2013 Author Share Posted January 11, 2013 function dfftxd () rockdff = engineLoadDFF("bottle_bank.dff", 0) engineReplaceModel(rockdff, 2923) rocktxd = engineLoadTXD("bottle_bank.txd") engineImportTXD(rocktxd, 2923) end addEventHandler( "onClientResourceStart", getResourceRootElement(getThisResource()), dfftxd ) -meta- Link to comment
Castillo Posted January 11, 2013 Share Posted January 11, 2013 Download "TXD Workshop" and do a DFF check. Link to comment
50p Posted January 11, 2013 Share Posted January 11, 2013 1 more thing to try: TXD Workshop is known for issues with textures if you're creating new txd from a blank txd. Open any original txd from GTA and replace the textures in it instead of creating new blank txd inside of TXD Workshop. Link to comment
Kenix Posted January 11, 2013 Share Posted January 11, 2013 You can try G-TXD program. Link to comment
Anderl Posted January 11, 2013 Share Posted January 11, 2013 This function imports (adds) a loaded RenderWare Texture Dictionary into a specific model. This is necessary in order for the DFF loader to find any new textures. Please call this function before loading the DFF model file, in order to allow the DFF loading process to find the new textures. Link to comment
Faw[Ful] Posted January 11, 2013 Share Posted January 11, 2013 function dfftxd ()rockdff = engineLoadDFF("bottle_bank.dff", 0) engineReplaceModel(rockdff, 2923) rocktxd = engineLoadTXD("bottle_bank.txd") engineImportTXD(rocktxd, 2923) end addEventHandler( "onClientResourceStart", getResourceRootElement(getThisResource()), dfftxd ) -meta- You need to call the TXD function before the DFF function. Link to comment
SoniX Posted January 12, 2013 Author Share Posted January 12, 2013 Thanks, it worked. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now