Puma Posted April 12, 2013 Share Posted April 12, 2013 In short: the pokertable object appears white ingame (missing textures), when I use the dynamic script (from line 52) to replace dff, txd and col, but the chip-objects which ONLY get a txd-replacement DO have the new textures. When I replace pokertable dff, txd and col like in the first example (line 41), the pokertable object DOES have textures. http://pastebin.com/eLXHPv20 Script has notes. I would be glad if anyone could shed a light on it. Fixed. For some reason I had to replace TXD first and then DFF, which is kinda illogical by the way. Link to comment
DiSaMe Posted April 12, 2013 Share Posted April 12, 2013 It may be counterintuitive, but not "illogical" - it's explained why it works that way: https://wiki.multitheftauto.com/wiki/EngineImportTXD 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
Puma Posted April 12, 2013 Author Share Posted April 12, 2013 Ah, I get it. From my modeling experience, I thought it would work this way: you load the dff, which has texturemaps, and then you load the .txd which textures are then applied to the dff, like you apply a material to a model in 3dsMax. Thanks! 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