Miscellaneous Leaks

[Guide] Ripping models from Sketchfab

Submitted by HDR, , Thread ID: 152601

Thread Closed

RE: [Guide] Ripping models from Sketchfab

sar433
Lurker
Level:
0
Reputation:
0
Posts:
2
Likes:
0
Credits:
2
17-03-2021, 10:15 PM
#141
Hi all

I installed Python 2.7 and using Blender 2.49 zip (64). Python and script (blender-osgjs-loader-master)
loads without issue however I am getting the following error after one part of the model is extracted
Any ideas would be appreciated

Thanks


LINES
Traceback (most recent call last):
File "starter.py", line 1770, in openFile
Blender.Window.FileSelector(openFile,'import','file.osgjs')
File "starter.py", line 1763, in Parser
def openFile(flagList):
File "starter.py", line 1745, in osgParser
Animations=ys.get(ys.root,'"osgAnimation.Animationnnnn"')
TypeError: expected matrix object as argument

RE: [Guide] Ripping models from Sketchfab

shinobi_
Newbie
Level:
1
Reputation:
0
Posts:
15
Likes:
1
Credits:
4
19-03-2021, 08:20 PM
This post was last modified: 19-03-2021, 08:23 PM by shinobi_
#142
Hi guys. First post, but long time lurker haha.

So, gave this a go. Encountered the same errors as many but got it to work.
The mesh imported perfectly, but the textures are broken, possibly broken UVs?
Not done any ripping for a looooong time, so might be doing something wrong.

For anyone having issues, heres what i figured out so far:
- On a 64bit machine it only works with 64bit python - one of the links shared to 2.6 x64 in this thread worked perfectly.
- Ripping the files osgjs, model_bin and model_wireframe_bin did not yield proper results without a download manager.
This results in the "File "starter.py" line 1770 in openFIle....." error.
BUT... If you use a download manager, it works fine.
- also, YOU MUST REMOVE .gz extension from the filenames - dont extract, just rename.

Now... The issue im still having is with Ninja Ripper itself...

I can get the textures to download just fine. I have a folder full of textures (DDS format), which ive checked with Noesis and they are correct.
It also ripped a bunch of files called Mesh****.rip....
Importing these to Blender or Max with a plugin, they actually contain the same vertex/triangle/face counts as the osgjs file.
Thing is all the verts are arranged in a perfect diagonal line extending out into the positiveZ/Y axes.

If i apply the materials to the osgjs import, the textures are all backwards, if i apply them to the .rip import, i get 14000 verts in a line, so hard to say if the textures work or not.

Am i missing something or should i just use the osgjs and start creating the UVs from scratch?
Im a little reluctant cuz the model is an environment lmao.

RE: [Guide] Ripping models from Sketchfab

sar433
Lurker
Level:
0
Reputation:
0
Posts:
2
Likes:
0
Credits:
2
19-03-2021, 09:01 PM
#143
Hi Shinobi
I am still getting File "starter.py", line 1770, in openFile error
Using copy url to IDM to dowload osgjs, model_bin and model_wireframe_bin
If i remove the gz extension instead of extracting i get 0.344 procent type error
Sorry to say cant be helpful with regards to ninja ripper. i am just a beginner
Thanks fo any help

RE: [Guide] Ripping models from Sketchfab

shinobi_
Newbie
Level:
1
Reputation:
0
Posts:
15
Likes:
1
Credits:
4
19-03-2021, 09:28 PM
This post was last modified: 19-03-2021, 09:30 PM by shinobi_
#144
Just wanted to update...

I reimported the mesh0000.rip using the same plugin. Applied the material to the osgjs rip, and this time it worked.
Mesh imported correctly and textures are on! IT WORKS!!!

RE: [Guide] Ripping models from Sketchfab

