Newbie
- User ID
- 15491
- Joined:
- Feb 2018
- Reputation:
-
-12
01-10-2019, 06:46 PM
(This post was last modified: 01-11-2019, 01:29 AM by Huggypie.)
Hi, I am trying to develop an alternative program to MeshesSL that will be less buggy as well as having features such as batch SLM to DAE conversion and link separation. I know that the SLM files are stored in the data.db2.x.1 and data.db2.x.1.0 files within the appdata folder for the viewer, but I am not entirely sure how each SLM file is identified.
I would greatly appreciate it if someone could provide me with information regarding SLM identification.
Also, if anyone could tell me how to possibly extract the dae file from SLM files. I have been looking on the SL wiki about SLM file architecture, but it is not very specific.
V.I.P GOD
- User ID
- 15268
- Joined:
- Jan 2018
- Reputation:
-
1,069
Hello, I also would like to learn the details. How SLM files are encoded? Eventually where could I find Mesh Helper or even old MeshesSL sourcecode? Thank you in advance for help! <3
Administrator
- User ID
- 19062
- Joined:
- Aug 2019
- Reputation:
-
1,550
when you add a xml file to MeshesSL it makes always 2 folders
local - appdata- MeshesSL
1 dae folder the other is slm folder
you can open both with notepad ++ to look inside
handy for your info
Don't send Buddy Requests with no reasons
Rules 1-6
[To see links please register here]
V.I.P GOD
- User ID
- 15268
- Joined:
- Jan 2018
- Reputation:
-
1,069
No no, my question is how to get data from SLM file without using MeshesSL - in what way MeshesSL decodes the original SLM asset files that are stored in cache? When I open the cache file with notepadd++ it shows ugly signs - which means it is binary file encoded in special way. I am sure there is some kind of way to read this - like which bytes range corresponds to which float number for example.
And the reason I avoid using meshesSL or Mesh Helper is that they do not accpet standard input - so i can not automate parsing 10 XMLs through the program and instead i have to always manually choose XML one by one.
Administrator
- User ID
- 19062
- Joined:
- Aug 2019
- Reputation:
-
1,550
then google many about slm files on it
Don't send Buddy Requests with no reasons
Rules 1-6
[To see links please register here]
V.I.P GOD
- User ID
- 15268
- Joined:
- Jan 2018
- Reputation:
-
1,069
I couldn't find any answer anywhere so I opened firestorm code and started digging there.
I figured out the binary llsd format and how to read.
I discovered that SLM file is made from decompressed binary llsd header and compressed binary llsd data.
I found problem though with decompression of the data. Having problems understanding how the decompression algorythm works (some weird pointers there doing not fully sure what).
If someone knows how llsd compression works please PM me or write on this thread - me and others will greately appreciate it <3
V.I.P GOD
- User ID
- 15268
- Joined:
- Jan 2018
- Reputation:
-
1,069
Yay! I found it! It was zlib best compression!