Is it possible to retain materials after import

Post Reply
danbywinby
Posts: 2717
Joined: 20 Dec 2012 18:45

Is it possible to retain materials after import

#1 Post by danbywinby » 02 Nov 2020 13:38

Hi All

Whenever i import an SCS model into Blender Tools i always get a load of error messages about the materials. As you can see in the below screenshot:
Image

Which results in each object having a 'No shader parameters' message in the 'SCS Materials' section. As you can see in the below screenshot:
Image

Currently what i do to fix this issue is i will use HxD to open th .pmd file of the model that i am importing and that will give me a list of all of the automat files for the model and then by looking at those i can find the .tobj that model is using and then delete the existing material in blender and create a new one from the relevant texture file. Usually this works quite well as the model only has one or two automat files and so working out which object in blender uses what texture doesn't take too long.

However the model that i'm importing into blender now has a very long list of automat files. I have included the list below.

Code: Select all

./automat/d0/d0e9d375ce05823e.mat
./automat/2b/2b8ee96db21e866b.mat
./automat/d0/d0e9d375ce05823e.mat
./automat/cb/cb05cad0ef4fdfc4.mat
./automat/6c/6c2cac5bc77c9cbb.mat
./automat/a8/a8e30af67e687f2d.mat
./automat/ff/ff3a5ee5f0c32118.mat
./automat/a3/a3078277171f2820.mat
./automat/81/817c3f2d08490a63.mat
./automat/d0/d0e9d375ce05823e.mat
./automat/2b/2b8ee96db21e866b.mat
./automat/d0/d0e9d375ce05823e.mat
./automat/cb/cb05cad0ef4fdfc4.mat
./automat/37/3748a53bbbd6cda8.mat
./automat/a8/a8e30af67e687f2d.mat
./automat/ff/ff3a5ee5f0c32118.mat
./automat/a3/a3078277171f2820.mat
./automat/81/817c3f2d08490a63.mat
For reference the model i am that i'm importing is in ATS and is:

Code: Select all

\vehicle\ai\f_150\ai_spec.pmg
With no way to know which object in blender should be using which texture it's going to be an extremely long game of trial and error to get them all matched up correctly.

So i am wondering if anybody knows of a better way to do this?

Thank You
Image
My World of Trucks Profile - New images uploaded: 12/12/2019

User avatar
Mohammad
Posts: 2971
Joined: 12 Oct 2018 20:53
Location: Birmingham
Contact:

Re: Is it possible to retain materials after import

#2 Post by Mohammad » 16 Nov 2020 20:58

Isn't this a problem from the model being made from Zmod, I had a similar issue and replaced all textures in Blender manually
Image

User avatar
JUseeTV
Posts: 11092
Joined: 10 Apr 2016 17:03
Location: Always movin'
Contact:

Re: Is it possible to retain materials after import

#3 Post by JUseeTV » 16 Nov 2020 22:57

This issue is typical for a model made with Zmod. You have to re-do all materials to get a correct export
Image

danbywinby
Posts: 2717
Joined: 20 Dec 2012 18:45

Re: Is it possible to retain materials after import

#4 Post by danbywinby » 17 Nov 2020 07:39

This is not a model from zmod. This is an SCS model extracted from the game 'base' file.
Image
My World of Trucks Profile - New images uploaded: 12/12/2019

User avatar
Wolfi
Beta tester
Posts: 11764
Joined: 12 Jul 2013 12:14
Location: United Republic of Huggable Fuzzbutts

Re: Is it possible to retain materials after import

#5 Post by Wolfi » 17 Nov 2020 08:41

Are you using ConverterPIXwrapper to import it directly from base.scs, or are you trying to import it from extracted base.scs?
Image

danbywinby
Posts: 2717
Joined: 20 Dec 2012 18:45

Re: Is it possible to retain materials after import

#6 Post by danbywinby » 17 Nov 2020 09:21

Im using the converterpix addon in Blender to import it from extracted base.scs.
Image
My World of Trucks Profile - New images uploaded: 12/12/2019

User avatar
Wolfi
Beta tester
Posts: 11764
Joined: 12 Jul 2013 12:14
Location: United Republic of Huggable Fuzzbutts

Re: Is it possible to retain materials after import

#7 Post by Wolfi » 17 Nov 2020 09:47

viewtopic.php?f=160&t=245065
This allows you to import stuff into blender from the base.scs without extracting it. This way you are sure everything imports as it should. It's the fastest and easiest solution. (It will give you a new option in Blender, to import directly from an .scs archive)
Image

danbywinby
Posts: 2717
Joined: 20 Dec 2012 18:45

Re: Is it possible to retain materials after import

#8 Post by danbywinby » 17 Nov 2020 10:12

That seems to have fixed the issue.

Now when importing i get the below:
Image
No errors about any of the materials and the textures themselves actually show correctly on the model.
I'm not sure what that one error that does show is though. But it doesn't seem to be causing any issues.

Thank you very very much. Amazing to think that issue was caused by me importing from the extracted base.scs rather than the actual archive itself.
Image
My World of Trucks Profile - New images uploaded: 12/12/2019

User avatar
Wolfi
Beta tester
Posts: 11764
Joined: 12 Jul 2013 12:14
Location: United Republic of Huggable Fuzzbutts

Re: Is it possible to retain materials after import

#9 Post by Wolfi » 17 Nov 2020 10:19

I'm happy you managed to solve the issue :)
The warning you are getting is there, because when importing model you left the "preserve path for export" option checked. You have imported model from the base.scs, so it's obviously not possible to export it back there. This warning isn't serious, it's just a small reminder that you will have to specify export path manually.
Image

Post Reply

Return to “Blender Tools”

Who is online

Users browsing this forum: No registered users and 1 guest