I have imported many NFS models with NFS-CarToolkit and everithing looks good, specialy all textures are there, but after exporting the model to fbx and reopening the fbx file all textures are mising. The same problem if I expot to z3d. Looks like obj export has the same problem. So is there a vay to export the model with worcking textures?
Quote from: modding on Dec 15, 2021, 9:59 AM
I have imported many NFS models with NFS-CarToolkit and everithing looks good, specialy all textures are there, but after exporting the model to fbx and reopening the fbx file all textures are mising. The same problem if I expot to z3d. Looks like obj export has the same problem. So is there a vay to export the model with worcking textures?
The texture exporting is done separately. But it can still be done nonetheless.
On the top left corner go to Textures > Export All. You will be prompted to select a folder to store the textures in, so create a separate folder for the textures but make sure both the texture folder and the model are under the same folder. After that, depending on the game, you may have to modify some texture formats to make them work (such as Most Wanted where only DXT1 and DXT3 formats work)
I know, this is how I do it:
Import the model
(https://i.postimg.cc/FFCBZ0nh/Unbenannt.jpg) (https://postimages.org/)
The folder with exported model and textures
(https://i.postimg.cc/RFDLcLC8/Unbenannt2.jpg) (https://postimages.org/)
Import the model back from that folder
(https://i.postimg.cc/fy5tcwvb/Unbenannt3.jpg) (https://postimages.org/)
As you see all textures mising.
that's because it was in OBJ format and textures are not compiled as well. It's normal to have textures missing
No, it´s fbx. I also tried z3d and when importing to ZModeler exact the same problem with textures. The advantage of ZModeler is that it gives errormesages and it looks like the developer of the too not knowing diference between material and textures.
Toolkit only loads textures to BIN file models because the path for textures in BIN files is static (it's always in the same location as the GEOMETRY.BIN file). Other formats don't abide to that because
a) CarToolkit only loads (and exports) mesh and basic material data from fbx/obj/z3d
b) you load the geometry file first then load the textures separately; hence cartoolkit cannot tell what textures should load and apply to the mesh
CarToolkit is not meant to be a fbx/obj/z3d viewer; it's purpose is to convert from and to Black Box BIN file mesh formats.
Quote from: AJ_Lethal on Dec 16, 2021, 5:15 AM
Toolkit only loads textures to BIN file models because the path for textures in BIN files is static (it's always in the same location as the GEOMETRY.BIN file). Other formats don't abide to that because
a) CarToolkit only loads (and exports) mesh and basic material data from fbx/obj/z3d
b) you load the geometry file first then load the textures separately; hence cartoolkit cannot tell what textures should load and apply to the mesh
CarToolkit is not meant to be a fbx/obj/z3d viewer; it's purpose is to convert from and to Black Box BIN file mesh formats.
But CarToolkit aplies right textures when I load the model from bin file. So why the f*** the exported model has no textures? In ZModeler or 3 ds Max the model has also no textures, wich makes the model useles.
Yes that to bad... As I read.
Just like my Deleted Compliment was , an is 🙄🙄. 😋😋 Remembered..
Quote from: modding on Dec 16, 2021, 11:24 AM
Quote from: AJ_Lethal on Dec 16, 2021, 5:15 AM
Toolkit only loads textures to BIN file models because the path for textures in BIN files is static (it's always in the same location as the GEOMETRY.BIN file). Other formats don't abide to that because
a) CarToolkit only loads (and exports) mesh and basic material data from fbx/obj/z3d
b) you load the geometry file first then load the textures separately; hence cartoolkit cannot tell what textures should load and apply to the mesh
CarToolkit is not meant to be a fbx/obj/z3d viewer; it's purpose is to convert from and to Black Box BIN file mesh formats.
But CarToolkit aplies right textures when I load the model from bin file.
I already told you why CarToolkit doesn't load textures from fbx/obj/z3d files: it simply does not handle that data directly because texture data on those files have no fixed location at all. All it can do is to assign the material/texture data (which is defined in the .txt file you load) on compilation; you'll see that if you compile a z3d/obj/fbx to a geometry.bin, then compile a textures.bin file and open said geometry.bin file.
Quote from: modding on Dec 16, 2021, 11:24 AMSo why the f*** the exported model has no textures? In ZModeler or 3 ds Max the model has also no textures, wich makes the model useles.
You have to export the textures separately, then load them manually for each material in the 3D editor.
Quote from: AJ_Lethal on Dec 16, 2021, 11:55 AM
You have to export the textures separately, then load them manually for each material in the 3D editor.
I have exported the textures separatly. Why the f*** should I do all texture stuf manually? I mean it should not be so hard to export the models to fbx/obj/z3d files with corect texture names. I mean should I gues which texture belongs to which material?
Also wanted to make 1 thing clear, never said that CarToolkit should be a viewer for fbx/obj/z3d files.
Quote from: modding on Dec 16, 2021, 12:20 PM
I have exported the textures separatly. Why the f*** should I do all texture stuf manually? I mean it should not be so hard to export the models to fbx/obj/z3d files with corect texture names.
Because the textures a) can be anywhere and the program can't magically guess where you're exporting the textures to embed the path data in order to load them automatically b) at least in z3d export case you'll have to convert the textures to bmp/tga since it handles the ZModeler 1 format (which doesn't have DDS support)
Quote from: modding on Dec 16, 2021, 12:20 PMI mean should I gues which texture belongs to which material?
Not really, BIN meshes exported with cartookit have the texture name appended to the materials they use so you can know what texture originally came with it (so for example a part with a RUBBER material and TIRE texture will be exported with a material named RUBBER_TIRE)
Quote from: AJ_Lethal on Dec 16, 2021, 12:41 PM
Quote from: modding on Dec 16, 2021, 12:20 PM
I have exported the textures separatly. Why the f*** should I do all texture stuf manually? I mean it should not be so hard to export the models to fbx/obj/z3d files with corect texture names.
Because the textures a) can be anywhere and the program can't magically guess where you're exporting the textures to embed the path data in order to load them automatically b) at least in z3d export case you'll have to convert the textures to bmp/tga since it handles the ZModeler 1 format (which doesn't have DDS support)
Quote from: modding on Dec 16, 2021, 12:20 PMI mean should I gues which texture belongs to which material?
Not really, BIN meshes exported with cartookit have the texture name appended to the materials they use so you can know what texture originally came with it (so for example a part with a RUBBER material and TIRE texture will be exported with a material named RUBBER_TIRE)
The textures should be in the same folder as the model. I am using ZModeler 2 so no problems with dds format.
To show again what I mean here the example avaible with the tool:
(https://i.postimg.cc/13rJrkSm/Unbenannt.jpg) (https://postimages.org/)
(https://i.postimg.cc/Dwx1ZnFX/Unbenannt2.jpg) (https://postimages.org/)
As you can see no material or texture name coresponds to the real textures avaible in the folder.
Quote from: modding on Dec 17, 2021, 3:59 AM
The textures should be in the same folder as the model. I am using ZModeler 2 so no problems with dds format.
To show again what I mean here the example avaible with the tool:
(https://i.postimg.cc/13rJrkSm/Unbenannt.jpg) (https://postimages.org/)
(https://i.postimg.cc/Dwx1ZnFX/Unbenannt2.jpg) (https://postimages.org/)
As you can see no material or texture name coresponds to the real textures avaible in the folder.
Some textures (like CARBOTTOM) are what are known as global/generic textures; which are found in places like GLOBAL\GLOBALB.LZC or CARS\TEXTURES.BIN. You have to manually extract those to use them in your 3D editor.
Some other textures like CARSKIN or BRAKELIGHT_RIGHT, for example, aren't textures per se but "slots" of sorts for dynamically changing textures (such as body paint or brakelights, respectively). You still might have to load a placeholder texture for those in your 3D editor for stuff like UV mapping.
Quote from: AJ_Lethal on Dec 17, 2021, 5:45 AM
Some textures (like CARBOTTOM) are what are known as global/generic textures; which are found in places like GLOBAL\GLOBALB.LZC or CARS\TEXTURES.BIN. You have to manually extract those to use them in your 3D editor.
Some other textures like CARSKIN or BRAKELIGHT_RIGHT, for example, aren't textures per se but "slots" of sorts for dynamically changing textures (such as body paint or brakelights, respectively). You still might have to load a placeholder texture for those in your 3D editor for stuff like UV mapping.
I see your point, but at least texture names from textures.bin which were corectly imported could also be exported corectly.
So nobody know how to fix that texture bug? Unfortunately the tool contain no reedmee file, which contains a way to contact the developer.
Quote from: modding on Dec 17, 2021, 6:53 AM
So nobody know how to fix that texture bug? Unfortunately the tool contain no reedmee file, which contains a way to contact the developer.
It's not a bug; it's a missing feature at worst.
Here's the author's website, try leaving a message in the replies or sth: https://nfs-tools.blogspot.com/
Quote from: AJ_Lethal on Dec 18, 2021, 6:50 PM
Quote from: modding on Dec 17, 2021, 6:53 AM
So nobody know how to fix that texture bug? Unfortunately the tool contain no reedmee file, which contains a way to contact the developer.
It's not a bug; it's a missing feature at worst.
Here's the author's website, try leaving a message in the replies or sth: https://nfs-tools.blogspot.com/
Tbh, I don't think he is active anymore.
Quote from: AJ_Lethal on Dec 18, 2021, 6:50 PM
It's not a bug; it's a missing feature at worst.
Here's the author's website, try leaving a message in the replies or sth: https://nfs-tools.blogspot.com/
Any other way to contact him? For that blogspot.com google acount is necesary.
What that txt file, created when exporting a model, should be good for?
Quote from: modding on Mar 25, 2022, 6:34 AM
What that txt file, created when exporting a model, should be good for?
It's basically the configuration file for compiling back into .bin files; it tells CarToolkit which materials, textures, markers and such to use when compiling the model.
Quote from: AJ_Lethal on Mar 25, 2022, 7:46 AM
Quote from: modding on Mar 25, 2022, 6:34 AM
What that txt file, created when exporting a model, should be good for?
It's basically the configuration file for compiling back into .bin files; it tells CarToolkit which materials, textures, markers and such to use when compiling the model.
But most of texture names are wrong or incomplete.
Quote from: modding on Mar 26, 2022, 6:18 AM
But most of texture names are wrong or incomplete.
False. In most cases (especially from vanilla models) the txt file has the correct names for textures
for its intended purpose (compiling into a GEOMETRY.BIN file)[example from the M3 GTR from NFSMW](https://i.imgur.com/8dnHyfW.png)
In case you need a reminder how the material section of the txt file does work:
(https://i.imgur.com/rXY37vv.png)
Quote from: AJ_Lethal on Mar 26, 2022, 7:00 AM
Quote from: modding on Mar 26, 2022, 6:18 AM
But most of texture names are wrong or incomplete.
False. In most cases (especially from vanilla models) the txt file has the correct names for textures for its intended purpose (compiling into a GEOMETRY.BIN file)[example from the M3 GTR from NFSMW](https://i.imgur.com/8dnHyfW.png)
In case you need a reminder how the material section of the txt file does work:
(https://i.imgur.com/rXY37vv.png)
But there are no textures with exact the given names.
Quote from: modding on Mar 26, 2022, 5:26 PM
But there are no textures with exact the given names.
*sigh*
Alright, I looked at the mtl file since something in your previous posts caught my eye. And well, it happens there's a workaround for the minor inconvenience you're agonizingly bellyaching over:
1- Open the mtl file in Notepad and look for the map_kds that begin with %_
(https://i.imgur.com/T3VHYuW.png)
2- Press Ctrl+R to open the Search and Replace dialog and replace all the instances of % with the car's XNAME
(https://i.imgur.com/NwnviW2.png)
3-Save the file. Now when you import the obj file in your editor, textures will load automatically
(https://i.imgur.com/7JQ9HAk.png)
In that txt file there is not just %_MISC but also %_MISC_N. In that mtl file that %_MISC_N seems to be mising.
Quote from: modding on Mar 28, 2022, 2:48 PM
In that txt file there is not just %_MISC but also %_MISC_N. In that mtl file that %_MISC_N seems to be mising.
The _N textures are the bump map textures that are applied on top of the regular texture (although in MW's case, bump maps are unused); CarToolkit does not extract the bump map texture data.
Quote from: AJ_Lethal on Mar 28, 2022, 4:06 PM
The _N textures are the bump map textures that are applied on top of the regular texture (although in MW's case, bump maps are unused); CarToolkit does not extract the bump map texture data.
Thought _N stands for normal texture.