Can anyone get verts as a point cloud, or face indicies for any of these two files? I was sent them from my chinese friend to look at and I believe they are from webgl, but no extension. I have tried to create a point cloud with hex2obj but I can't find where the verts start exactly. Any help would be appreciated
https://www.mediafire.com/file/xyljf520 ... s.zip/file
Important information: this site is currently scheduled to go offline indefinitely by end of the year.
webgl model
-
- n00b
- Posts: 10
- Joined: Mon Dec 24, 2018 3:19 am
- Has thanked: 15 times
-
- mega-veteran
- Posts: 162
- Joined: Fri Oct 16, 2015 8:05 pm
- Has thanked: 6 times
- Been thanked: 78 times
Re: webgl model
that looks like complications. that's definetely not float data. tried half float or variable integer encodings. the face index (that's kinda easy to spot in hex) is definetely some kind of codificated.
may ask your friend if he got the data in another format. or any url to ninja rip it might be easier then this coded file (for the trashcan).
may ask your friend if he got the data in another format. or any url to ninja rip it might be easier then this coded file (for the trashcan).
- Bigchillghost
- double-veteran
- Posts: 1025
- Joined: Tue Jul 05, 2016 9:37 am
- Has thanked: 31 times
- Been thanked: 1211 times
Re: webgl model
On part decompressed data:
You do not have the required permissions to view the files attached to this post.
May you find peace in this puzzle-solving game.
- An Imitable Workflow for Reverse Engineering a Game Model
- Advanced Mesh Reaper
- Reverse Model Wireframe
-
- n00b
- Posts: 10
- Joined: Mon Dec 24, 2018 3:19 am
- Has thanked: 15 times
Re: webgl model
Wow that is incredible you found that, may I ask how you decompressed it? To me not all of it looks compressed. I kept it shortened otherwise they could patch it much like sketchfab did, and my friend gets sent preview meshes on this site so patching or changing the code would be a hassle. I have never seen advanced mesh reaper before but I must give it a try since it seems to have more options. The other thing I noticed is that part you ripped seems to be facing upwards rather than facing right, does this mean the vertex aren't in the right position right away? And the object is just transformed/rotated into place after the fact? And finally, did you try more than one part? If so, were the counts, start addresses stored in a similar place? Thanks again for your help, you figured it out so quickly
Last edited by modelsarequitenice on Fri Dec 06, 2019 11:20 am, edited 1 time in total.
- Bigchillghost
- double-veteran
- Posts: 1025
- Joined: Tue Jul 05, 2016 9:37 am
- Has thanked: 31 times
- Been thanked: 1211 times
Re: webgl model
The data in the file named "part" is zstd compressed. You'll see the compression & decompression sizes in the header. Didn't bother to check the other file since it's too small for interest.modelsarequitenice wrote: ↑Fri Dec 06, 2019 5:01 am may I ask how you decompressed it? To me not all of it looks compressed.
It was towards the right. I just rotated it for better observation.modelsarequitenice wrote: ↑Fri Dec 06, 2019 5:01 amThe other thing I noticed is that part you ripped seems to be facing upwards rather than facing right, does this mean the vertex aren't in the right position right away? And the object is just transformed/rotated into place after the fact?
There's only one object in the decompressed data of "part". And as said I didn't check the other file, though which doesn't seem to contain compressed data. You'll find the counts in the header of the decompressed stream, that's all I can say.modelsarequitenice wrote: ↑Fri Dec 06, 2019 5:01 am And finally, did you try more than one part? If so, were the counts, start addresses stored in a similar place?
May you find peace in this puzzle-solving game.
- An Imitable Workflow for Reverse Engineering a Game Model
- Advanced Mesh Reaper
- Reverse Model Wireframe
-
- n00b
- Posts: 10
- Joined: Mon Dec 24, 2018 3:19 am
- Has thanked: 15 times
Re: webgl model
Perfect thank you for the explaining, I did notice the zstd earlier when looking at the zenhax tutorial section, it is the latest version. I guess I will have to make some kind of bms script for it
-
- n00b
- Posts: 10
- Joined: Mon Dec 24, 2018 3:19 am
- Has thanked: 15 times
Re: webgl model
One more thing in regards to what you said here. I managed to decompress, however you say the header contains the counts, I found one of the counts (the indices one) And right next to that there is a value similar to the one you put for vertex count but not the same. Maybe it decompressed wrong, or did you only see the indices one? Sorry to bother youBigchillghost wrote: ↑Fri Dec 06, 2019 7:40 am There's only one object in the decompressed data of "part". And as said I didn't check the other file, though which doesn't seem to contain compressed data. You'll find the counts in the header of the decompressed stream, that's all I can say.
- Bigchillghost
- double-veteran
- Posts: 1025
- Joined: Tue Jul 05, 2016 9:37 am
- Has thanked: 31 times
- Been thanked: 1211 times
Re: webgl model
There's no exact vertex count for the mesh, but a sum of the amount of the mesh vertices and the wireframe vertices. So either you calculate the max value of the face indices, or you take the value of the first wire index.modelsarequitenice wrote: ↑Sat Dec 07, 2019 7:31 amAnd right next to that there is a value similar to the one you put for vertex count but not the same. Maybe it decompressed wrong, or did you only see the indices one?
May you find peace in this puzzle-solving game.
- An Imitable Workflow for Reverse Engineering a Game Model
- Advanced Mesh Reaper
- Reverse Model Wireframe