Jump to content
  • 0

Problem with replace Dff model(?)


MrDadosz

Question

Hello. I have problem with replaceDffModel or loading TXD. When I have object with alpha (wglasssmash.dff and wglass.txd) I can't see texture. I'm exported original files from gta3.img and I tried import this with MTA scripts.

addEventHandler("onClientResourceStart",resourceRoot,
    function ()
    txd1692 = engineLoadTXD('1692.txd')
    engineImportTXD(txd1692, 1692)
    dff1692 = engineLoadDFF('1692.dff', 0)
    engineReplaceModel(dff1692, 1692)
end)
 

    
    
    

Screens:

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

With red border - original object

Without red border - original object, but I used script, to add this.

Edited by Guest
Link to comment

4 answers to this question

Recommended Posts

  • 0
Same problem.
addEventHandler("onClientResourceStart",resourceRoot,
   function ()

txd = engineLoadTXD( "wglass.txd" )
dff = engineLoadDFF( "wglass.dff", 0 )

engineImportTXD( txd, 1866 )
engineReplaceModel( dff, 1866 )

end)

Same problem :/

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

Original files (txd and dff), texture: http://i.imgur.com/gZ6LsSj.png - I can see only frame.

Your code is literally the same.

engineReplaceModel ( dff, 1866, true )

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