November 2, 20241 yr I wanted to know if it is possible to convert this templates to fbx format, I leave you some examples example models.rar
November 2, 20241 yr Supporter Can"t serve with fbx, Tellaporta s4f In hex2obj use File\SaveAs mesh to get an obj file. To convert that to fbx Noesis (by Rich Whitehouse) is a good candidate.
November 2, 20241 yr Supporter from inc_noesis import * import noesis import rapi import os def registerNoesisTypes(): handle = noesis.register("Warhammer 40000 - Sanctus", ".s4f") noesis.setHandlerTypeCheck(handle, noepyCheckType) noesis.setHandlerLoadModel(handle, noepyLoadModel) noesis.logPopup() return 1 def noepyCheckType(data): bs = NoeBitStream(data) if len(data) < 20: return 0 return 1 def noepyLoadModel(data, mdlList): ctx = rapi.rpgCreateContext() bs = NoeBitStream(data) bs.read(1104) numMeshes = bs.readUInt() bs.read(364) Underline = "_" Increment = -1 MeshNum = 0 baseName = rapi.getExtensionlessName(rapi.getLocalFileName(rapi.getInputName())) for i in range(0, numMeshes): bs.read(368) VtxCount = bs.readUInt() IdxCount = bs.readUInt() bs.read(56) VertexBuffer = bs.readBytes(VtxCount * 12) NormalBuffer = bs.readBytes(VtxCount * 36) UVBuffer = bs.readBytes(VtxCount * 8) IndexBuffer = bs.readBytes(IdxCount * 12) IndexEnd = bs.tell() IndexCount = int(IdxCount * 3) Increment += 1 MeshNum = Increment Digformat = "{:04d}".format(MeshNum) rapi.rpgSetName(baseName + Underline + Digformat) rapi.rpgBindPositionBufferOfs(VertexBuffer, noesis.RPGEODATA_FLOAT, 12, 0) rapi.rpgBindUV1BufferOfs(UVBuffer, noesis.RPGEODATA_FLOAT, 8, 0) rapi.rpgBindNormalBufferOfs(NormalBuffer, noesis.RPGEODATA_FLOAT, 36, 0) rapi.rpgCommitTriangles(IndexBuffer, noesis.RPGEODATA_UINT, IndexCount, noesis.RPGEO_TRIANGLE) mdl = rapi.rpgConstructModel() mdlList.append(mdl) return 1
November 7, 20241 yr Author I now have the problem that the templates I am interested in are in archive file which I have no idea how to open it, I opened a discussion to see how I can do it
November 8, 20241 yr Author thank you for creating me the scirpt to open the archive, but unfortunately it can't read the models in it, I always leave the folder with all the models https://www.mediafire.com/file/jxm333pqin09l31/OUTPUT_all_models.rar/file
Create an account or sign in to comment