Miscellaneous Leaks

[Guide] Ripping models from Sketchfab

Submitted by HDR, , Thread ID: 152601

Thread Closed

RE: [Guide] Ripping models from Sketchfab

Soldeerbout
Lurker
Level:
0
Reputation:
0
Posts:
2
Likes:
0
Credits:
2
09-11-2021, 11:36 PM
#273
I have finally been able to obain the file.osgjs, model_file.bin and model_file_wireframe.bin files. But whenever I try to put them in the blender249.blend script, I get this output:
100.0 procent
################################################## Geometry
DrawElementsUInt Uint32Array
Vertex Int32Array
TexCoord0 Int32Array
"TRIANGLE_STRIP" 595
################################################## Geometry
LINES
################################################## Geometry
DrawElementsUInt Uint32Array
Vertex Int32Array
TexCoord0 Int32Array
"TRIANGLE_STRIP" 2470
################################################## Geometry
LINES
################################################## Geometry
DrawElementsUInt Uint32Array
Vertex Int32Array
Traceback (most recent call last):
File "starter.py", line 1767, in openFile
parser=Parser()
File "starter.py", line 1760, in Parser
osgParser(filename)
File "starter.py", line 1704, in osgParser
getNode(ys,Node[0],n,bone)
File "starter.py", line 1647, in getNode
getChildren(ys,child,n,bone)
File "starter.py", line 1611, in getChildren
getMatrixTransform(ys,a,n,boneParent)
File "starter.py", line 1502, in getMatrixTransform
getChildren(ys,child,n,bone)
File "starter.py", line 1611, in getChildren
getMatrixTransform(ys,a,n,boneParent)
File "starter.py", line 1502, in getMatrixTransform
getChildren(ys,child,n,bone)
File "starter.py", line 1611, in getChildren
getMatrixTransform(ys,a,n,boneParent)
File "starter.py", line 1502, in getMatrixTransform
getChildren(ys,child,n,bone)
File "starter.py", line 1613, in getChildren
getNode(ys,a,n,boneParent)
File "starter.py", line 1647, in getNode
getChildren(ys,child,n,bone)
File "starter.py", line 1619, in getChildren
getGeometryNode(ys,a,n,boneParent)
File "starter.py", line 1552, in getGeometryNode
mesh=getGeometry(ys,parent,n)
File "starter.py", line 1409, in getGeometry
vertexArray,texArray=getVertexAttributeList(ys,VertexAttributeList,n)
File "starter.py", line 1089, in getVertexAttributeList
bytes=decodeVarint(g,Offset,Size*ItemSize,type)
File "starter.py", line 234, in decodeVarint
byte = g.B(1)[0]
File "C:\Program Files (x86)\Blender Foundation\Blender\newGameLib\myLibraries\binaresLib.py", line 140, in B
data=struct.unpack(self.endian+n*'B',self.inputFile.read(n))
struct.error: unpack requires a string argument of length 1

Does anyone know what to do? I have already managed to fix the ?IndexError: list index out of range problem, but this is the next thing holding me back...

Users browsing this thread: 6 Guest(s)