Jump to content

Texture on Objects Issues [Need Help]


SoniX

Recommended Posts

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

-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

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

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
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
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...