【技巧学习】如何免费下载和提取Sketchfab的模型

本文仅限学习和交流,请尊重原作者的版权,可通过正规途径购买的模型请勿非法提取,请勿对模型及贴图等数据进行修改、二次分发、商用等违反Sketchfab版权规定及著作权相关法律法规的行为。使用本文提到的方法提取模型产生的一切后果由操作人承担,与本网站及本人无关。

本次所需要的工具 高速下载

  1. 网站数据提取脚本
  2. blender

Sketchfab可以说是国外数一数二的3D模型商店,Unity Store中的部分模型也来自Sketchfab。其采用的WebGL方案也允许用户通过3D方式直接预览商店中的模型,并且可以嵌入到其他网站进行预览,比如这样:

但是也正因为这种方式,给了别人逆向破解的机会。下面我们演示一下如何提取上面的模型。

1.首先把上面提供的工具下载,然后解压里面的Sketchfab_Download_Python_Script.exe(这个文件解压到哪个文件夹,后面生成的数据就会默认在这个文件夹下)

2.然后双击打开Sketchfab_Download_Python_Script.exe,然后会出现让你输入链接(就是上面模型的链接),如下:

input url:https://sketchfab.com/3d-models/the-journey-aad4c32e997f4efc9571294c7e1d0c8c
Parsing…
Model Id: aad4c32e997f4efc9571294c7e1d0c8c
Name: The Journey
Thumbnail URL: https://media.sketchfab.com/models/aad4c32e997f4efc9571294c7e1d0c8c/thumbnails/fed21e16fcfa481d87f07b520dd279a4/4c83d27f39e1446e9febd78bf5defdeb.jpeg
osgjs URL: https://media.sketchfab.com/models/aad4c32e997f4efc9571294c7e1d0c8c/b1b70afe94a8414ea04fc9120c927dec/files/492fea7d9b1e4531b41a0aca9b8555d3/file.osgjs.gz
Model File: https://media.sketchfab.com/models/aad4c32e997f4efc9571294c7e1d0c8c/b1b70afe94a8414ea04fc9120c927dec/files/492fea7d9b1e4531b41a0aca9b8555d3/model_file.bin.gz
Textures: 57
Downloading: The Journey\thumbnail.jpg
Downloading: The Journey\file.osgjs
Downloading: The Journey\model_file.bin.gz
Downloading: The Journey\texture\BackpackBlue_Texture_001.jpg
Downloading: The Journey\texture\Yuka_Texture_001.jpg
Downloading: The Journey\texture\Texture_Carpet_Alternative_001.jpg
Downloading: The Journey\texture\Texture_HiroshiShirt_001.jpg
Downloading: The Journey\texture\Texture_Sticks_001_es_copy.png
Downloading: The Journey\texture\Texture_Ground_001.jpg
Downloading: The Journey\texture\Texture_Sky_001.jpg
Downloading: The Journey\texture\Texture_Scrolls_001_es.jpg
Downloading: The Journey\texture\TurtleShell_Texture_002.jpg
Downloading: The Journey\texture\Texture_Package_001.jpg
Downloading: The Journey\texture\Texture_Shell_001_es.jpg
Downloading: The Journey\texture\Pelt_Texture_001.jpg
Downloading: The Journey\texture\Texture_Tools_001_es.png
Downloading: The Journey\texture\Texture_Banner_001_es.jpg
Downloading: The Journey\texture\Texture_Tools_001_es.jpg
Downloading: The Journey\texture\TurtleBody_Texture_002.jpg
Downloading: The Journey\texture\Texture_Carpet_001.jpg
Downloading: The Journey\texture\Texture_Chest_001.jpg
Downloading: The Journey\texture\BirdFirst_Texture_002.jpg
Downloading: The Journey\texture\Texture_Rocks_001.jpg
Downloading: The Journey\texture\Texture_HiroshiBottom_001.jpg
Downloading: The Journey\texture\Texture_Takuma_001_es.jpg
Downloading: The Journey\texture\SwordBunAndLetters_Texture_001.jpg
Downloading: The Journey\texture\PlantBase_Texture_001.jpg
Downloading: The Journey\texture\Book_Texture_001.jpg
Downloading: The Journey\texture\OrangeBackpack_Texture_001.jpg
Downloading: The Journey\texture\Crystals_Texture_001.jpg
Downloading: The Journey\texture\Texture_Skull_001.jpg
Downloading: The Journey\texture\IzumiClothing_Texture_001.jpg
Downloading: The Journey\texture\Melons_Texture_001.jpg
Downloading: The Journey\texture\Bird02_Texture_001.jpg
Downloading: The Journey\texture\Texture_Potion_001_es.png
Downloading: The Journey\texture\Bird04_Texture_001.jpg
Downloading: The Journey\texture\MoneySack_Texture_small.jpg
Downloading: The Journey\texture\YukaBody_Texture_001.jpg
Downloading: The Journey\texture\BluePot_Texture_001.jpg
Downloading: The Journey\texture\Texture_Seasausage_001.jpg
Downloading: The Journey\texture\GarlicBasket_Texture_002_small.jpg
Downloading: The Journey\texture\Texture_HiroshiHead_001.jpg
Downloading: The Journey\texture\Pans_Texture_001.jpg
Downloading: The Journey\texture\Apples_Texture_001.jpg
Downloading: The Journey\texture\Backpack_Texture_001.jpg
Downloading: The Journey\texture\Texture_Potion_001_es.jpg
Downloading: The Journey\texture\Sign_Texture_001.jpg
Downloading: The Journey\texture\Texture_Hae_001.jpg
Downloading: The Journey\texture\Lantern_Texture_002_small.jpg
Downloading: The Journey\texture\IzumiBody_Texture_001.jpg
Downloading: The Journey\texture\PlantTop_Texture_001.jpg
Downloading: The Journey\texture\Texture_Wheel_001_es.jpg
Downloading: The Journey\texture\Bird03_Texture_001.jpg
Downloading: The Journey\texture\Texture_Barrel_001.jpg
Downloading: The Journey\texture\Texture_Trophy_001.jpg
Downloading: The Journey\texture\PurpleBackpack_Texture_001.jpg
Downloading: The Journey\texture\Clouds.png
Downloading: The Journey\texture\Texture_Sack_001.jpg

注:如果打开Sketchfab_Download_Python_Script.exe后,没有提醒你输入链接的情况,就查一下你电脑有没有装python,没装的话就百度上下载来装。

3.上面因为贴图有些多,所以下载需要一点时间,然后得到如下文件:

agancg_sketchfab_bj

texture文件夹为相关的贴图文件,file.osgjs则是加密后的模型数据。

4.接下来就是用blender和逆向脚本来解密osgjs文件。双击打开blender文件夹中的blender.exe。

在blender窗口中,点击File>Open,选择blender/.blender文件夹下的Blender249.blend,点击Open

agancg_sketchfab_blender1

按下Ctrl+U,以后使用就不必再重复该操作了。

右击左侧的代码区域,点击Execute Script,选择刚刚下载下来的osgjs文件,点击import,稍等片刻就得到了解密后的模型文件:

agancg_sketchfab_bj02

最后,点击File>Export,选择需要的文件格式,选择目的地文件夹,即可导出模型文件。

就这样模型就可以导入其它平台使用了,这里我就不演示了