Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v2-v5 support #1

Open
rjindael opened this issue Mar 19, 2024 · 1 comment
Open

v2-v5 support #1

rjindael opened this issue Mar 19, 2024 · 1 comment

Comments

@rjindael
Copy link
Member

No description provided.

@rjindael
Copy link
Member Author

rjindael commented Mar 19, 2024

For V2, keep note of sizeof_Vertex in MeshHeader. If it is 40, set RGBA data to true (and always try to read RobloxMeshVertexRGBAs.) To calculate mesh tangetVector:

uint8_t tx, ty, tz, ts;
// load
int sign = ts == -127 ? -1 : 1;
float x = (x/127);
float y = (x/127);
float z = (x/127);
tangent = new TanVec3(x,y,z, signValue)

I have to figure out bones, envelopes, name tables for v4 and then FACS data for v5 (seems like simple structs; POD!). will write more documentation here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant