Jump to content

3D custom object txd help


bandi94

Recommended Posts

Posted

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

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

Posted

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/

Posted

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

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

Posted

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

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

Posted

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.

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