[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/diy/ - Do It Yourself

Search:


View post   

>> No.1348637 [View]
File: 223 KB, 807x767, tubgirl.png [View same] [iqdb] [saucenao] [google]
1348637

>>1348558
Where do i upload it?
2MB of zip

>>1348623
Not always so simple, a lot of these 3d model sites roll their own flavor of file formats and/or viewer. While it might contain a three.js binary, it could be encoded in some way that the original three.js implementation cant handle. Ive seen systems where the raw data was encoded with a password, and the password is generated in some obfuscated garbage js code on the client side.
In this case we got lucky and its just vertex and face index data.

>>1348625
Sometimes that works, often times the files are junk, like i explained above and you have to dig in the javascript.
Ive been fucking with sketchfab to get to their models for a month now, and im at a point where i can get everything. Not sure how big of a trouble id be in if id shared the code on github tho.

Also a lot of times a trained eye can tell whats going on in the raw file and "You get used to it, I don't even see the code, All I see is blond, brunette"
This time it was easy, some header and probably payload sizes, a big block of data with a little pattern lines ending with A and B, that tells me that the numbers are in the same range, the model is not huge. If the model were huge the patter woudl be a little more random.
Then the pattern changes to a more easily recognizable pattern. At the pattern change the new block starts with 00 00 00 00 01 00 00 00 02 00 00 00 03 00 00 00 04 00 00 00 05 00 00 00 05 00 00 00 04 ... which are face indices.
After this its just a couple of lines of code to spit out an stl file.

Navigation
View posts[+24][+48][+96]