MrDadosz Posted April 4, 2014 Share Posted April 4, 2014 (edited) 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 April 8, 2014 by Guest Link to comment
0 MTA Team ccw Posted April 6, 2014 MTA Team Share Posted April 6, 2014 There is a third argument for engineReplaceModel that might help you: https://wiki.multitheftauto.com/wiki/EngineReplaceModel Link to comment
0 MrDadosz Posted April 8, 2014 Author Share Posted April 8, 2014 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. Link to comment
0 Woovie Posted April 9, 2014 Share Posted April 9, 2014 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
Question
MrDadosz
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.
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 GuestLink to comment
4 answers to this question
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