Object Tool (or XRay Export Tool)

  • Program Developers:
    • RedPandaProject (BearIvan and other) (Original Authors)
    • ValeroK
  • The version described in the article: 4.35
  • Ap-pro forum topic

About

Tool for fast editing and exporting raw stalker formats

object-tool

Features

  • Uncompressed ogf export (HQ Geometry+)
  • Removed the limit on the maximum number of vertexes in 65535
  • HQ Geometry with patches, exports better than SDK
  • Save and load .bones settings
  • Load, save, delete .skls animations
  • Export animations in 8 bit, 16 bit and uncompressed
  • Optimization of meshes with the same textures and shaders is disabled by default (they will not merge into one when exported so you can edit them in the OGF Editor)
  • Tuning and collision generation
  • Ability to resize models and animations when exporting, keeping the modifier in .object
  • Editing Userdata
  • Editing LOD
  • Editing Motion refs
  • Export models with original normals without X-Ray anti-aliasing groups
  • Generating LOD models
  • Removed the limit on the number of polygons for static meshes
  • Viewport displaying the model with textures
Supported formats
.object
.ogf
.omf
.skl
.skls
.bones
.dm
.obj (wavefront)
.ltx (bone parts)

Functionality

Hotkeys

  • F3 - Export
  • F4 - Load
  • F5, Ctrl+S - Quick Save .object
  • F6 - Save
  • Ctrl+Del - Closing the current process

Buttons

ButtonDescription
LoadImports the selected .object, .skl/.skls, .bones, Bone Parts, Motions Refs, User Data
SaveSave file
Save AsSaves the file as a .object, .skl, .skls, .bones, Bone Parts file
ExportExports the file as an .ogf, .omf, .object, .dm, C++ (All info/ Vertex/ Faces/ Vertex Normals/ Normals), Motions Refs, User Data
DeleteDeletes skls/ Bone parts to default
Batch ConvertFrom ltx/ From File Dialog (To OGF/ To OMF)/ From Folder Dialog (To OGF/ To OMF)
ExitExit program
ButtonDescription
Surface ParamsEnable all 2 sided/Disable all 2 sided
Shape ParamsAll None - All Box - All Sphere - All Cylinder
Generate ShapesGenerates shapes for bones
Generate LODOpen the LOD generation tab
Import Object ParamsImports parameters from another object
Generate LOD

Allows you to adjust the quality of Lod.

CheckboxDescription
Make progressive meshesMake progressive meshes

Outputs information about the loaded object

Outputs useful information about aspects and settings of the program

The default settings menu, where you can set the default values of the parameters, as well as activate additional functions, such as:

CheckboxesDescription
Use No Compress motions (Need STCoP Reader)Activates a new animation compression option, by selecting which animations will be exported without compression. Requires a commit in the engine from STCoP WP
Program debuggingActivates the tab with buttons for debugging
Force Viewport LoadViewport is automatically loaded each time a file is loaded (slows down loading)
FieldDescription
Image path:Folder for generated screenshots from viewport
FS Ltx path:If you select fs.ltx, the program will automatically add all other paths to the gamedata files
Textures path:Texture folder for viewport
Game Mtl path:Path to gamemtl.xr file. After that you can select and apply materials to the bones (Bones tab)
ButtonDescription
ReloadReload viewport
Refresh texturesRefresh textures in viewport
Open Image folderOpen Image folder

Sections

Edit Export Flags
Motion Export
CheckboxesDescription
8 bitCompression animation for the SoC format
16 bitCompression animation for CoP format
Use build-in motionsWhen activated, the program will use the downloaded animations instead of the motion references. If there are no animations, the reference animations will be used, if any. When deactivated, the loaded animations will be ignored. Affects everything except Object saves.
FieldDescription
Object TypeObject Type
Object ScaleChanges the size of the object when exporting, affecting the size of the model and the size of animations
CheckboxesDescription
Scale Center of MassIf you export with a resized object, the collision centers of mass will be recalculated to the new size
Model Export
CheckboxesDescription
HQ Geometry
HQ Geometry +Exports the model without optimization of vertices and faces
Make Progressive MeshesCreates progressive meshes when exporting OGF
Make Stripify MeshesIncludes optimized vertices and faces on meshes (Optimize meshes for old DirectX and video cards)
Optimize SurfacesCombines meshes with the same texture and shader names
SoC bone exportWhen exporting a dynamic OGF, the polygon will be affected by a maximum of 2 bones. When disabled, a CoP influence of 4 bones will be enabled (not supported in SoC).
Smooth Type
CheckboxesDescription
SoCSmoothing type for SoC
CS\CoPSmoothing type for CS/CoP
NormalsUsing the original Split normal, new format
Log

Outputs the program log

Texture Name

FieldDescription
TextureTexture path
ShaderShader path
CheckboxesDescription
2 SidedAfter exporting the .ogf the model will be rendered from the outside and inside. Increases the number of polygons in the model by a factor of 2.
Bone Name: Bone name
CheckboxesDescription
No PickableWhen activated, Ray Querry and hit wallmarks will skip this element
No PhysicsWhen activated, the engine ignores the physics of the shape
Remove After BreakWhen activated, all bones, after spawning an object, will start a timer "remove_time" from the config, after which the object will be removed
No Fog ColliderWhen activated Volumetric Fog will ignore this element
CheckboxesDescription
Shape Type:None - Box - Sphere - Cylinder
FieldDescription
MaterialDetermines the material of the bone on impact/collision, etc. Which affects sound and particles
MassBone mass

Shows the animations that are contained in the file

Shows the Motion Reference that is contained in the file

Shows Used Data file

CheckboxesDescription
LOD PathPath to LOD

Sources

Original Source Code by RedPandaProject (BearIvan and other)

Modified Source Code by ValeroK