HIffirendds
Lurker
Level:
0
Reputation:
0
Posts:
1
Likes:
0
Credits:
1
19-03-2021, 09:36 PM
This post was last modified: 19-03-2021, 09:37 PM by HIffirendds
#145
Hi, I try to download a file, but python script return error. I was looking to make it work for almost 2 hours, so if somebody could download it for me that would be cool

thank. Sweat

RE: [Guide] Ripping models from Sketchfab

TonyChopper
Lurker
Level:
0
Reputation:
0
Posts:
3
Likes:
0
Credits:
3
21-03-2021, 09:13 PM
This post was last modified: 21-03-2021, 09:16 PM by TonyChopper
#146
19-03-2021, 09:28 PM
shinobi_ Wrote:
Just wanted to update...

I reimported the mesh0000.rip using the same plugin. Applied the material to the osgjs rip, and this time it worked.
Mesh imported correctly and textures are on! IT WORKS!!!

I managed to rip the modelbut I couldn't really get the UV's working correctly. Can you elaborate a bit?

RE: [Guide] Ripping models from Sketchfab

k0les0
Lurker
Level:
0
Reputation:
0
Posts:
1
Likes:
0
Credits:
1
24-03-2021, 08:56 PM
#147
Download the file. osgjs.gz and model_file.bin.gz. pull out of these archives and place the files file.osgjs and model_file.bin next to each other
Open the blender folder and drag "Blender249.blend" on top of "blender.exe", once loaded press Alt+P and navigate to the folder where you saved "file.osgjs" and click import

RE: [Guide] Ripping models from Sketchfab

shinobi_
Newbie
Level:
1
Reputation:
0
Posts:
15
Likes:
1
Credits:
4
26-03-2021, 05:26 PM
This post was last modified: 26-03-2021, 05:27 PM by shinobi_
#148
21-03-2021, 09:13 PM
TonyChopper Wrote:
I managed to rip the modelbut I couldn't really get the UV's working correctly. Can you elaborate a bit?


Sure no problem.

So on my earlier attempts, all the UVs came outup messed up too.

First rip the files from the site using the browser. Rename the files, removing the .gz extension from the end. Install Python 2.6 (64-bit for x64 systems).

Import the osgjsinto Blender 2.49 by dragging the blender249.blend file onto the application. This will import the model data. Save the file as something else.

When you run Ninja Ripper, there are a few options on what exactly you want it to rip. If you hit F9, it will extract only the textures from the model. But if you hit F10 you cando what it calls a Forced rip. This will rip all the data, including models. Just like the DDS textures, you'll end up with a series of randomly named files with filenames like "Mesh0000.rip" (numbers will be different).Among these, one or two of them will be much larger than the rest. One of those will be your mesh data.

You then import the mesh0000.rip and DDS texturefiles into Blender 2.8. When you do, you'll see the vertices will be all messed up. Ignore that, the UVs should be in tact. Just proceed and import the file (the one you just saved out of Blender 2.49, containing your mesh) into the project with it.

Now you'll have a Blender 2.8 project with your mesh.rip, dds textures, and the osgjs file all in one project.
Just drop the DDS textures onto the osgjs mesh. The UVs should line right up.

I presume the reason it works isbecause behind the scenes, the osgjs and mesh.rip contain the exact samedata, but NinjaRipper corrupts the transformssomewhere along the way... OrSketchfab altered their code to prevent peoplelike us, doing stuff like this. :D

RE: [Guide] Ripping models from Sketchfab

yexiuph
Novice
Level:
5
Reputation:
0
Posts:
49
Likes:
0
Credits:
6
29-03-2021, 04:08 PM
#149
Nice free assets!! <3 Thank you soo much this is very nice.

RE: [Guide] Ripping models from Sketchfab

hellomodel
Lurker
Level:
0
Reputation:
0
Posts:
1
Likes:
0
Credits:
1
22-04-2021, 01:39 PM
#150
lately I found another site which can extract Sketchfab models names sketchlib.com

Users browsing this thread: 16 Guest(s)