Unsupported material element map_Ks

#1
Hello,
I am getting this error, after converting .BGL to .OBJ, [ONJReader] Unsupported material map_Ks, however I looked into it and found nothing online, and this error makes all of my buildings window parts go transparent and see through, for example:

.OBJ File:
Capture.PNG


.BGL File:
Capture.PNG


Also, any clue why am I unable to export the model AND textures with it? The textures aren't exporting just the model, but the main problem is described above.
Appreciate your time!
Regards,
AidasP
 

arno

Administrator
Staff member
FSDevConf team
Resource contributor
#2
Hi,

Did you make the OBJ with MCX or with another tool?

Most formats don't include the textures, so it's normal to export the model seperately.
 
#3
Hi,

Did you make the OBJ with MCX or with another tool?

Most formats don't include the textures, so it's normal to export the model seperately.
I converted bgl to obj using mcx, and textures DO work in mcx, except any other program or when exported, anyways the model works in mcx but I can’t export it to any sim and the windows are transparent.
 

arno

Administrator
Staff member
FSDevConf team
Resource contributor
#4
It might be the alpha channel was used for reflection. Most other applications don't support that.

Also make sure your OBJ file and textures are in the same folder, else programs can't find the textures.
 
#5
Okay, how do i fix the alpha issue? As this occurs in mcx and sim.

And, I will try that, but doesnt scenery and texture folders do the same thing? Since the bgl/obj file is pointed to that location
 

arno

Administrator
Staff member
FSDevConf team
Resource contributor
#7
Which version of MCX are you using? The map_Ks is about the specular map.

And I'm a bit confused. You say you converted to OBJ with MCX, but you don't do that to load into FS. You must want to import it in some other tool than.
 
#8
Which version of MCX are you using? The map_Ks is about the specular map.

And I'm a bit confused. You say you converted to OBJ with MCX, but you don't do that to load into FS. You must want to import it in some other tool than.
Yes i want to update the buildings a little but when i export/import the window textures are transparent. And yes , the windows are reflective so it must be using specular maps? Why is it giving an error? Is there any way to fix it?

Latest version, I downloaded it yesterday I dont remember the specific version
 

arno

Administrator
Staff member
FSDevConf team
Resource contributor
#9
Hi,

I just exported a model with specular texture to OBJ and here I can import it back without any error about map_Ks not being supported.

Are you sure you downloaded the development release version and not version 1.3?
 
#10
I just downloaded the development release, and i my hopes were big, but sadly, its still transparent, the window textures are gone, and I didn't get an error, but yeah.
 

arno

Administrator
Staff member
FSDevConf team
Resource contributor
#12
The way FS can use your diffuse alpha channel as specular level is something very unique to the FS shader, that can not be represented in the OBJ format. So you might have to remove the alpha channel completely when you go to OBJ.

Why you need to go to OBJ to edit the object?
 
#13
I can try to send you the .
The way FS can use your diffuse alpha channel as specular level is something very unique to the FS shader, that can not be represented in the OBJ format. So you might have to remove the alpha channel completely when you go to OBJ.

Why you need to go to OBJ to edit the object?
If you look my message above yours, I said no matter which file i convert the bgl to its the same thing sadly. Maybe I can somehow give you the files to play around if you have time? Just keep in mind its a scenery I paid for, and i want to modify it, I am not against sharing the file privately with you, but that’s probably against the EULA, the scenery is EYVI by aerosoft.
 

arno

Administrator
Staff member
FSDevConf team
Resource contributor
#14
Did you remove the alpha channel from the texture then? Like I explained other applications that load your OBJ will not understand the FS shader and the OBJ file also can't store the FS specific material settings.

Coming back to the question, what kind of changes you want to make? Do you need to go to OBJ for that? You will loose information about specific material settings in this conversion.
 
Top