Jump to content

SpaceGod.Game/ThirdPartyArt

From MindAttic Docs

Third-party art

Art packs from the owner's own asset libraries (Fab, Unity Asset Store). Their licences allow use in the game but forbid redistributing the raw assets, and this repo is public, so none of it is committed:

  • Cpp/SourceArt/ThirdParty/ (the extracted source files) and
  • Cpp/Content/ThirdParty/ (the imported .uassets)

are both in .gitignore. What is committed is the import script for each pack, so any machine that has the pack's download can rebuild the assets exactly. Never git add -f anything under those two folders. A packaged build that uses these assets must be built on a machine that has run the import: the game loads them by path, so Cpp/Config/DefaultGame.ini names /Game/ThirdParty/USC and /Game/ThirdParty/StarSparrow in DirectoriesToAlwaysCook (US-T913), and the cooker finds nothing there on a machine without them.

Star Sparrow (Ebal Studios)

  • Source: Ebal Studios' "Star Sparrow" modular spaceship pack, from the owner's library. The download comes as starsparrow_fbx.zip, _blender.zip and _obj.zip; the import uses the FBX one. The zip carries no licence file; the store licence it was obtained under applies (no redistribution of the source assets).
  • Re-import: close any editor that has the project open, then
    tools/import-starsparrow.ps1 -Zip <path>\starsparrow_fbx.zip

    (-Zip defaults to %USERPROFILE%\Downloads\starsparrow\starsparrow_fbx.zip). It extracts the zip into Cpp/SourceArt/ThirdParty/StarSparrow/ if that is not there yet, then runs tools/import_starsparrow.py headless (UnrealEditor-Cmd -run=pythonscript). Re-running is safe: assets are re-imported in place and the material instances keep their paths. The script logs a StarSparrow: SUMMARY line and every failure.
  • Result (/Game/ThirdParty/StarSparrow):
    • Meshes/SM_StarSparrow01..40: the 40 prebuilt fighters, each one combined static mesh (a single node and no material slots in the FBX), nose +X, up +Z, centimetres (about 10-16 m long), 1.4k-3.7k triangles, pivot at the middle of the length. Nanite (US-T802: 100-ship launches), its fallback mesh kept at every triangle, so LOD0 stays the whole fighter where Nanite is off and for merged designs; no lightmap UVs. Simple collision: one 18-DOP convex hull (the importer's auto collision; the FBX has no UCX hulls). CPU access kept (US-T1003), so HullLighting::ExtremesOf and ImportedGeometry can read it in a packaged build, not just the editor.
    • Meshes/SM_StarSparrowModule_<Part>: the 8 parts of StarSparrowModules.fbx: Core (hull with cockpit, 856 tris), Engine, Thruster (nozzle), Plasma (gun pod), Weapon (barrel), Wing, Fin, Tail. The FBX lays them out in a row along the ship's length with no hierarchy, sockets or attach empties; each node sits at the part's own pivot: the centre for Core/Engine/Thruster/Plasma/Weapon, the root edge for Wing/Fin/Tail, which are modelled standing up (+Z) and need a roll to mount sideways. The import cancels each node's offset, so every part is about its own pivot. Module meshes are recreated (delete + rename) on each run; fighters, textures and materials are re-imported in place.
    • Textures/T_StarSparrow_*: one shared 2048 atlas set. Colour variants (Black, Blue, Cyan, Green, Grey, Orange, Purple, Red, White, Yellow), Neutral and Emission are sRGB; Normal uses normal-map compression; Metallic, Glossiness, Roughness, Specular and Mask1..4 are linear (TC_Masks, sRGB off). The pack's Roughness map is exactly 1 - Glossiness; the material uses the glossiness one.
    • Materials/M_StarSparrow: master material. Parameters: BaseColor (painted variant), Neutral, Mask1..4, Tint1..4, static switch UseLivery, Metallic, Glossiness (roughness = 1 - glossiness), Normal, Emission, EmissiveIntensity. With UseLivery on, base colour = Neutral x lerp(1, Tint_i, Mask_i) for i = 1..4: the masks split the atlas into main hull (Mask1, ~49 %), dark trim (Mask2, ~29 %), light panels (Mask3, ~14 %) and accent lights (Mask4, ~0.1 %), and Neutral times per-mask tints reproduces every painted variant to within about 1-2 % (the fitted tints are in the script).
    • Materials/MI_StarSparrow_<Colour>: one instance per supplied colour (painted texture, with the fitted tints stored too), and MI_StarSparrow_Livery: UseLivery on, the template for faction colours. Every mesh gets MI_StarSparrow_Grey by default.
    • Materials/M_StarSparrowShip (US-T110): the material the game draws the kit with. The game has no Unreal lights (every SpaceGodRender material is unlit and lights itself from the star(s) in MPC_SpaceGod), so this is the pack's atlas in the game's terms: Neutral times Tint1..4 inside the masks, the pack's normal, metallic, glossiness and emission maps, lit by the star(s) as M_Ship is, then SG_Expose3. _Tint, _Highlight and _EngineGlow take ShipView's property block. Rebuild just this material with tools/import-starsparrow.ps1 -MaterialOnly (no zip needed once the textures are imported).

Ships built from the kit (US-T110)

When the pack is imported, every ship is drawn from it (Cpp/Source/SpaceGod/Rendering/StarSparrowKit.cpp): a recipe per hull class names parts with a place, a size and a turn in the game's model frame (one unit long, nose +Z, beam about 0.2), scaled non-uniformly where that reads well. Fighters, interceptors, recon craft, couriers and the local traffic (taxi, skiff, runabout, tourer) are the pack's prebuilt fighters with their span narrowed; everything else is assembled from the eight modules, its engines on its class's Engine hardpoints so the glows sit in the bells. Warships still come in a stern and a bow split at SplitZ; gun turrets are kit parts too (a pod barbette and Weapon barrels), on the same mounts. Each faction gets a livery from its colour (StarSparrowKit::Livery): navies steel washed in their colour, pirates soot-black with the clan's colour on the trim and red lights, civilians white with a stripe.

Pass 2 (US-T117): a warship is no longer one Core module stretched half a hull long (a stretched fighter) but a short Core prow turned over, an armoured run of Plasma plates behind it (laid as two runs meeting at SplitZ, so the stern and bow keep their own plates when it breaks), stepped superstructure, and a bridge: the Core at the kit's own proportions standing on the top deck. The tugs carry real claws (a shoulder pod, an arm out to a knuckle, a jaw curling back in: three long ones on the capture tug, four short ones on the ore tug), the lane tender's service ring is closed (sixteen beam segments with four Engine nodes on four booms), and missile, hive, interceptor, rocket and torpedo launchers and shield emitters are kit parts in the hull's livery instead of the white procedural ones (only with the kit's hulls; under Ultimate Spaceships Creator's they stay procedural). The lineup's key and fill are brighter.

Without the pack (a fresh clone), in a headless run (-nullrhi, which cannot draw imported meshes), or with -NoStarSparrow, StarSparrowKit::Available() is false and the game draws the procedural hulls and Kenney craft exactly as before. -SpaceGodShipLineup=<dir> on the game's command line (it quits when done), or the console command SpaceGod.ShipLineup <dir>, screenshots contact sheets of the kit's parts and of every class in every livery, drawn by a camera of its own as the model viewer is (Rendering/ShipLineup.cpp).

Ultimate Spaceships Creator (Ebal Studios, US-T142)

  • Source: Ebal Studios' "Ultimate Spaceships Creator" (Fab listing e2e41618-a3e0-440b-be4b-78b01a1cd42f), bought by the owner. The Fab download is Blender only (.blend files saved by Blender 4.2, which Blender 3.3 cannot open); the import uses the separate FBX download, usc_fbx.zip (1.3 GB): 18 sets (AstroEagle ... VoidWhale) of prebuilt ships plus a <Set>Modules.fbx each, and each set's Textures/ (the unified colours Red, Green, Blue, Purple, Grey and White, extra colours of its own, normal, metallic, roughness or glossiness, emission, and masks). The store licence applies: no redistribution of the source assets.
  • Re-import: close any editor that has the project open, then
    tools/import-usc.ps1 -Zip <path>\usc_fbx.zip   # -Blender <blender.exe> if it is not under Program Files

    (-Zip defaults to %USERPROFILE%\Downloads\usc_fbx.zip). It extracts the zip into Cpp/SourceArt/ThirdParty/USC/USC_FBX/ if that is not there yet, runs tools/usc_prepare.py in Blender (3.3 or later, FBX in and out only) to cut the ships the game uses into pieces in Cpp/SourceArt/ThirdParty/USC/Pieces/, then tools/import_usc.py headless (UnrealEditor-Cmd -run=pythonscript). Re-running is safe; -SkipPrepare re-imports the pieces already cut. Both scripts log USC: SUMMARY and every failure.
  • The Blender step: the pack's FBX ships are one mesh each, or two for Galactic Leopard and Void Whale (Main and Parts, each painted from its own texture atlas), with no material slots. For every ship in MODELS (kept in step with Rendering/UscKit.cpp) it writes each mesh centred on the whole ship's box, nose -Y and up +Z in Blender, as SM_USC_<Model>_<Main|Parts|Hull>_Whole.fbx; a warship (battleship, carrier, gate breaker, cruiser, command cruiser, destroyer, frigate, corvette) is cut across its length at ShipMeshFactory::SplitZ (6 % of its length aft of the middle), the cut capped, as ..._Bow.fbx and ..._Stern.fbx, so the two meet exactly and a destroyed ship breaks in two. The modules the game bolts on (Galactic Leopard's turret, gun, thruster and cargo, Void Whale's turret base, cannon, laser and thruster, a few more for later use) are written centred on their own boxes as SM_USC_Mod_<Set><Part>.fbx.
  • Result (/Game/ThirdParty/USC):
    • Meshes/SM_USC_*: those pieces (no collision). Hull pieces are Nanite (US-T802), their fallback mesh kept at every triangle so LOD0 stays the whole hull where Nanite is off and for merged designs (ImportedGeometry reads it); the SM_USC_Mod_* modules stay plain meshes. CPU access kept (US-T1003), so HullLighting::ExtremesOf and ImportedGeometry can read it in a packaged build, not just the editor. LODs: the script asks StaticMeshEditorSubsystem for two reduced LODs (50 % and 20 %) and logs whether the commandlet had it; when it does not, the area streaming's detail rings (US-T133) carry the load, as they do for every other hull.
    • Textures/T_USC_<Atlas>_<Map>: per atlas (GalacticLeopard_Main, GalacticLeopard_Parts, VoidWhale_Main, VoidWhale_Parts, StriderOx, NightAye, HyperFalcon, ForceBadger) the unified colours (and Black where the set has it), normal, metallic, roughness (or glossiness) and emission, at 2048 at most.
    • Materials/M_USCShip: the in-game material, the pack's maps in the game's terms (unlit, lit from the star(s) in MPC_SpaceGod as M_StarSparrowShip is, then SG_Expose3): the painted colour times Tint (the faction's wash) and _Tint, _Highlight, _EngineGlow from ShipView's property block. Materials/MI_USC_<Atlas>_<Colour>: one instance per atlas and colour.

Ships built from the pack (US-T142)

When the pack is imported every hull is drawn from it (Cpp/Source/SpaceGod/Rendering/UscKit.cpp) ahead of the Star Sparrow kit: each class flies one of the pack's prebuilt ships, scaled to the game's model frame with its own proportions. The navies' warships are Galactic Leopard capitals and the pirates' Void Whale ones; the work hulls (miner, ore and capture tugs) are Void Whale, the lane tender, gate picket, explorer and truss freighter Galactic Leopard; fighters, interceptors, recon craft and couriers are Hyper Falcon, bombers Night Aye, gunships and assault shuttles Strider Ox, and the local traffic Force Badger. Warships come in the bow and stern pieces; a thruster bell from the pack goes on every Engine hardpoint (the glows sit in it); gun turrets are the pack's turret and barrel modules on the same mounts; a truss freighter carries the pack's cargo modules, as many as its load. A livery is one of the unified colours (UscKit::ColourOf): a navy the one nearest its own colour's hue, pirates Black (Red where a set has no black), civilians White, each with a light wash of the faction's colour.

Hooks for what comes next: every hull piece is its own GameObject (Hull:<Atlas>:<Section>) and every module Module:<Name> under the section it is in (per-module sectional destruction, US-T91); UscKit::Extent is the hull's real box in the model frame (shield arrays, US-T102); UscKit::ModelOf and UscKit::Turret are where a refit or the Mechlab (US-T89) would choose another hull or gun.

Every hardpoint skinned (US-T1000)

The pack has eight modules (turret base, gun, thruster, cargo; pirate base, cannon, laser, thruster), so every other hardpoint is fitted from them too (UscKit::Turret), sized to the procedural part's footprint:

Hardpoint Kit fitting
Lasers, plasma, flak, point defence, vulcan, automated turret turret base and barrels (traversing)
Missile, hive, interceptor, EMP, mine, countermeasure, boarding-pod launchers, slung torpedo a cargo module as the armoured launcher housing
Torpedo tube, antimatter launcher cargo housing and a gun module as the tube
Rocket pod a thruster module turned muzzle forward
Autocannon, fighter guns, light railgun a low turret base and one gun barrel, fixed
Hull-mounted railgun, coilgun, tachyon lance a cargo capacitor block and a long gun barrel
Drill a gun module as the drill shaft
Phaser array a long low cargo strip
Shield generator, nanite foundry a turret base, with the procedural emitter disc or vents lit on top
Bridge a cargo block, with the procedural mast and lit window strip
Radiator a cargo module flattened into the panel

A hangar stays its procedural lit bay door, and a spinal gun (laid the length of the keel) its procedural trunk.

The order is USC, then Star Sparrow, then procedural: without USC (or with -NoUSC) the Star Sparrow kit draws them, without that too (or headless) the procedural hulls. -SpaceGodShipLineup=<dir> adds a usc-models sheet of every model the classes use.

The combat loop's hulls (US-T913)

What each class the Fly-this combat loop shows draws (UscKit::PickOf; the navy model, then the pirates'). Every one is one of the pack's prebuilt example ships, none an assembled design (DesignMeshes draws only sg.Assemble's designs) and none procedural while the pack is there, so nothing was swapped; the gap was the package, which cooked none of /Game/ThirdParty and so drew every hull from ShipMeshFactory until US-T913 added the pack folders to the cook. Meshes are /Game/ThirdParty/USC/Meshes/SM_USC_<Model>_<Piece>_<Section>, Piece Main and Parts for the two-atlas sets and Hull for the rest, Section Bow and Stern for warships and Whole otherwise. The picks are fixed per class (and faction), so the choice spends no random draw and the bench digests do not move; the meshes keep the pack's nose along native +Y that HullMaterial's keel axis (US-T850) reads, and ScaleModel::TrueLengthM (US-T715) still sets their length.

Class Model (navy / pirate) Why
Fighter HyperFalcon07 / HyperFalcon10 (..._Hull_Whole) Hyper Falcon is the pack's light single-seat fighter set: the balanced space superiority fighter
Interceptor HyperFalcon17 / HyperFalcon08 another Hyper Falcon, so it reads as a light fighter, distinct from the fighter's model
Heavy fighter (Gunship) StriderOx14 / StriderOx10 Strider Ox is the pack's bulkier small-craft set: the armoured multi-crew gunship
Carrier GalacticLeopard44 / VoidWhale10 (..._Main_Bow, _Stern, _Parts_...) Galactic Leopard (navies) and Void Whale (pirates) are the pack's capital sets; one model per capital class, kept from US-T142
Destroyer GalacticLeopard43 / VoidWhale16 as the carrier: the set's model kept for this class since US-T142
Cruiser GalacticLeopard41 / VoidWhale8 as the carrier
Battleship GalacticLeopard31 / VoidWhale30 as the carrier
Freighter (truss) GalacticLeopard11 (..._Whole), navy only the hauler every non-warship class falls to; it carries the pack's cargo modules, as many as its load

Without the USC import the same classes fall back to the Star Sparrow kit's recipe per class (StarSparrowKit, an assembly of that pack's parts), and without that to the procedural hulls; that order is unchanged.

Sectional damage (US-T91)

Ships come apart section by section. The structure is the simulation core's (Combat/ModularHull): every hull is cut into keel sections (bow, midsections, engineering) with sponsons for mounts set out past its beam, each with its own structure points, held together by joints. Every shot that gets through shields and armour (Battle::StrikeSections) and every collision (SectionColliders::StrikeStructure) lands on the section it struck and loads the joints round it; a section whose structure is gone shatters, and whatever is no longer held to the root (the section with the bridge) breaks off independently: its hardpoints go with it and the hull loses its share of points (never killing it by itself). It is all in the deterministic core, saved with the ship, and a destroyed hull's wreck scatters into the same pieces for salvage. On screen, a piece tearing off is FxKind::SectionLost (a flash, then the piece tumbling away, burning, BattleFx::DrawSectionLost), and once every keel section on one side of the model's bow/stern cut has gone, that half of the drawn hull drifts off and is gone (ShipView::UpdateLostSections).

Evaluation of a Fab modular destruction asset: none is needed. Unreal's own Chaos destruction (Geometry Collections) and the destruction packs on Fab fracture meshes in the physics engine, which is neither deterministic across machines nor visible to the simulation, so it could not drive what a ship loses, its salvage or a co-op/rewind replay. The destruction stays in the core, and the art it needs is already here: Ultimate Spaceships Creator ships come as bow and stern pieces with their modules as separate Module:<Name> objects, enough to show a half torn away and its guns gone with it. A finer visual split (a mesh cut per keel section) would be a change to tools/usc_prepare.py's cut, not a new asset.

Space Station Creator Remastered (Ebal Studios, US-T143)

  • Source: Ebal Studios' "Space Station Creator Remastered", bought by the owner; the import uses its FBX download, spacestationscreator_fbx.zip (300 MB): four sets (Bridge, Cylinderical, Hangars, Storage) of 20 stations each with a <Set>Modules.fbx, 30 Combined stations mixing all four, and Textures/<Set>/ (Red, Green, Blue, Purple, Grey, White, Brown, Silver, normal, metallic, roughness or glossiness, emission, masks). The store licence applies: no redistribution.
  • Re-import: tools/import-ssc.ps1 -Zip <path>\spacestationscreator_fbx.zip (default %USERPROFILE%\Downloads\spacestationscreator_fbx.zip). The same pipeline as USC: the zip into Cpp/SourceArt/ThirdParty/SSC/, tools/usc_prepare.py ... ssc in Blender (the stations in SSC_MODELS, whole, centred, a piece per atlas; the Hangars girders and hangars as modules), then tools/import_usc.py with USC_PACK=ssc into /Game/ThirdParty/SSC (SM_SSC_*, T_SSC_*, M_SSCStation, MI_SSC_<Atlas>_<Colour>). Station pieces are Nanite with a full-detail fallback, as USC's hulls are (US-T802); SM_SSC_Mod_* stay plain. CPU access kept too (US-T1003, the same import_usc.py pipeline).
  • Drawn (Cpp/Source/SpaceGod/Rendering/SscKit.cpp), ahead of the procedural models:
    US-T149 (the owner: "use the prebuilt ships and space stations first before you invent your own"): every station role is one of the pack's complete prebuilt stations, used whole and one per role; nothing is assembled from its parts. The ships already follow it: each hull class flies one of USC's complete prebuilt example ships, the pack's modules only bolted on where the game needs a part of its own (thruster bells on Engine hardpoints, turrets on gun mounts, the truss freighter's cargo).
    A station is painted in one of the pack's colours (a navy's nearest hue, civilians White, pirates Brown, unowned Grey) with a light wash of its owner's colour. Without the pack, headless, or with -NoSSC, every station is procedural as before. The lineup adds ssc-stations and ssc-archetypes sheets.
    • orbital structures (Views/StructureViews.cpp): factories on the Storage complexes (by industry), depots on the tank farm, habitats on the wheel and gateways on the gyroscope ring (both turning about +Z as before); shipyards keep their slip and the ISS and Tiangong their real shapes;
    • free-flying stations (Rigil Gate, Toliman Forge, Blackhollow: BodyKind::Station): one of the big Combined complexes, by name (Views/BodyView.cpp);
    • Void Stations (US-T149): the pack's largest prebuilt station, Combined20, whole, in place of the procedural Dyson-sphere generator (VoidStationModel and its core, rings and glow are now only the fallback without the pack);
    • the megastructure (US-T130's void site, US-T149): the next grandest prebuilt complex, Combined28, whole;
    • derelict stations (US-T131): SscKit::Derelict(parent, seed, size, into) draws one of three prebuilt complexes no working station uses (Combined16, Combined24, Combined10) darkened and lightless with a module torn off and tumbling beside it, and SscKit::Station(..., Condition::Derelict) any station so; the void-content work places them (GraveyardView), this only draws them.

Loop stations (US-T915)

Every station a mission or battle in the loop shows is one of the pack's complete prebuilt stations, as it ships; selection is by kind (or by name for free-flying bodies), deterministic, and render-only (the bench digests do not move). Without the pack, headless or with -NoSSC the procedural mesh is the fallback. /Game/ThirdParty/SSC is in DirectoriesToAlwaysCook (Cpp/Config/DefaultGame.ini, about 243 MB), as USC and Star Sparrow are, so packages carry them.

Station kind SSC asset (/Game/ThirdParty/SSC/Meshes/SM_SSC_<Model>_<Atlas>_Whole) Why
Factory (by industry) Storage01, Storage04, Storage11, Combined21 industrial blocks suit works
Depot Storage18 the tank farm
Habitat Cylinderical12 (ring on +Z) the wheel
Gateway Cylinderical18 (ring on +Z) the gyroscope ring
Shipyard Combined16 (US-T915, was the procedural frame; the build slip and ribs stay) a big complex with hangars to build in
Defence platform in a battle Combined10 (US-T915, was the procedural gun-core ring; UnitySpaceApp::UpdatePlatforms) a compact armed complex, scaled to the platform's true length
Free-flying station Combined30, Combined08, Combined01 by name
Void Station / megastructure Combined20 / Combined28 the grandest
Derelict Combined16, Combined24, Combined10, darkened shares two with the shipyard and platform, told apart by the darkening and the torn module

The ISS and Tiangong (CrewedStation) keep their real shapes: they are real stations, not SSC's.

The kit part catalogue (US-T763)

Data/ModularParts.json indexes every modular part of the three kits: the parts of each *Modules.fbx (USC's 18 sets, Star Sparrow's 8 parts, Space Station Creator's 4 sets), 298 in all. It holds names and numbers only, nothing of the art, so it is committed; it is the catalogue the seeded hull assembler (US-T765) picks from. Rebuild it on a machine with the packs extracted with tools/index-kit-parts.ps1 or the console command sg.IndexKitParts [blender=<exe>] (both run tools/index_kit_parts.py in Blender 3.3+, the command as a hidden low-priority child process).

Per part: id (<pack>/<set>/<name>), family (the set), role, tags, node and file (where it is in the pack), atlas (the texture atlas that paints it), tris, min/max and sockets; asset and assetOrigin when an import script already brings it in (USC's bolted-on modules about their box middle, Star Sparrow's modules about their pivot). Every number is in the game's model frame (nose +Z, up +Y, +X starboard) in the pack's metres, relative to the part's own pivot, which is where the pack's own creator attaches it (an antenna's foot, a wing's root).

  • Roles: core (hull sections, holds, superstructure, tagged bridge), bow (cockpits, noses, canopies), stern, engine (pod or nozzle), wing (fin, flat or vertical, paired when both sides are one mesh across the pivot), turret (mount, barrel, missile), hangar, antenna (dish, sensor, solar, mast), armour, plus connector (trusses, arms, pylons, pipes, joints) and detail (greebles). By name, in priority order, from the rules in the script. Style tags: the pack, fighter/capital/station, and the role's own.
  • Sockets: a face where a neighbour mates, at the middle of the part's own vertices on that face of its box (so a tapered nose or offset flange is exact), with the face's outward normal and the patch's extent. Hull-like parts have fore, aft, top, bottom, port, starboard; engines mount (fore) and exhaust (aft) and the four sides; one-sided wings root (the edge nearest the pivot) and tip, plus fore/aft; barrels breech (the end nearest the pivot) and muzzle, along their longest extent; turret mounts base and top; antennas base and tip. Two parts mate by turning one socket's normal onto the reverse of the other's and bringing their positions together.

The seeded hull assembler (US-T765). SpaceGodCore/Assembly/ModularAssembler (no engine types) reads the catalogue (KitCatalogue::Load) and turns a ship class, a seed and a FactionStyle (packs, kit sets, imported meshes only, and 0..1 weights for length, wings, armament and variety; US-T770's faction profiles fill it) into a ModularDesign: one kit set picked for the class's scale, a spine of core sections fore to aft (one or two on small craft, two to six on capitals by length, one or two hangar sections in it on a carrier), a bow on the first section's fore socket, a stern and then one to four engines on the aft-most, wings in mirrored pairs on the sections' starboard faces, a fin on a small craft, a gun pair under its nose, turrets along a capital's top and a bridge tower over it. Each part mates by its sockets, a section scaled so its socket matches the one it mates to, an attachment as a share of its parent; the port copies are reflections of the starboard parts. The whole is then scaled to the class's true length (ScaleModel::TrueLengthM, docs/TrueScale.md) and centred on its box. The same class, seed and style always give the same hull (its own SplitMix64, nothing from the library). sg.Assemble <class> <seed> [family=<kit set>] [pack=<pack>] [imported] shows the design in the model viewer: imported parts as their own meshes, the rest as boxes of their bounds.

Lighting the prebuilt hulls (US-T172)

M_USCShip, M_SSCStation and M_StarSparrowShip are self-lit (Unlit materials lighting themselves from the star in MPC_SpaceGod, as every SpaceGodRender shader does): no shadows, no light from the sky, a Blinn highlight and a flat night-side fill. That path was chosen to port Unity.SpaceGod's hand-written shaders pixel for pixel, with the game's own exposure (SG_Expose) and no Unreal lights at all; a point light could not span the system anyway (a hull is a millimetre across at the realistic scale and the star 1e13 uu away). It is why the hulls looked flat.

Each import now also builds a lit set beside the self-lit one (USC_LIT_ONLY=1 / STARSPARROW_LIT_ONLY=1 rebuild just these from the textures already imported): M_USCShipLit and MI_USC_<Atlas>_<Colour>_Lit, M_SSCStationLit and MI_SSC_<Atlas>_<Colour>_Lit, M_StarSparrowShipLit. They are Unreal's Default Lit PBR on the packs' own maps (base colour times the liveries, metallic, roughness or 1 - glossiness, the normal map with its green flipped), with an emissive of the pack's windows and panel lights (brighter than before, so they bloom), ShipView's highlight, a faint cool fresnel rim and a small ambient floor, through SG_Expose3. Their metallic is scaled by MetallicScale (0.7): the packs' metals were authored under Unity's skybox reflections, and a full metal in black space has no diffuse at all. The kits pick the _Lit asset when it is there.

Rendering/HullLighting lights them with real Unreal lights that work at any scale:

  • the star as a movable directional key light (no range to run out of), Lambert-matched to the old shaders (pi lux for a star of 1), with cascaded shadows whose distance is refitted every frame to the lit hulls big enough on screen to matter (so a millimetre fighter and a 2 km carrier both self-shadow) and screen-space contact shadows; a world between the camera and the star eclipses it, with a penumbra;
  • the companion star, or US-T132's fill from the sky's bright heart, as an unshadowed far point light (1000 km out, no inverse-square falloff, re-placed round the camera each frame): the forward renderer shades only one directional light, and a second competes with it (Unreal's on-screen Multiple directional lights are competing warning) and is dropped, so the star is the only one;
  • a sky light captured from the sky alone (SkyDistanceThreshold 1e13 uu: the sky and stars drawn at 1e15, never a world or a star's face), recaptured on a new place and every 8 s, so the shadow side takes the nebula's colour;
  • planetshine: a second far point light from the world that bounces the most (its colour, its apparent size, the share of its lit face the camera sees);
  • nav lights on every prebuilt hull, on its own extremes (read from the mesh's CPU vertex positions, which editor builds keep): red port, green starboard, a white strobe on top, a white stern light, a red beacon underneath hulls over 150 m; never smaller than a couple of pixels;
  • lamps: spotlights on the four small craft nearest the camera and a point light at each of a Void Station's Embers (US-T150), lighting the station in the Ember's colour.

The thumbnails' and lineup's fixed light (RenderBackend::OverrideLighting, US-T116) drives the key and fill while it holds, with the sky, planetshine and lamps off. -LegacyHullLighting (or sg.HullLighting 0 before the first hull) keeps the self-lit path; sg.HullLighting.Key/Fill/Sky/Planetshine/Lamps/Shadows/NavLights tune it; sg.Lighting reports it and sg.Lighting shots <dir> shoots and times its five scenes at both scales (each shot waits for the shader compiles to drain, or a lit material first drawn from the editor binaries is the default grey).

Measured (editor binaries, 1600 x 900, vsync-capped at 16.7 ms, the GPU's own time per frame, game / realistic scale; -LegacyHullLighting the before): fighter 4.6 / 7.0 ms before, 3.7 / 5.1 after; Battle of Io 3.3 / 6.3 and 4.4 / 5.0; SSC station 5.7 / 7.0 and 4.0 / 7.2; night side 4.8 / 6.8 and 3.6 / 6.6; Void Station 9.6 / 9.2 and 9.6 / 10.2. The lit path costs nothing measurable here: the run-to-run spread on a shared GPU is wider than any difference.

Alien Space Nebula 1 (Skybox), by Jungle Jim (US-T145)

The one third-party piece that is committed: its licence allows redistribution with credit.

  • Source: "Alien Space Nebula 1 (Skybox)" by Jungle Jim (sketchfab.com/jungle_jim), sketchfab.com/3d-models/alien-space-nebula-1-skybox-4a4e7aec37c04320a09ac4c7434b8810. The FBX download (a 960-triangle sky sphere) carries textures/alien-space-nebula_7680x3840.png, a 7680 x 3840 (2:1) equirectangular painting: a violet, teal and gold nebula round a white-hot core, dust lanes, filaments and a dense star field. Only the texture is used (any sphere at infinity draws it the same).
  • Licence: CC BY 4.0 (creativecommons.org/licenses/by/4.0): use, change and redistribute, commercially too, with credit. Credit line, also on the sky in game (Settings and the Shift+K toast name it, and the manual's "The sky"): "Alien Space Nebula 1 (Skybox)" by Jungle Jim, CC BY 4.0. We use it changed: stretched to 8192 x 4096 and, in the painted-volume mode, projected into a 3D volume.
  • Imported with Shared/Plugins/SpaceGodRender/Content/Python/spacegod_import_hero_sky.py (set SPACEGOD_SKY_PNG to the PNG; run headless with -run=pythonscript) to Shared/Plugins/SpaceGodRender/Content/Resources/Skyboxes/jungle_jim_alien_space_nebula_8k.uasset: sRGB, default compression, stretched to a power of two for the whole mip chain, never streamed, wrap U / clamp V.
  • Drawn (Cpp/Source/SpaceGod/Views/SkyLayers.cpp): the hero system's sky (the first violet-storm system beyond Sol), as a sky sphere (sg.SkyMode sphere) and as a painted volume (sg.SkyMode volume, the default); its core's direction (longitude -3.16, latitude +1.05 degrees in its frame) is where the hero system's fill light comes from.

Walking mech: Animated Mech Pack, by Quaternius (US-T83)

Committed: CC0 allows anything, and the mech is drawn from code, not from imported assets.

  • Source: Quaternius's "Animated Mech Pack" (March 2021), George.blend + George_Texture.png, from opengameart.org/content/animated-mech-pack (animated_mech_pack_-_march_2021.zip, downloaded 2026-11-04 without a login for MindAttic's Unreal.Soulslike, UNR-T68). That repo's tools/convert_mech.py (Blender 4.4+) posed the arms as gun arms, added an autocannon barrel under each forearm and a missile pod on each shoulder (UV'd onto the pack's own texture), and cut the skinned model into 13 rigid parts about their joints (pelvis, torso, canopy, two arms; per leg thigh, shin, metatarsal, foot).
  • Licence: CC0 1.0 (creativecommons.org/publicdomain/zero/1.0), the pack's own License.txt (copied beside the parts). No attribution required; credited anyway (Core/Credits.cpp).
  • Copied into Cpp/SourceArt/Mech/: the 13 SM_Mech_<Part>.obj, Mech_Texture.png, mech_rig.json (the joints) and License.txt. Nothing reads the sibling repo.
  • Baked by tools/bake_mech.py into Cpp/Source/SpaceGod/Rendering/MechMeshData.inl (generated: positions, normals and a palette colour per corner sampled from the texture), which Views/MechView.cpp builds meshes from at run time under the procedural ship material (vertex colours); nothing under Cpp/Content. Re-run the script after changing the OBJs.

Sound (US-T240)

No third-party sound is used. Every sound SpaceGod plays is synthesized in code at run time (Cpp/Source/SpaceGod/Audio/SynthSound.cpp: tones, pitch sweeps and filtered noise with simple envelopes), so there is no recording, no licence and nothing to import under Cpp/Content. The audio layer (Cpp/Source/SpaceGod/Audio/GameAudio.cpp) plays them through Unreal's audio engine on the Music, Effects, Interface and Ambience buses. A recorded sound added later must be CC0 or the team's own, and is listed here with its source and licence and in Core/Credits.cpp.

Part of SpaceGod.Game.
From SpaceGod.Game/docs/ThirdPartyArt.md via MindAttic.Docs; synced automatically, so edit the repo, not this page.