bandi94 Posted November 30, 2011 Share Posted November 30, 2011 i make a custom object in googel sktechup i attached it to vgncarshade in 3D's max i save it (.ddf) i open the txd wrokshop i add a image imported the picture for my custom object and i name it like the Material name in 3D's max but my objet is stil white the vgncarshade is good buy my attahed object is white somebody can explain me how to add the txd photo for my attached object thx Link to comment
unknooooown Posted November 30, 2011 Share Posted November 30, 2011 i make a custom object in googel sktechup i attached it to vgncarshade in 3D's max i save it (.ddf) i open the txd wrokshop i add a image imported the picture for my custom object and i name it like the Material name in 3D's max but my objet is stil white the vgncarshade is good buy my attahed object is white somebody can explain me how to add the txd photo for my attached object thx Could you post the code you use to replace the object and texture? Link to comment
bandi94 Posted November 30, 2011 Author Share Posted November 30, 2011 OMG not the code is wrong the dff and txd is ..... bk when i load the custom object the vgncarshade get colored only my attached object not .... dff = engineLoadDFF("proba.dff",0) engineReplaceModel(dff, 3458) engineReplaceModel(dff, 8838) engineReplaceModel(dff, 8557) txd = engineLoadTXD ( "vgncarshade1.txd" ) engineImportTXD ( txd, 3458) engineImportTXD ( txd, 8838) engineImportTXD ( txd, 8557) EDIT HERE 3 photo's : http://imageshack.us/photo/my-images/210/66862793.png/ http://imageshack.us/photo/my-images/38/54159401.png/ http://imageshack.us/photo/my-images/811/83351146.png/ Link to comment
unknooooown Posted November 30, 2011 Share Posted November 30, 2011 You do realize that you change the model and texture of the same element three times right? Link to comment
bandi94 Posted November 30, 2011 Author Share Posted November 30, 2011 like i say i am not pro in this and i need somebody who can expline me how can i do that my attached element get the photo texture from txd .... Link to comment
50p Posted November 30, 2011 Share Posted November 30, 2011 i make a custom object in googel sktechup i attached it to vgncarshade in 3D's max i save it (.ddf) i open the txd wrokshop i add a image imported the picture for my custom object and i name it like the Material name in 3D's max but my objet is stil white the vgncarshade is good buy my attahed object is white somebody can explain me how to add the txd photo for my attached object thx You should name the texture in .txd with the same name as the name of the file that was assigned to the model, not the material name. If your material name is "material" and the texture file name that is used by the material is something like "wood" then you have to make sure the texture name inside .txd is the same as "wood" not "material". To me it looks like you named the texture by the name of the model which is incorrect unless your texture file name was the same as the model name. Link to comment
bandi94 Posted November 30, 2011 Author Share Posted November 30, 2011 i used 2 object's the vgncarshade1.dff and i attached to it the VGN.3ds object so i named the photo in .txd : VGN but nothing again only white Link to comment
50p Posted November 30, 2011 Share Posted November 30, 2011 i used 2 object's the vgncarshade1.dff and i attached to it the VGN.3ds object so i named the photo in .txd : VGN but nothing again only white Read and understand please. Model names can be anything you like. Only file name of the texture that was applied to the model is important NOT the model name. Forget about model name. Apply GTA Material to the model and for Diffuse map use a texture (like you said "photo"). Then export the model. .dff files contains data about the mesh, TEXTURE NAMES and other extra flags, like 2dfx (for example lights from lamp posts). So, when you export, texture name is saved in the .dff, when GTA loads the model, it tries to load texture that was used in 3DS Max. If you applied texture in 3DS Max that was called "wood.png" then after you export the .dff, make sure that the .txd has a texture named as "wood". Link to comment
bandi94 Posted December 1, 2011 Author Share Posted December 1, 2011 ok i make how you say now my problem is that it draw only on 1 side here : http://imageshack.us/photo/my-images/9/46649773.png/ http://imageshack.us/photo/my-images/405/20411138.png/ Edit: Thx for helping it was my foult i forgot to draw the material to the object i draw it and now it's working fine thx a lot for helping Link to comment
50p Posted December 1, 2011 Share Posted December 1, 2011 ok i make how you say now my problem is that it draw only on 1 side here :http://imageshack.us/photo/my-images/9/46649773.png/ http://imageshack.us/photo/my-images/405/20411138.png/ Edit: Thx for helping it was my foult i forgot to draw the material to the object i draw it and now it's working fine thx a lot for helping No problem. I hope you're clearer now about custom models in GTA SA. Link to comment
Oz. Posted December 1, 2011 Share Posted December 1, 2011 Also worth keeping in mind that the export from SketchUp to 3DSMax will truncate any material names you use to 8 characters or less. You should always keep your material names 8 characters or less, or the name will be automatically truncated and will no longer match your texture filename and/or the name you define in the TXD, resulting in the same no-texture problem you experienced in MTA. 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