natcracken / ps2ls2 Goto Github PK
View Code? Open in Web Editor NEWA toolkit for inspecting modern Planetside 2 files.
A toolkit for inspecting modern Planetside 2 files.
When previewing large models, lots of extra geometry will be present which connects the origin to some verticies. the larger the model, the more of this wack geometry is present. Perhaps there is a hard limit and everything over it is interperited incorrectly? Could perhaps be fixed by splitting meshes into batches (this is assuming that there is nothing wrong with the vertexstreams, which I am pretty confident are correct). More work required.
Some large new models break the dme model structure. In the mesh header there a uint that is supposed to indicate the amount of indices on the mesh. This number is broken for some models. It is way larger than it should be (for example the bastion model would be 4+ gigs if the indexCount read was correct). I have tried changing endianess, assuming that maybe its a hacked-together exponent of two uint16's, and manually counting the buffer size by finding where the next chunk is and working backwards. None of them have worked.
This indicates that a fundamentally new model format is being used, however the header of the file still indicates that it is the same file version as the old ones (v.4), so until Daybreak sorts out their shit (or until I can rip open the game dll's so see how they read it) some new, large models will remain unreadable.
pfim appears to just search the file untill it finds one image, and then assumes the job is complete. That is what its being asked to do, so its not entirely wrong. A custom solution is necessary. The preffered output for any solution is to save all of the images seperately, rotationally correcting them would be a nice bonus.
I made an assumption that this data would be stored consistantly across all models when setting this up, and that does not appear to be the case? Or I'm just bad. Either way some models appear to only have normals, some have normals and tangents and want you to reconstruct... something? And it all dependant on materials3.xml channels which is prone to going out of date. For any users; just use auto smoothing between 40-60 degrees; it'll get you 90% of the way there and people probably wont notice. For anyone else; I'd appreciate any research you have on the topic.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.