dibe91 Posted November 2, 2024 Share Posted November 2, 2024 I wanted to know if it is possible to convert this templates to fbx format, I leave you some examples example models.rar Link to comment Share on other sites More sharing options...
Engineer shak-otay Posted November 2, 2024 Engineer Share Posted November 2, 2024 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. Link to comment Share on other sites More sharing options...
Engineer h3x3r Posted November 2, 2024 Engineer Share Posted November 2, 2024 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 Link to comment Share on other sites More sharing options...
dibe91 Posted November 3, 2024 Author Share Posted November 3, 2024 I tried the script but it doesn't work Link to comment Share on other sites More sharing options...
Engineer h3x3r Posted November 3, 2024 Engineer Share Posted November 3, 2024 Post the sample which throws this error. Link to comment Share on other sites More sharing options...
dibe91 Posted November 3, 2024 Author Share Posted November 3, 2024 I solved the problem, it was just that I had an old version of noesis Link to comment Share on other sites More sharing options...
dibe91 Posted November 7, 2024 Author Share Posted November 7, 2024 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 Link to comment Share on other sites More sharing options...
dibe91 Posted November 8, 2024 Author Share Posted November 8, 2024 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 Link to comment Share on other sites More sharing options...
Engineer h3x3r Posted November 8, 2024 Engineer Share Posted November 8, 2024 Yeah i know. They have a bit different struct. Working on it. Link to comment Share on other sites More sharing options...
dibe91 Posted November 26, 2024 Author Share Posted November 26, 2024 any news? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now