Jump to content

Texture on Objects Issues [Need Help]


SoniX

Recommended Posts

Posted

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?

Posted

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

RaceXtreme

Posted

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

Posted

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

=Benox50=

My Youtube Channel

Posted

Be sure to load the texture before the model.

"[...] If you don’t love it, if you’re not having fun doing it, you don’t really love it, you’re going to give up." - Steve Jobs, 2007

Posted

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-

Posted

Download "TXD Workshop" and do a DFF check.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

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

"[...] If you don’t love it, if you’re not having fun doing it, you don’t really love it, you’re going to give up." - Steve Jobs, 2007

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

=Benox50=

My Youtube Channel

Posted

Which one?

"[...] If you don’t love it, if you’re not having fun doing it, you don’t really love it, you’re going to give up." - Steve Jobs, 2007

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