File formats.

I've spent quite a bit of time trying to figure out the file formats of the SWG client. While not complete, I've decided to try to post what I've figured out. I will update and post the formats as I get them into some kind of readable format. If you figure out something I missed, have a correction for me or just some general feedback, please feel free to send a message to Xunil on the swgemu forums.

Blender importer (Incomplete).

I've taken a little bit of my SWG mesh knowledge and started a blender importer. I'm a C++ programmer and unfortunately a total noob at Python (which blender uses for its plugins.) I've ran the script under Blender 2.4.6 and 2.48 (on Linux) and it will import the vertex/polygon info for several of the .msh formats. Anyway, here is the script for anyone that wants to play around with it:

Libraries

treLib - C++ library to extract files from TRE archives. This library is fairly mature and doesn't change too much.
meshLib - C++ library to read and parse all known files stored in the SWG tre archive files. This code is under heavy development and frequently changes as I discover more about the formats.

Viewers

swgOSG - A small application to load and view many of the SWG data files. This program is dependent on the treLib and meshLib libaries above as well as OpenSceneGraph 2.8 ( or higher ). Its still under heavy development so expect a few crashes.

Screen shots taken with swgOSG

royal_guard.jpg
at_at_skt.jpg
boba_fett_l0.jpg
acklay_l0.jpg
at_at_l0.jpg
darth_vader_l0.jpg
krayt_dragon_hue_l0.jpg
dark_trooper_2_l0.jpg
dewback_l0.jpg
coronet_01.jpg
coronet_02.jpg
coronet_03.jpg
kaadara_01.jpg
keren_01.jpg
keren_02.jpg
theed_01.jpg
theed_02.jpg
theed_03.jpg
theed_hangar_01.jpg
spacestation_pirate_asteroid.jpg
star_destroyer_space.jpg
corellian_corvette.jpg
thm_tato_block_bldg_64x16_s01.jpg
nebulon_frigate.jpg
spacestation_imperial.jpg
fort_tusken.jpg

Screen shots taken with older apps no longer under development

blender_tie_fighter.jpg
corellian_corvette_l0.jpg
ins_all_craftable_creature_farm_s01_u0_l0_msh.jpg
jetpack_mandalorian_s01_l0_msh.jpg
lambda_shuttle_static_s01_l0_msh.jpg
landspeeder_xp34_convertible_l0_msh.jpg
mun_all_cloning_s01_r0_mesh_l0_msh.jpg
mun_all_hotel_s01_r0_hotel_mesh_exterior_l0_msh.jpg
mun_corl_starport_s01_u01_r0_mesh_l0_msh.jpg
mun_tato_bank_s01.jpg
ply_all_assoc_hall_civ_s01_r0_mesh_l0_msh.jpg
ply_all_house_lg_s01_fp1_r0_mesh_l0_msh.jpg
poi_all_atat_destroyed.jpg
poi_all_escape_pod_l0_msh.jpg
poi_all_xwing_l0_msh.jpg
sandcrawler_l0_msh.jpg
smuggler_warlord_ship.jpg
space_station_msh.jpg
spacestation_outpost_imperial_s01_l0.jpg
thm_corl_skyskraper_s05_r0_mesh_l3_msh.jpg
thm_dath_imp_prison.jpg
thm_lok_nyms_stronghold_r0_mesh.jpg
thm_lok_nyms_stronghold_r0_mesh_l0_msh.jpg
thm_nboo_thed_emp_retreat_r0_mesh.jpg
thm_nboo_thed_theed_palace_r0_mesh_l0.jpg
thm_tato_fort_tusken_r0_mesh.jpg
tie_bomber_l0_msh.jpg
tie_fighter_msh.jpg
transport_l0_msh.jpg
yt1300.jpg