3D Warehouse Conversions

ross4122

Scottish Vyking Veg
Staff Team Leader
Content Control
Premium Subscriber
Apr 1, 2016
1,011
Hello all, I'm trying to convert the .skp file to a .x file but how am I supposed to do this? I know @whistlehead did it for Cotterell, however I'm struggling quite a bit.




Thanks in advance :)
 

ross4122

Scottish Vyking Veg
Staff Team Leader
Content Control
Premium Subscriber
Apr 1, 2016
1,011
Righty, quick update - I've managed to export it etc but when into the Omsi editor the buildings have been flipped and the object appears on a strange angle, meaning I have to pitch it by 270 degrees.
 

Fellowslothb

Founder of Fellowsfilm Studios
Administrator
UKDT
Dec 10, 2015
639
You will need to import it into Blender first, re assign all the textures and then export it as .x right handed and deselect the flip 90 degrees option :)
 

ross4122

Scottish Vyking Veg
Staff Team Leader
Content Control
Premium Subscriber
Apr 1, 2016
1,011
Imported to Blender - done

Reassign all textures - how?

Export as right handed Direct x file - how?


All help is appreciated :)
 

ross4122

Scottish Vyking Veg
Staff Team Leader
Content Control
Premium Subscriber
Apr 1, 2016
1,011
Exported as right handed x file is done. Just imported it into Omsi editor and I get a lovely looking building!! Still need to put the bank 270 degrees in though.View attachment 1464
 

Fellowslothb

Founder of Fellowsfilm Studios
Administrator
UKDT
Dec 10, 2015
639
If you can possibly screenshot the export settings you have selected I can help further :)
 

ross4122

Scottish Vyking Veg
Staff Team Leader
Content Control
Premium Subscriber
Apr 1, 2016
1,011
Thanks to you both, Rhys and Ash! Works perfectly now  ^_^
 

ross4122

Scottish Vyking Veg
Staff Team Leader
Content Control
Premium Subscriber
Apr 1, 2016
1,011
OK... quick update. Managed to get a building in but it's got transparent textures, which appear white when imported to OMSI. Is there any solution to this?
 

whistlehead

Alias Mr Hackenbacker
Staff Team Leader
Forum Moderator
UKDT
Premium Subscriber
Dec 10, 2015
1,377
OK... quick update. Managed to get a building in but it's got transparent textures, which appear white when imported to OMSI. Is there any solution to this?






In the .sco file, you have to list every instance of a transparent texture and mark it as transparent, like this:


[matl]


texturename.tga


0


[matl_alpha]


1


[matl]


texturename.tga


1


[matl_alpha]

1


[matl]


texturename.tga


2


[matl_alpha]

1


[matl]


anothertexturename.tga


0


[matl_alpha]


1


[matl]


anothertexturename.tga


1


[matl_alpha]


1


etc. Hopefully you can see the patter. Unfortunately the Sketchup>Blender conversion process does this really badly (it's one of the main downsides of using Sketchup for buildings) so you have to repeat this for every single use of a transparent texture, not just for each individual texture.
 

ross4122

Scottish Vyking Veg
Staff Team Leader
Content Control
Premium Subscriber
Apr 1, 2016
1,011
OK. They are .bmp files, but they should still work, yeah?


So if the file name is picture1.bmp, it'd be

 

[matl]


picture1.bmp


0


[matl_alpha]


1


[matl]


picture1.bmp


1


[matl_alpha]

1


[matl]


picture1.bmp


2


[matl_alpha]

1






?


Thanks for the help :)
 

whistlehead

Alias Mr Hackenbacker
Staff Team Leader
Forum Moderator
UKDT
Premium Subscriber
Dec 10, 2015
1,377
.bmps can't be transparent, they'll have to be .dds, .png or .tga. Not sure how they're transparent on the model if they're .bmp?
 

ross4122

Scottish Vyking Veg
Staff Team Leader
Content Control
Premium Subscriber
Apr 1, 2016
1,011
I shall have a look again 
 

ross4122

Scottish Vyking Veg
Staff Team Leader
Content Control
Premium Subscriber
Apr 1, 2016
1,011
OK, I've had another look in the Sketchup file and the transparent files are transparent... I've also looked in at the texture files and the bits that are meant to be transparent are too. So how do I change the files from .bmp to .tga and do the same in Blender or Sketchup?
 

ThisIsAlex

Veteran Member
Apr 13, 2016
483
Favourite Truck
MAN
To convert a texture from .bmp to .tga, open the texture up in Paint.NET and save it as a .tga file.  :)