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

Use texture information from modelblock #17

Merged
merged 1 commit into from
May 5, 2018

Conversation

JayFoxRox
Copy link
Member

@JayFoxRox JayFoxRox commented May 4, 2018

This is an alternative to #16
These branches are created from the same base-version, so this file does not have all the features of the other one.
I'll probably close #16 and move the wxHexEditor stuff into it's own PR.
The comments about what each texture is, will be moved to a wiki or some RE article.


This version of the script depends on the modelblock XML from https://github.com/Olganix/Sw_Racer
Read the information in the script.

After merge, an issue should be created about using making the texture sizes POT.
Another issue should be created about reviewing the 0x10 and 0x01 flags; those double the texture resolution. I'm not sure yet wether more content is loaded from the file or if there is just padding added in the texture. This could be important when trying to use UV coordinates or wrapping these textures.

Textures are flipped so they are no longer upside down. Closes #19


A future port of this to C++ or a port of Olganix/Sw_Racer to Python, would be a good idea, as it's hard to keep all projects (OpenSWE1R, swe1r-tools, Olganix/Sw_Racer) in synchronization, especially with those ASCII identifiers in Sw_Racer.
Also see Olganix/Sw_Racer#16 as it touches this.

@JayFoxRox JayFoxRox merged commit 6756098 into OpenSWE1R:master May 5, 2018
@JayFoxRox JayFoxRox deleted the tex-model-xml branch May 5, 2018 11:33
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

Successfully merging this pull request may close these issues.

Exported textures are upside down
1 participant