Menu
Forums
New posts
Search forums
What's new
New posts
Latest activity
Log in
Register
What's new
Search
Search
Search titles and first posts only
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Help Support The Rugby Forum :
Forums
Other Stuff
Rugby Video Games & Apps
EA Rugby 08
OTools for editing .O and .FSH files
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Dmitri" data-source="post: 1031904" data-attributes="member: 84779"><p>First of all you need to find the model you want to edit.</p><p>All models in Rugby 08 are stored in data/data.gob file. This is a BIGF file archive, it can be opened with .BIG editors.</p><p>Files in data.gob are named with md5-hashes of "real" filenames. So you need to know the exact filename of the file, or make a research and find out what file belongs to what.</p><p>For example, the filename for ball model is "misc/ball/Model.o". MD5 hash for "misc/ball/model" is "9dcf2d14b244db5beabd11a5be704f13". Note that all letters are lower-case, forward slashes are used over backslashes, extension is removed.</p><p>The filename for ball texture is individual for each team, "kit/teams/<Team Logo Name>.ball.fsh". For New Zealand the filename is "kit/teams/nzl.ball.fsh" and MD5 hash is "b303c958f42152f963c921342d15c896".</p><p>When you find model and texture files, put them to some folder.</p><p>Use OTools GUI to extract .O to .GLTF. Add "-dummyTextures" parameter, so the tool will also generate blank PNG images for all textures which are used by the model.</p><p>[ATTACH]10297[/ATTACH]</p><p>Unpack .FSH to .PNG now. Some, or all blank PNGs will be replaced by "real" textures after this.</p><p>[ATTACH]10298[/ATTACH] [ATTACH]10299[/ATTACH]</p><p>Now open .GLTF in Blender: File > Import > GLTF 2.0. It's recommended to use the latest available Blender version.</p><p>The model uses 2 materials (one with bala texture and second with balb texture), both with "IrradLitTexture2x" shader.</p><p>[ATTACH]10300[/ATTACH]</p><p>Now import the new model which will replace the original model.</p><p>For example, download and import this model: sketchfab.com/3d-models/old-rugby-ball-806e841289804bffba1c89757582f0ca (it's recommended to download GLTF, but sometimes the source (usually FBX) has more texture maps included).</p><p>Here's how it looks after you import it:</p><p>[ATTACH]10304[/ATTACH]</p><p>I will delete all nodes hierarchy which is present there, it's not needed. I will also scale, rotate and move the new model, to look similar to old model. After scaling/rotating/moving, apply all transforms to the mesh (select the new model, Ctrl+A, All Transforms).</p><p>[ATTACH]10305[/ATTACH] [ATTACH]10306[/ATTACH] [ATTACH]10307[/ATTACH]</p><p>Now we need to apply the old material, from old model, to our new model. The old model uses 2 materials, the new one uses only one - so I will use the first material of the old model.</p><p>When new model is selected, open materials section and change material to "mat1":</p><p>[ATTACH]10308[/ATTACH] [ATTACH]10309[/ATTACH]</p><p>Now the new model uses the material from old model, and also its texture.</p></blockquote><p></p>
[QUOTE="Dmitri, post: 1031904, member: 84779"] First of all you need to find the model you want to edit. All models in Rugby 08 are stored in data/data.gob file. This is a BIGF file archive, it can be opened with .BIG editors. Files in data.gob are named with md5-hashes of "real" filenames. So you need to know the exact filename of the file, or make a research and find out what file belongs to what. For example, the filename for ball model is "misc/ball/Model.o". MD5 hash for "misc/ball/model" is "9dcf2d14b244db5beabd11a5be704f13". Note that all letters are lower-case, forward slashes are used over backslashes, extension is removed. The filename for ball texture is individual for each team, "kit/teams/<Team Logo Name>.ball.fsh". For New Zealand the filename is "kit/teams/nzl.ball.fsh" and MD5 hash is "b303c958f42152f963c921342d15c896". When you find model and texture files, put them to some folder. Use OTools GUI to extract .O to .GLTF. Add "-dummyTextures" parameter, so the tool will also generate blank PNG images for all textures which are used by the model. [ATTACH alt="1.png"]10297[/ATTACH] Unpack .FSH to .PNG now. Some, or all blank PNGs will be replaced by "real" textures after this. [ATTACH alt="1617005193846.png"]10298[/ATTACH] [ATTACH alt="1617005227682.png"]10299[/ATTACH] Now open .GLTF in Blender: File > Import > GLTF 2.0. It's recommended to use the latest available Blender version. The model uses 2 materials (one with bala texture and second with balb texture), both with "IrradLitTexture2x" shader. [ATTACH alt="1617005425818.png"]10300[/ATTACH] Now import the new model which will replace the original model. For example, download and import this model: sketchfab.com/3d-models/old-rugby-ball-806e841289804bffba1c89757582f0ca (it's recommended to download GLTF, but sometimes the source (usually FBX) has more texture maps included). Here's how it looks after you import it: [ATTACH alt="1617012388288.png"]10304[/ATTACH] I will delete all nodes hierarchy which is present there, it's not needed. I will also scale, rotate and move the new model, to look similar to old model. After scaling/rotating/moving, apply all transforms to the mesh (select the new model, Ctrl+A, All Transforms). [ATTACH alt="1617012487412.png"]10305[/ATTACH] [ATTACH alt="1617012762310.png"]10306[/ATTACH] [ATTACH alt="1617012898550.png"]10307[/ATTACH] Now we need to apply the old material, from old model, to our new model. The old model uses 2 materials, the new one uses only one - so I will use the first material of the old model. When new model is selected, open materials section and change material to "mat1": [ATTACH alt="1617013094899.png"]10308[/ATTACH] [ATTACH alt="1617013144155.png"]10309[/ATTACH] Now the new model uses the material from old model, and also its texture. [/QUOTE]
Verification
Post reply
Forums
Other Stuff
Rugby Video Games & Apps
EA Rugby 08
OTools for editing .O and .FSH files
Top